@fileverse-dev/ddoc 3.2.1-sg-1 → 3.2.2-sg-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +139 -141
- package/dist/package/stores/comment-store.d.ts +0 -6
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -449,7 +449,7 @@ function _ne() {
|
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
var
|
|
452
|
+
var Me = function(ye, Ne, Xe, gt, wt, Pt, zt) {
|
|
453
453
|
var $t = {
|
|
454
454
|
// This tag allows us to uniquely identify this as a React Element
|
|
455
455
|
$$typeof: t,
|
|
@@ -493,7 +493,7 @@ function _ne() {
|
|
|
493
493
|
var we = typeof ye == "function" ? ye.displayName || ye.name || "Unknown" : ye;
|
|
494
494
|
$t && me(zt, we), Mn && Se(zt, we);
|
|
495
495
|
}
|
|
496
|
-
return
|
|
496
|
+
return Me(ye, $t, Mn, wt, gt, W.current, zt);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
499
|
var Re = b.ReactCurrentOwner, bt = b.ReactDebugCurrentFrame;
|
|
@@ -19106,7 +19106,7 @@ function _ce(e, t, n, r, o, i, s) {
|
|
|
19106
19106
|
offsetLocation: ke,
|
|
19107
19107
|
previousLocation: me,
|
|
19108
19108
|
scrollLooper: Se,
|
|
19109
|
-
slideLooper:
|
|
19109
|
+
slideLooper: Me,
|
|
19110
19110
|
dragHandler: Le,
|
|
19111
19111
|
animation: Re,
|
|
19112
19112
|
eventHandler: bt,
|
|
@@ -19118,7 +19118,7 @@ function _ce(e, t, n, r, o, i, s) {
|
|
|
19118
19118
|
const nt = fe.settled(), qe = !yt.shouldConstrain(), it = ut ? nt : nt && qe, st = it && !Le.pointerDown();
|
|
19119
19119
|
st && Re.stop();
|
|
19120
19120
|
const Dt = Ce.get() * ft + me.get() * (1 - ft);
|
|
19121
|
-
ke.set(Dt), ut && (Se.loop(fe.direction()),
|
|
19121
|
+
ke.set(Dt), ut && (Se.loop(fe.direction()), Me.loop()), be.to(ke.get()), st && bt.emit("settle"), it || bt.emit("scroll");
|
|
19122
19122
|
}, M = oce(r, o, () => Y(oe), (fe) => ie(oe, fe)), ae = 0.68, se = X[te.get()], J = s0(se), ee = s0(se), le = s0(se), ge = s0(se), De = dce(J, le, ee, ge, p, ae), xe = xce(d, X, ce, Z, ge), pe = vce(M, te, T, De, xe, ge, s), ue = mce(Z), he = p1(), R = kce(t, n, s, g), {
|
|
19123
19123
|
slideRegistry: W
|
|
19124
19124
|
} = yce(B, y, X, V, $, K), G = Fce(e, n, W, pe, De, he, s, w), oe = {
|
|
@@ -41830,7 +41830,7 @@ function Ege(e, t) {
|
|
|
41830
41830
|
);
|
|
41831
41831
|
if (a === null || l === null || a < 0 || l > n.doc.content.size) return !1;
|
|
41832
41832
|
const { suggestionType: u, suggestedContent: c } = t;
|
|
41833
|
-
return
|
|
41833
|
+
return u === "add" ? c ? e.commands.insertContentAt(a, c) : !1 : u === "delete" ? a >= l ? !1 : e.commands.deleteRange({ from: a, to: l }) : u === "replace" ? a >= l || !c ? !1 : e.chain().deleteRange({ from: a, to: l }).insertContentAt(a, c).run() : !1;
|
|
41834
41834
|
} catch {
|
|
41835
41835
|
return !1;
|
|
41836
41836
|
}
|
|
@@ -42886,7 +42886,6 @@ const dme = () => Jge((e, t) => ({
|
|
|
42886
42886
|
floatingCards: [],
|
|
42887
42887
|
pendingPrehydrationFloatingThreadIds: [],
|
|
42888
42888
|
drafts: {},
|
|
42889
|
-
mySubmittedSuggestionIds: /* @__PURE__ */ new Set(),
|
|
42890
42889
|
inlineDrafts: {},
|
|
42891
42890
|
activeDraftId: null,
|
|
42892
42891
|
isDesktopFloatingEnabled: !1,
|
|
@@ -43842,12 +43841,12 @@ const dme = () => Jge((e, t) => ({
|
|
|
43842
43841
|
];
|
|
43843
43842
|
const d = { ...t().drafts };
|
|
43844
43843
|
delete d[n];
|
|
43845
|
-
const p = t().floatingCards.map((
|
|
43844
|
+
const p = t().floatingCards.map((g) => g.type !== "suggestion-draft" || g.suggestionId !== n ? g : {
|
|
43846
43845
|
type: "thread",
|
|
43847
|
-
floatingCardId:
|
|
43846
|
+
floatingCardId: g.floatingCardId,
|
|
43848
43847
|
commentId: l.id,
|
|
43849
43848
|
selectedText: l.originalContent,
|
|
43850
|
-
isFocused:
|
|
43849
|
+
isFocused: g.isFocused
|
|
43851
43850
|
}), h = {
|
|
43852
43851
|
id: l.id,
|
|
43853
43852
|
tabId: t().activeTabId,
|
|
@@ -43862,13 +43861,12 @@ const dme = () => Jge((e, t) => ({
|
|
|
43862
43861
|
resolved: !1,
|
|
43863
43862
|
deleted: !1,
|
|
43864
43863
|
createdAt: /* @__PURE__ */ new Date()
|
|
43865
|
-
}
|
|
43866
|
-
|
|
43864
|
+
};
|
|
43865
|
+
e({
|
|
43867
43866
|
drafts: d,
|
|
43868
|
-
floatingCards: p
|
|
43869
|
-
mySubmittedSuggestionIds: f
|
|
43867
|
+
floatingCards: p
|
|
43870
43868
|
}), s && (s.current = Object.values(d).map(jc)), t().setInitialComments([...t().initialComments, h]), wi(o);
|
|
43871
|
-
const
|
|
43869
|
+
const f = {
|
|
43872
43870
|
type: "create",
|
|
43873
43871
|
anchorFrom: Xn(Hp(l.anchorFrom)),
|
|
43874
43872
|
anchorTo: Xn(Hp(l.anchorTo)),
|
|
@@ -43876,7 +43874,7 @@ const dme = () => Jge((e, t) => ({
|
|
|
43876
43874
|
originalContent: l.originalContent,
|
|
43877
43875
|
suggestedContent: l.insertedText
|
|
43878
43876
|
};
|
|
43879
|
-
a == null || a(h,
|
|
43877
|
+
a == null || a(h, f);
|
|
43880
43878
|
},
|
|
43881
43879
|
deleteReply: (n, r) => {
|
|
43882
43880
|
var o, i;
|
|
@@ -44104,7 +44102,7 @@ const dme = () => Jge((e, t) => ({
|
|
|
44104
44102
|
return { type: n, updateChunk: Xn(a) };
|
|
44105
44103
|
}
|
|
44106
44104
|
})), GH = Gd(null);
|
|
44107
|
-
function
|
|
44105
|
+
function Oe(e) {
|
|
44108
44106
|
const t = Xd(GH);
|
|
44109
44107
|
if (!t)
|
|
44110
44108
|
throw new Error("useCommentStore must be used within CommentStoreProvider");
|
|
@@ -44368,7 +44366,7 @@ const pme = ({
|
|
|
44368
44366
|
const be = S.getState(), ke = t.isActive("comment") ? {
|
|
44369
44367
|
commentId: ((Ne = t.getAttributes("comment")) == null ? void 0 : Ne.commentId) ?? null,
|
|
44370
44368
|
resolved: !!((Xe = t.getAttributes("comment")) != null && Xe.resolved)
|
|
44371
|
-
} : null, me = t.state.selection.from, Se = t.state.selection.to,
|
|
44369
|
+
} : null, me = t.state.selection.from, Se = t.state.selection.to, Me = t.state.doc.content.size;
|
|
44372
44370
|
let Le = null, Re = ke;
|
|
44373
44371
|
const bt = !!(fe != null && fe.getMeta("pointer")), yt = (wt) => {
|
|
44374
44372
|
for (const Pt of wt) {
|
|
@@ -44386,7 +44384,7 @@ const pme = ({
|
|
|
44386
44384
|
}, ut = Array.from(
|
|
44387
44385
|
new Set(
|
|
44388
44386
|
[me, Se].filter(
|
|
44389
|
-
(wt) => wt >= 0 && wt <=
|
|
44387
|
+
(wt) => wt >= 0 && wt <= Me
|
|
44390
44388
|
)
|
|
44391
44389
|
)
|
|
44392
44390
|
);
|
|
@@ -44398,7 +44396,7 @@ const pme = ({
|
|
|
44398
44396
|
me + 1,
|
|
44399
44397
|
Se - 1,
|
|
44400
44398
|
Se + 1
|
|
44401
|
-
].filter((Pt) => Pt >= 0 && Pt <=
|
|
44399
|
+
].filter((Pt) => Pt >= 0 && Pt <= Me)
|
|
44402
44400
|
)
|
|
44403
44401
|
);
|
|
44404
44402
|
yt(wt);
|
|
@@ -44427,31 +44425,31 @@ const pme = ({
|
|
|
44427
44425
|
const Se = () => {
|
|
44428
44426
|
if (!x || $.current.size === 0)
|
|
44429
44427
|
return !1;
|
|
44430
|
-
const
|
|
44428
|
+
const Me = [];
|
|
44431
44429
|
if ($.current.forEach((Re, bt) => {
|
|
44432
|
-
ha(Re, t.state) && (
|
|
44433
|
-
}),
|
|
44430
|
+
ha(Re, t.state) && (Me.push(Re), $.current.delete(bt));
|
|
44431
|
+
}), Me.length === 0)
|
|
44434
44432
|
return !1;
|
|
44435
44433
|
const Le = new Set(
|
|
44436
44434
|
x.current.map((Re) => Re.id)
|
|
44437
44435
|
);
|
|
44438
44436
|
return x.current = [
|
|
44439
44437
|
...x.current,
|
|
44440
|
-
...
|
|
44438
|
+
...Me.filter(
|
|
44441
44439
|
(Re) => !Le.has(Re.id)
|
|
44442
44440
|
)
|
|
44443
44441
|
], ke = !0, !0;
|
|
44444
44442
|
};
|
|
44445
44443
|
if (x && Ce) {
|
|
44446
|
-
const
|
|
44444
|
+
const Me = x.current.filter(
|
|
44447
44445
|
(Le) => !Le.deleted && !Le.resolved && SH(Le, Ce) !== null
|
|
44448
44446
|
);
|
|
44449
|
-
if (
|
|
44447
|
+
if (Me.length > 0) {
|
|
44450
44448
|
const Le = w8(
|
|
44451
44449
|
fe.before,
|
|
44452
44450
|
[fe, ...be]
|
|
44453
44451
|
), Re = vge(
|
|
44454
|
-
|
|
44452
|
+
Me,
|
|
44455
44453
|
Ce,
|
|
44456
44454
|
t.state,
|
|
44457
44455
|
Le
|
|
@@ -47926,7 +47924,7 @@ function EW() {
|
|
|
47926
47924
|
const fe = an({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
47927
47925
|
let be = null;
|
|
47928
47926
|
const Ce = an({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), ke = "http://www.w3.org/1998/Math/MathML", me = "http://www.w3.org/2000/svg", Se = "http://www.w3.org/1999/xhtml";
|
|
47929
|
-
let
|
|
47927
|
+
let Me = Se, Le = !1, Re = null;
|
|
47930
47928
|
const bt = an({}, [ke, me, Se], Y4);
|
|
47931
47929
|
let yt = an({}, ["mi", "mo", "mn", "ms", "mtext"]), ut = an({}, ["annotation-xml"]);
|
|
47932
47930
|
const ft = an({}, ["title", "style", "font", "a", "script"]);
|
|
@@ -47939,7 +47937,7 @@ function EW() {
|
|
|
47939
47937
|
let we = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
47940
47938
|
if (!(Dt && Dt === we)) {
|
|
47941
47939
|
if ((!we || typeof we != "object") && (we = {}), we = sl(we), nt = // eslint-disable-next-line unicorn/prefer-includes
|
|
47942
|
-
qe.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? it : we.PARSER_MEDIA_TYPE, st = nt === "application/xhtml+xml" ? Y4 : H2, $ = xs(we, "ALLOWED_TAGS") ? an({}, we.ALLOWED_TAGS, st) : I, Q = xs(we, "ALLOWED_ATTR") ? an({}, we.ALLOWED_ATTR, st) : ce, Re = xs(we, "ALLOWED_NAMESPACES") ? an({}, we.ALLOWED_NAMESPACES, Y4) : bt, be = xs(we, "ADD_URI_SAFE_ATTR") ? an(sl(Ce), we.ADD_URI_SAFE_ATTR, st) : Ce, oe = xs(we, "ADD_DATA_URI_TAGS") ? an(sl(fe), we.ADD_DATA_URI_TAGS, st) : fe, W = xs(we, "FORBID_CONTENTS") ? an({}, we.FORBID_CONTENTS, st) : G, V = xs(we, "FORBID_TAGS") ? an({}, we.FORBID_TAGS, st) : sl({}), X = xs(we, "FORBID_ATTR") ? an({}, we.FORBID_ATTR, st) : sl({}), R = xs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, te = we.ALLOW_ARIA_ATTR !== !1, T = we.ALLOW_DATA_ATTR !== !1, K = we.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ie = we.SAFE_FOR_TEMPLATES || !1, M = we.SAFE_FOR_XML !== !1, ae = we.WHOLE_DOCUMENT || !1, ee = we.RETURN_DOM || !1, le = we.RETURN_DOM_FRAGMENT || !1, ge = we.RETURN_TRUSTED_TYPE || !1, J = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, xe = we.SANITIZE_NAMED_PROPS || !1, ue = we.KEEP_CONTENT !== !1, he = we.IN_PLACE || !1, H = we.ALLOWED_URI_REGEXP || DW,
|
|
47940
|
+
qe.indexOf(we.PARSER_MEDIA_TYPE) === -1 ? it : we.PARSER_MEDIA_TYPE, st = nt === "application/xhtml+xml" ? Y4 : H2, $ = xs(we, "ALLOWED_TAGS") ? an({}, we.ALLOWED_TAGS, st) : I, Q = xs(we, "ALLOWED_ATTR") ? an({}, we.ALLOWED_ATTR, st) : ce, Re = xs(we, "ALLOWED_NAMESPACES") ? an({}, we.ALLOWED_NAMESPACES, Y4) : bt, be = xs(we, "ADD_URI_SAFE_ATTR") ? an(sl(Ce), we.ADD_URI_SAFE_ATTR, st) : Ce, oe = xs(we, "ADD_DATA_URI_TAGS") ? an(sl(fe), we.ADD_DATA_URI_TAGS, st) : fe, W = xs(we, "FORBID_CONTENTS") ? an({}, we.FORBID_CONTENTS, st) : G, V = xs(we, "FORBID_TAGS") ? an({}, we.FORBID_TAGS, st) : sl({}), X = xs(we, "FORBID_ATTR") ? an({}, we.FORBID_ATTR, st) : sl({}), R = xs(we, "USE_PROFILES") ? we.USE_PROFILES : !1, te = we.ALLOW_ARIA_ATTR !== !1, T = we.ALLOW_DATA_ATTR !== !1, K = we.ALLOW_UNKNOWN_PROTOCOLS || !1, Y = we.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ie = we.SAFE_FOR_TEMPLATES || !1, M = we.SAFE_FOR_XML !== !1, ae = we.WHOLE_DOCUMENT || !1, ee = we.RETURN_DOM || !1, le = we.RETURN_DOM_FRAGMENT || !1, ge = we.RETURN_TRUSTED_TYPE || !1, J = we.FORCE_BODY || !1, De = we.SANITIZE_DOM !== !1, xe = we.SANITIZE_NAMED_PROPS || !1, ue = we.KEEP_CONTENT !== !1, he = we.IN_PLACE || !1, H = we.ALLOWED_URI_REGEXP || DW, Me = we.NAMESPACE || Se, yt = we.MATHML_TEXT_INTEGRATION_POINTS || yt, ut = we.HTML_INTEGRATION_POINTS || ut, ne = we.CUSTOM_ELEMENT_HANDLING || {}, we.CUSTOM_ELEMENT_HANDLING && vt(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ne.tagNameCheck = we.CUSTOM_ELEMENT_HANDLING.tagNameCheck), we.CUSTOM_ELEMENT_HANDLING && vt(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ne.attributeNameCheck = we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), we.CUSTOM_ELEMENT_HANDLING && typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ne.allowCustomizedBuiltInElements = we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ie && (T = !1), le && (ee = !0), R && ($ = an({}, fj), Q = [], R.html === !0 && (an($, hj), an(Q, gj)), R.svg === !0 && (an($, J4), an(Q, tF), an(Q, Im)), R.svgFilters === !0 && (an($, Q4), an(Q, tF), an(Q, Im)), R.mathMl === !0 && (an($, eF), an(Q, mj), an(Q, Im))), we.ADD_TAGS && (typeof we.ADD_TAGS == "function" ? Z.tagCheck = we.ADD_TAGS : ($ === I && ($ = sl($)), an($, we.ADD_TAGS, st))), we.ADD_ATTR && (typeof we.ADD_ATTR == "function" ? Z.attributeCheck = we.ADD_ATTR : (Q === ce && (Q = sl(Q)), an(Q, we.ADD_ATTR, st))), we.ADD_URI_SAFE_ATTR && an(be, we.ADD_URI_SAFE_ATTR, st), we.FORBID_CONTENTS && (W === G && (W = sl(W)), an(W, we.FORBID_CONTENTS, st)), ue && ($["#text"] = !0), ae && an($, ["html", "head", "body"]), $.table && (an($, ["tbody"]), delete V.tbody), we.TRUSTED_TYPES_POLICY) {
|
|
47943
47941
|
if (typeof we.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
47944
47942
|
throw Mf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
47945
47943
|
if (typeof we.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -47952,7 +47950,7 @@ function EW() {
|
|
|
47952
47950
|
}, ct = an({}, [...J4, ...Q4, ...lye]), ze = an({}, [...eF, ...uye]), Bt = function(we) {
|
|
47953
47951
|
let Pe = F(we);
|
|
47954
47952
|
(!Pe || !Pe.tagName) && (Pe = {
|
|
47955
|
-
namespaceURI:
|
|
47953
|
+
namespaceURI: Me,
|
|
47956
47954
|
tagName: "template"
|
|
47957
47955
|
});
|
|
47958
47956
|
const pt = H2(we.tagName), ln = H2(Pe.tagName);
|
|
@@ -47997,22 +47995,22 @@ function EW() {
|
|
|
47997
47995
|
const On = Z4(we, /^[\r\n\t ]+/);
|
|
47998
47996
|
pt = On && On[0];
|
|
47999
47997
|
}
|
|
48000
|
-
nt === "application/xhtml+xml" &&
|
|
47998
|
+
nt === "application/xhtml+xml" && Me === Se && (we = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + we + "</body></html>");
|
|
48001
47999
|
const ln = x ? x.createHTML(we) : we;
|
|
48002
|
-
if (
|
|
48000
|
+
if (Me === Se)
|
|
48003
48001
|
try {
|
|
48004
48002
|
Pe = new p().parseFromString(ln, nt);
|
|
48005
48003
|
} catch {
|
|
48006
48004
|
}
|
|
48007
48005
|
if (!Pe || !Pe.documentElement) {
|
|
48008
|
-
Pe = w.createDocument(
|
|
48006
|
+
Pe = w.createDocument(Me, "template", null);
|
|
48009
48007
|
try {
|
|
48010
48008
|
Pe.documentElement.innerHTML = Le ? D : ln;
|
|
48011
48009
|
} catch {
|
|
48012
48010
|
}
|
|
48013
48011
|
}
|
|
48014
48012
|
const pn = Pe.body || Pe.documentElement;
|
|
48015
|
-
return we && pt && pn.insertBefore(n.createTextNode(pt), pn.childNodes[0] || null),
|
|
48013
|
+
return we && pt && pn.insertBefore(n.createTextNode(pt), pn.childNodes[0] || null), Me === Se ? A.call(Pe, ae ? "html" : "body")[0] : ae ? Pe.documentElement : pn;
|
|
48016
48014
|
}, ye = function(we) {
|
|
48017
48015
|
return k.call(
|
|
48018
48016
|
we.ownerDocument || we,
|
|
@@ -52607,7 +52605,7 @@ const Wp = (e) => {
|
|
|
52607
52605
|
}
|
|
52608
52606
|
) : null;
|
|
52609
52607
|
}, tp = (e) => {
|
|
52610
|
-
const t =
|
|
52608
|
+
const t = Oe((i) => i.getEnsStatus), n = Oe(
|
|
52611
52609
|
(i) => e ? i.ensCache[e] : void 0
|
|
52612
52610
|
), [r, o] = Be(() => ({
|
|
52613
52611
|
name: e || "Anonymous",
|
|
@@ -52643,7 +52641,7 @@ const Wp = (e) => {
|
|
|
52643
52641
|
id: d,
|
|
52644
52642
|
isFocused: p
|
|
52645
52643
|
}) => {
|
|
52646
|
-
const h = je(null), f = je(null), [g, m] = Be(!1), [b, y] = Be(!1), F =
|
|
52644
|
+
const h = je(null), f = je(null), [g, m] = Be(!1), [b, y] = Be(!1), F = Oe((T) => T.openReplyId), x = Oe((T) => T.setOpenReplyId), D = Oe((T) => T.requestEditComment), w = Oe((T) => T.username), { isBelow1280px: k } = Li(), E = tp(e), A = () => {
|
|
52647
52645
|
var T;
|
|
52648
52646
|
if ((T = h.current) != null && T.parentElement) {
|
|
52649
52647
|
const K = h.current.closest('[role="dialog"]');
|
|
@@ -52768,7 +52766,7 @@ const Wp = (e) => {
|
|
|
52768
52766
|
// isCommentDrawerContext,
|
|
52769
52767
|
// isLast,
|
|
52770
52768
|
}) => {
|
|
52771
|
-
const [s, a] = Be(!1), [l, u] = Be(!1), c =
|
|
52769
|
+
const [s, a] = Be(!1), [l, u] = Be(!1), c = Oe((x) => x.deleteReply), d = Oe((x) => x.username), p = Oe((x) => x.isDDocOwner), h = !!(n && n.length > 70), f = !!(d && r && r === d), g = !i && f, m = p || f, b = n && h && !s ? n.slice(0, 70) + "..." : n, y = () => {
|
|
52772
52770
|
u(!1);
|
|
52773
52771
|
}, F = () => {
|
|
52774
52772
|
u(!1), c(e, t);
|
|
@@ -53132,9 +53130,9 @@ const Wp = (e) => {
|
|
|
53132
53130
|
isDisabled: n,
|
|
53133
53131
|
isCommentOwner: r
|
|
53134
53132
|
}) => {
|
|
53135
|
-
const [o, i] = Be(""), [s, a] = Be(!0), l = je(null), u =
|
|
53133
|
+
const [o, i] = Be(""), [s, a] = Be(!0), l = je(null), u = Oe((T) => T.activeDraftId), c = Oe(
|
|
53136
53134
|
(T) => T.activeDraftId ? T.inlineDrafts[T.activeDraftId] ?? null : null
|
|
53137
|
-
), d =
|
|
53135
|
+
), d = Oe((T) => T.activeComments), p = Oe((T) => T.activeComment), h = Oe((T) => T.selectedText), f = Oe((T) => T.isCommentActive), g = Oe((T) => T.handleAddReply), m = Oe((T) => T.editRequest), b = Oe((T) => T.clearEditRequest), y = Oe((T) => T.replyEditTarget), F = Oe((T) => T.setReplyEditTarget), x = Oe((T) => T.cancelReplyEdit), D = Oe((T) => T.editCompletion), w = Oe((T) => T.editCommentContent), k = Oe((T) => T.editReplyContent), E = Oe((T) => T.resolveComment), A = Oe((T) => T.unresolveComment), O = Oe((T) => T.deleteComment), j = Oe((T) => T.isDDocOwner), _ = Oe((T) => T.isConnected), N = Oe((T) => T.setCommentDrawerOpen), C = Oe((T) => T.submitInlineDraft), B = Oe((T) => T.updateInlineDraftText), { dropdownRef: S } = lf(), P = !(p != null && p.content) && !(p != null && p.username) && !(p != null && p.createdAt), L = (y == null ? void 0 : y.commentId) === e, z = !!(n || p != null && p.resolved || !o.trim() || L && o.trim() === ((y == null ? void 0 : y.originalText) ?? "").trim()), H = (T) => {
|
|
53138
53136
|
const K = T.target.value;
|
|
53139
53137
|
i(K);
|
|
53140
53138
|
}, $ = () => {
|
|
@@ -53475,9 +53473,9 @@ const Wp = (e) => {
|
|
|
53475
53473
|
ipfsImageUploadFn: u,
|
|
53476
53474
|
ipfsImageFetchFn: c,
|
|
53477
53475
|
fetchV1ImageFn: p
|
|
53478
|
-
}), E =
|
|
53476
|
+
}), E = Oe((I) => I.activeComment), A = Oe((I) => I.isCommentOpen), O = Oe((I) => I.handleInlineComment), j = Oe((I) => I.isCommentActive), _ = Oe((I) => I.isCommentResolved), N = Oe(
|
|
53479
53477
|
(I) => I.isBubbleMenuSuppressed
|
|
53480
|
-
), C =
|
|
53478
|
+
), C = Oe(
|
|
53481
53479
|
(I) => I.setIsBubbleMenuSuppressed
|
|
53482
53480
|
), { buttonRef: B } = lf();
|
|
53483
53481
|
_e(() => {
|
|
@@ -69954,10 +69952,10 @@ function d8e(e, t) {
|
|
|
69954
69952
|
function P(me) {
|
|
69955
69953
|
me === void 0 && (me = !1), w.style.pointerEvents = x.props.interactive && !me ? "" : "none", w.style.zIndex = "" + x.props.zIndex;
|
|
69956
69954
|
}
|
|
69957
|
-
function L(me, Se,
|
|
69958
|
-
if (
|
|
69955
|
+
function L(me, Se, Me) {
|
|
69956
|
+
if (Me === void 0 && (Me = !0), E.forEach(function(Re) {
|
|
69959
69957
|
Re[me] && Re[me].apply(Re, Se);
|
|
69960
|
-
}),
|
|
69958
|
+
}), Me) {
|
|
69961
69959
|
var Le;
|
|
69962
69960
|
(Le = x.props)[me].apply(Le, Se);
|
|
69963
69961
|
}
|
|
@@ -69965,13 +69963,13 @@ function d8e(e, t) {
|
|
|
69965
69963
|
function z() {
|
|
69966
69964
|
var me = x.props.aria;
|
|
69967
69965
|
if (me.content) {
|
|
69968
|
-
var Se = "aria-" + me.content,
|
|
69966
|
+
var Se = "aria-" + me.content, Me = w.id, Le = Ip(x.props.triggerTarget || e);
|
|
69969
69967
|
Le.forEach(function(Re) {
|
|
69970
69968
|
var bt = Re.getAttribute(Se);
|
|
69971
69969
|
if (x.state.isVisible)
|
|
69972
|
-
Re.setAttribute(Se, bt ? bt + " " +
|
|
69970
|
+
Re.setAttribute(Se, bt ? bt + " " + Me : Me);
|
|
69973
69971
|
else {
|
|
69974
|
-
var yt = bt && bt.replace(
|
|
69972
|
+
var yt = bt && bt.replace(Me, "").trim();
|
|
69975
69973
|
yt ? Re.setAttribute(Se, yt) : Re.removeAttribute(Se);
|
|
69976
69974
|
}
|
|
69977
69975
|
});
|
|
@@ -69994,8 +69992,8 @@ function d8e(e, t) {
|
|
|
69994
69992
|
if (!(aa.isTouch && (l || me.type === "mousedown"))) {
|
|
69995
69993
|
var Se = me.composedPath && me.composedPath()[0] || me.target;
|
|
69996
69994
|
if (!(x.props.interactive && GB(w, Se))) {
|
|
69997
|
-
if (Ip(x.props.triggerTarget || e).some(function(
|
|
69998
|
-
return GB(
|
|
69995
|
+
if (Ip(x.props.triggerTarget || e).some(function(Me) {
|
|
69996
|
+
return GB(Me, Se);
|
|
69999
69997
|
})) {
|
|
70000
69998
|
if (aa.isTouch || x.state.isVisible && x.props.trigger.indexOf("click") >= 0)
|
|
70001
69999
|
return;
|
|
@@ -70030,23 +70028,23 @@ function d8e(e, t) {
|
|
|
70030
70028
|
te(me, Se);
|
|
70031
70029
|
}
|
|
70032
70030
|
function te(me, Se) {
|
|
70033
|
-
var
|
|
70031
|
+
var Me = B().box;
|
|
70034
70032
|
function Le(Re) {
|
|
70035
|
-
Re.target ===
|
|
70033
|
+
Re.target === Me && (MF(Me, "remove", Le), Se());
|
|
70036
70034
|
}
|
|
70037
70035
|
if (me === 0)
|
|
70038
70036
|
return Se();
|
|
70039
|
-
MF(
|
|
70037
|
+
MF(Me, "remove", d), MF(Me, "add", Le), d = Le;
|
|
70040
70038
|
}
|
|
70041
|
-
function T(me, Se,
|
|
70042
|
-
|
|
70039
|
+
function T(me, Se, Me) {
|
|
70040
|
+
Me === void 0 && (Me = !1);
|
|
70043
70041
|
var Le = Ip(x.props.triggerTarget || e);
|
|
70044
70042
|
Le.forEach(function(Re) {
|
|
70045
|
-
Re.addEventListener(me, Se,
|
|
70043
|
+
Re.addEventListener(me, Se, Me), h.push({
|
|
70046
70044
|
node: Re,
|
|
70047
70045
|
eventType: me,
|
|
70048
70046
|
handler: Se,
|
|
70049
|
-
options:
|
|
70047
|
+
options: Me
|
|
70050
70048
|
});
|
|
70051
70049
|
});
|
|
70052
70050
|
}
|
|
@@ -70072,22 +70070,22 @@ function d8e(e, t) {
|
|
|
70072
70070
|
}
|
|
70073
70071
|
function Y() {
|
|
70074
70072
|
h.forEach(function(me) {
|
|
70075
|
-
var Se = me.node,
|
|
70076
|
-
Se.removeEventListener(
|
|
70073
|
+
var Se = me.node, Me = me.eventType, Le = me.handler, Re = me.options;
|
|
70074
|
+
Se.removeEventListener(Me, Le, Re);
|
|
70077
70075
|
}), h = [];
|
|
70078
70076
|
}
|
|
70079
70077
|
function ie(me) {
|
|
70080
|
-
var Se,
|
|
70078
|
+
var Se, Me = !1;
|
|
70081
70079
|
if (!(!x.state.isEnabled || J(me) || a)) {
|
|
70082
70080
|
var Le = ((Se = c) == null ? void 0 : Se.type) === "focus";
|
|
70083
70081
|
c = me, g = me.currentTarget, H(), !x.state.isVisible && Vke(me) && Gm.forEach(function(Re) {
|
|
70084
70082
|
return Re(me);
|
|
70085
|
-
}), me.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || s) && x.props.hideOnClick !== !1 && x.state.isVisible ?
|
|
70083
|
+
}), me.type === "click" && (x.props.trigger.indexOf("mouseenter") < 0 || s) && x.props.hideOnClick !== !1 && x.state.isVisible ? Me = !0 : xe(me), me.type === "click" && (s = !Me), Me && !Le && pe(me);
|
|
70086
70084
|
}
|
|
70087
70085
|
}
|
|
70088
70086
|
function M(me) {
|
|
70089
|
-
var Se = me.target,
|
|
70090
|
-
if (!(me.type === "mousemove" &&
|
|
70087
|
+
var Se = me.target, Me = N().contains(Se) || w.contains(Se);
|
|
70088
|
+
if (!(me.type === "mousemove" && Me)) {
|
|
70091
70089
|
var Le = De().concat(w).map(function(Re) {
|
|
70092
70090
|
var bt, yt = Re._tippy, ut = (bt = yt.popperInstance) == null ? void 0 : bt.state;
|
|
70093
70091
|
return ut ? {
|
|
@@ -70117,7 +70115,7 @@ function d8e(e, t) {
|
|
|
70117
70115
|
}
|
|
70118
70116
|
function ee() {
|
|
70119
70117
|
le();
|
|
70120
|
-
var me = x.props, Se = me.popperOptions,
|
|
70118
|
+
var me = x.props, Se = me.popperOptions, Me = me.placement, Le = me.offset, Re = me.getReferenceClientRect, bt = me.moveTransition, yt = _() ? ZD(w).arrow : null, ut = Re ? {
|
|
70121
70119
|
getBoundingClientRect: Re,
|
|
70122
70120
|
contextElement: Re.contextElement || N()
|
|
70123
70121
|
} : e, ft = {
|
|
@@ -70167,7 +70165,7 @@ function d8e(e, t) {
|
|
|
70167
70165
|
padding: 3
|
|
70168
70166
|
}
|
|
70169
70167
|
}), nt.push.apply(nt, (Se == null ? void 0 : Se.modifiers) || []), x.popperInstance = Rke(ut, w, Object.assign({}, Se, {
|
|
70170
|
-
placement:
|
|
70168
|
+
placement: Me,
|
|
70171
70169
|
onFirstUpdate: p,
|
|
70172
70170
|
modifiers: nt
|
|
70173
70171
|
}));
|
|
@@ -70176,8 +70174,8 @@ function d8e(e, t) {
|
|
|
70176
70174
|
x.popperInstance && (x.popperInstance.destroy(), x.popperInstance = null);
|
|
70177
70175
|
}
|
|
70178
70176
|
function ge() {
|
|
70179
|
-
var me = x.props.appendTo, Se,
|
|
70180
|
-
x.props.interactive && me === lK || me === "parent" ? Se =
|
|
70177
|
+
var me = x.props.appendTo, Se, Me = N();
|
|
70178
|
+
x.props.interactive && me === lK || me === "parent" ? Se = Me.parentNode : Se = uK(me, [Me]), Se.contains(w) || Se.appendChild(w), x.state.isMounted = !0, ee(), process.env.NODE_ENV !== "production" && cl(x.props.interactive && me === Ai.appendTo && Me.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
70181
70179
|
|
|
70182
70180
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
70183
70181
|
|
|
@@ -70190,7 +70188,7 @@ function d8e(e, t) {
|
|
|
70190
70188
|
}
|
|
70191
70189
|
function xe(me) {
|
|
70192
70190
|
x.clearDelayTimeouts(), me && L("onTrigger", [x, me]), ne();
|
|
70193
|
-
var Se = S(!0),
|
|
70191
|
+
var Se = S(!0), Me = O(), Le = Me[0], Re = Me[1];
|
|
70194
70192
|
aa.isTouch && Le === "hold" && Re && (Se = Re), Se ? r = setTimeout(function() {
|
|
70195
70193
|
x.show();
|
|
70196
70194
|
}, Se) : x.show();
|
|
@@ -70221,12 +70219,12 @@ function d8e(e, t) {
|
|
|
70221
70219
|
function W(me) {
|
|
70222
70220
|
if (process.env.NODE_ENV !== "production" && cl(x.state.isDestroyed, yp("setProps")), !x.state.isDestroyed) {
|
|
70223
70221
|
L("onBeforeUpdate", [x, me]), Y();
|
|
70224
|
-
var Se = x.props,
|
|
70222
|
+
var Se = x.props, Me = ZB(e, Object.assign({}, Se, VB(me), {
|
|
70225
70223
|
ignoreAttributes: !0
|
|
70226
70224
|
}));
|
|
70227
|
-
x.props =
|
|
70225
|
+
x.props = Me, K(), Se.interactiveDebounce !== Me.interactiveDebounce && ($(), f = WB(M, Me.interactiveDebounce)), Se.triggerTarget && !Me.triggerTarget ? Ip(Se.triggerTarget).forEach(function(Le) {
|
|
70228
70226
|
Le.removeAttribute("aria-expanded");
|
|
70229
|
-
}) :
|
|
70227
|
+
}) : Me.triggerTarget && e.removeAttribute("aria-expanded"), H(), P(), k && k(Se, Me), x.popperInstance && (ee(), De().forEach(function(Le) {
|
|
70230
70228
|
requestAnimationFrame(Le._tippy.popperInstance.forceUpdate);
|
|
70231
70229
|
})), L("onAfterUpdate", [x, me]);
|
|
70232
70230
|
}
|
|
@@ -70238,8 +70236,8 @@ function d8e(e, t) {
|
|
|
70238
70236
|
}
|
|
70239
70237
|
function oe() {
|
|
70240
70238
|
process.env.NODE_ENV !== "production" && cl(x.state.isDestroyed, yp("show"));
|
|
70241
|
-
var me = x.state.isVisible, Se = x.state.isDestroyed,
|
|
70242
|
-
if (!(me || Se ||
|
|
70239
|
+
var me = x.state.isVisible, Se = x.state.isDestroyed, Me = !x.state.isEnabled, Le = aa.isTouch && !x.props.touch, Re = BF(x.props.duration, 0, Ai.duration);
|
|
70240
|
+
if (!(me || Se || Me || Le) && !N().hasAttribute("disabled") && (L("onShow", [x], !1), x.props.onShow(x) !== !1)) {
|
|
70243
70241
|
if (x.state.isVisible = !0, _() && (w.style.visibility = "visible"), P(), ne(), x.state.isMounted || (w.style.transition = "none"), _()) {
|
|
70244
70242
|
var bt = B(), yt = bt.box, ut = bt.content;
|
|
70245
70243
|
NF([yt, ut], 0);
|
|
@@ -70260,8 +70258,8 @@ function d8e(e, t) {
|
|
|
70260
70258
|
}
|
|
70261
70259
|
function fe() {
|
|
70262
70260
|
process.env.NODE_ENV !== "production" && cl(x.state.isDestroyed, yp("hide"));
|
|
70263
|
-
var me = !x.state.isVisible, Se = x.state.isDestroyed,
|
|
70264
|
-
if (!(me || Se ||
|
|
70261
|
+
var me = !x.state.isVisible, Se = x.state.isDestroyed, Me = !x.state.isEnabled, Le = BF(x.props.duration, 1, Ai.duration);
|
|
70262
|
+
if (!(me || Se || Me) && (L("onHide", [x], !1), x.props.onHide(x) !== !1)) {
|
|
70265
70263
|
if (x.state.isVisible = !1, x.state.isShown = !1, u = !1, s = !1, _() && (w.style.visibility = "hidden"), $(), V(), P(!0), _()) {
|
|
70266
70264
|
var Re = B(), bt = Re.box, yt = Re.content;
|
|
70267
70265
|
x.props.animation && (NF([bt, yt], Le), KB([bt, yt], "hidden"));
|
|
@@ -80102,8 +80100,8 @@ function IBe() {
|
|
|
80102
80100
|
}
|
|
80103
80101
|
}
|
|
80104
80102
|
}
|
|
80105
|
-
var
|
|
80106
|
-
R._warn(
|
|
80103
|
+
var Me = "a promise was created in a " + he + "handler " + G + "but was not returned from it, see http://goo.gl/rRqMUw" + oe;
|
|
80104
|
+
R._warn(Me, !0, ue);
|
|
80107
80105
|
}
|
|
80108
80106
|
}
|
|
80109
80107
|
function Q(pe, ue) {
|
|
@@ -84828,15 +84826,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
84828
84826
|
for (le.max_code = W, ge = ee.heap_len >> 1; 1 <= ge; ge--) K(ee, pe, ge);
|
|
84829
84827
|
for (xe = R; ge = ee.heap[1], ee.heap[1] = ee.heap[ee.heap_len--], K(ee, pe, 1), De = ee.heap[1], ee.heap[--ee.heap_max] = ge, ee.heap[--ee.heap_max] = De, pe[2 * xe] = pe[2 * ge] + pe[2 * De], ee.depth[xe] = (ee.depth[ge] >= ee.depth[De] ? ee.depth[ge] : ee.depth[De]) + 1, pe[2 * ge + 1] = pe[2 * De + 1] = xe, ee.heap[1] = xe++, K(ee, pe, 1), 2 <= ee.heap_len; ) ;
|
|
84830
84828
|
ee.heap[--ee.heap_max] = ee.heap[1], function(G, oe) {
|
|
84831
|
-
var fe, be, Ce, ke, me, Se,
|
|
84829
|
+
var fe, be, Ce, ke, me, Se, Me = oe.dyn_tree, Le = oe.max_code, Re = oe.stat_desc.static_tree, bt = oe.stat_desc.has_stree, yt = oe.stat_desc.extra_bits, ut = oe.stat_desc.extra_base, ft = oe.stat_desc.max_length, nt = 0;
|
|
84832
84830
|
for (ke = 0; ke <= m; ke++) G.bl_count[ke] = 0;
|
|
84833
|
-
for (
|
|
84831
|
+
for (Me[2 * G.heap[G.heap_max] + 1] = 0, fe = G.heap_max + 1; fe < g; fe++) ft < (ke = Me[2 * Me[2 * (be = G.heap[fe]) + 1] + 1] + 1) && (ke = ft, nt++), Me[2 * be + 1] = ke, Le < be || (G.bl_count[ke]++, me = 0, ut <= be && (me = yt[be - ut]), Se = Me[2 * be], G.opt_len += Se * (ke + me), bt && (G.static_len += Se * (Re[2 * be + 1] + me)));
|
|
84834
84832
|
if (nt !== 0) {
|
|
84835
84833
|
do {
|
|
84836
84834
|
for (ke = ft - 1; G.bl_count[ke] === 0; ) ke--;
|
|
84837
84835
|
G.bl_count[ke]--, G.bl_count[ke + 1] += 2, G.bl_count[ft]--, nt -= 2;
|
|
84838
84836
|
} while (0 < nt);
|
|
84839
|
-
for (ke = ft; ke !== 0; ke--) for (be = G.bl_count[ke]; be !== 0; ) Le < (Ce = G.heap[--fe]) || (
|
|
84837
|
+
for (ke = ft; ke !== 0; ke--) for (be = G.bl_count[ke]; be !== 0; ) Le < (Ce = G.heap[--fe]) || (Me[2 * Ce + 1] !== ke && (G.opt_len += (ke - Me[2 * Ce + 1]) * Me[2 * Ce], Me[2 * Ce + 1] = ke), be--);
|
|
84840
84838
|
}
|
|
84841
84839
|
}(ee, le), X(pe, W, ee.bl_count);
|
|
84842
84840
|
}
|
|
@@ -173901,14 +173899,14 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173901
173899
|
Se,
|
|
173902
173900
|
$
|
|
173903
173901
|
]);
|
|
173904
|
-
const
|
|
173902
|
+
const Me = je(() => {
|
|
173905
173903
|
}), Le = je(null);
|
|
173906
173904
|
t$e({
|
|
173907
173905
|
editor: G,
|
|
173908
173906
|
isReady: l,
|
|
173909
173907
|
awareness: c,
|
|
173910
173908
|
collaboration: a,
|
|
173911
|
-
collaborationCleanupRef:
|
|
173909
|
+
collaborationCleanupRef: Me,
|
|
173912
173910
|
onCollaboratorChange: L
|
|
173913
173911
|
}), _e(() => {
|
|
173914
173912
|
if (!C) return;
|
|
@@ -173987,7 +173985,7 @@ User prompt: ${u} /no_think` : `${u} /no_think`;
|
|
|
173987
173985
|
window.removeEventListener("keydown", ot);
|
|
173988
173986
|
};
|
|
173989
173987
|
}, [G, B, he]), _e(() => (Z && te && z(te), () => {
|
|
173990
|
-
|
|
173988
|
+
Me.current();
|
|
173991
173989
|
}), [
|
|
173992
173990
|
Z,
|
|
173993
173991
|
te == null ? void 0 : te.roomKey,
|
|
@@ -178359,8 +178357,8 @@ var oee = {};
|
|
|
178359
178357
|
X[T] = Z[T] - te[T];
|
|
178360
178358
|
}
|
|
178361
178359
|
function k(X, Z, te) {
|
|
178362
|
-
let T, K, Y = 0, ie = 0, M = 0, ae = 0, se = 0, J = 0, ee = 0, le = 0, ge = 0, De = 0, xe = 0, pe = 0, ue = 0, he = 0, R = 0, W = 0, G = 0, oe = 0, fe = 0, be = 0, Ce = 0, ke = 0, me = 0, Se = 0,
|
|
178363
|
-
T = Z[0], Y += T * nt, ie += T * qe, M += T * it, ae += T * st, se += T * Dt, J += T * Yt, ee += T * vt, le += T * ot, ge += T * ct, De += T * ze, xe += T * Bt, pe += T * kt, ue += T * Ft, he += T * Ut, R += T * ye, W += T * Ne, T = Z[1], ie += T * nt, M += T * qe, ae += T * it, se += T * st, J += T * Dt, ee += T * Yt, le += T * vt, ge += T * ot, De += T * ct, xe += T * ze, pe += T * Bt, ue += T * kt, he += T * Ft, R += T * Ut, W += T * ye, G += T * Ne, T = Z[2], M += T * nt, ae += T * qe, se += T * it, J += T * st, ee += T * Dt, le += T * Yt, ge += T * vt, De += T * ot, xe += T * ct, pe += T * ze, ue += T * Bt, he += T * kt, R += T * Ft, W += T * Ut, G += T * ye, oe += T * Ne, T = Z[3], ae += T * nt, se += T * qe, J += T * it, ee += T * st, le += T * Dt, ge += T * Yt, De += T * vt, xe += T * ot, pe += T * ct, ue += T * ze, he += T * Bt, R += T * kt, W += T * Ft, G += T * Ut, oe += T * ye, fe += T * Ne, T = Z[4], se += T * nt, J += T * qe, ee += T * it, le += T * st, ge += T * Dt, De += T * Yt, xe += T * vt, pe += T * ot, ue += T * ct, he += T * ze, R += T * Bt, W += T * kt, G += T * Ft, oe += T * Ut, fe += T * ye, be += T * Ne, T = Z[5], J += T * nt, ee += T * qe, le += T * it, ge += T * st, De += T * Dt, xe += T * Yt, pe += T * vt, ue += T * ot, he += T * ct, R += T * ze, W += T * Bt, G += T * kt, oe += T * Ft, fe += T * Ut, be += T * ye, Ce += T * Ne, T = Z[6], ee += T * nt, le += T * qe, ge += T * it, De += T * st, xe += T * Dt, pe += T * Yt, ue += T * vt, he += T * ot, R += T * ct, W += T * ze, G += T * Bt, oe += T * kt, fe += T * Ft, be += T * Ut, Ce += T * ye, ke += T * Ne, T = Z[7], le += T * nt, ge += T * qe, De += T * it, xe += T * st, pe += T * Dt, ue += T * Yt, he += T * vt, R += T * ot, W += T * ct, G += T * ze, oe += T * Bt, fe += T * kt, be += T * Ft, Ce += T * Ut, ke += T * ye, me += T * Ne, T = Z[8], ge += T * nt, De += T * qe, xe += T * it, pe += T * st, ue += T * Dt, he += T * Yt, R += T * vt, W += T * ot, G += T * ct, oe += T * ze, fe += T * Bt, be += T * kt, Ce += T * Ft, ke += T * Ut, me += T * ye, Se += T * Ne, T = Z[9], De += T * nt, xe += T * qe, pe += T * it, ue += T * st, he += T * Dt, R += T * Yt, W += T * vt, G += T * ot, oe += T * ct, fe += T * ze, be += T * Bt, Ce += T * kt, ke += T * Ft, me += T * Ut, Se += T * ye,
|
|
178360
|
+
let T, K, Y = 0, ie = 0, M = 0, ae = 0, se = 0, J = 0, ee = 0, le = 0, ge = 0, De = 0, xe = 0, pe = 0, ue = 0, he = 0, R = 0, W = 0, G = 0, oe = 0, fe = 0, be = 0, Ce = 0, ke = 0, me = 0, Se = 0, Me = 0, Le = 0, Re = 0, bt = 0, yt = 0, ut = 0, ft = 0, nt = te[0], qe = te[1], it = te[2], st = te[3], Dt = te[4], Yt = te[5], vt = te[6], ot = te[7], ct = te[8], ze = te[9], Bt = te[10], kt = te[11], Ft = te[12], Ut = te[13], ye = te[14], Ne = te[15];
|
|
178361
|
+
T = Z[0], Y += T * nt, ie += T * qe, M += T * it, ae += T * st, se += T * Dt, J += T * Yt, ee += T * vt, le += T * ot, ge += T * ct, De += T * ze, xe += T * Bt, pe += T * kt, ue += T * Ft, he += T * Ut, R += T * ye, W += T * Ne, T = Z[1], ie += T * nt, M += T * qe, ae += T * it, se += T * st, J += T * Dt, ee += T * Yt, le += T * vt, ge += T * ot, De += T * ct, xe += T * ze, pe += T * Bt, ue += T * kt, he += T * Ft, R += T * Ut, W += T * ye, G += T * Ne, T = Z[2], M += T * nt, ae += T * qe, se += T * it, J += T * st, ee += T * Dt, le += T * Yt, ge += T * vt, De += T * ot, xe += T * ct, pe += T * ze, ue += T * Bt, he += T * kt, R += T * Ft, W += T * Ut, G += T * ye, oe += T * Ne, T = Z[3], ae += T * nt, se += T * qe, J += T * it, ee += T * st, le += T * Dt, ge += T * Yt, De += T * vt, xe += T * ot, pe += T * ct, ue += T * ze, he += T * Bt, R += T * kt, W += T * Ft, G += T * Ut, oe += T * ye, fe += T * Ne, T = Z[4], se += T * nt, J += T * qe, ee += T * it, le += T * st, ge += T * Dt, De += T * Yt, xe += T * vt, pe += T * ot, ue += T * ct, he += T * ze, R += T * Bt, W += T * kt, G += T * Ft, oe += T * Ut, fe += T * ye, be += T * Ne, T = Z[5], J += T * nt, ee += T * qe, le += T * it, ge += T * st, De += T * Dt, xe += T * Yt, pe += T * vt, ue += T * ot, he += T * ct, R += T * ze, W += T * Bt, G += T * kt, oe += T * Ft, fe += T * Ut, be += T * ye, Ce += T * Ne, T = Z[6], ee += T * nt, le += T * qe, ge += T * it, De += T * st, xe += T * Dt, pe += T * Yt, ue += T * vt, he += T * ot, R += T * ct, W += T * ze, G += T * Bt, oe += T * kt, fe += T * Ft, be += T * Ut, Ce += T * ye, ke += T * Ne, T = Z[7], le += T * nt, ge += T * qe, De += T * it, xe += T * st, pe += T * Dt, ue += T * Yt, he += T * vt, R += T * ot, W += T * ct, G += T * ze, oe += T * Bt, fe += T * kt, be += T * Ft, Ce += T * Ut, ke += T * ye, me += T * Ne, T = Z[8], ge += T * nt, De += T * qe, xe += T * it, pe += T * st, ue += T * Dt, he += T * Yt, R += T * vt, W += T * ot, G += T * ct, oe += T * ze, fe += T * Bt, be += T * kt, Ce += T * Ft, ke += T * Ut, me += T * ye, Se += T * Ne, T = Z[9], De += T * nt, xe += T * qe, pe += T * it, ue += T * st, he += T * Dt, R += T * Yt, W += T * vt, G += T * ot, oe += T * ct, fe += T * ze, be += T * Bt, Ce += T * kt, ke += T * Ft, me += T * Ut, Se += T * ye, Me += T * Ne, T = Z[10], xe += T * nt, pe += T * qe, ue += T * it, he += T * st, R += T * Dt, W += T * Yt, G += T * vt, oe += T * ot, fe += T * ct, be += T * ze, Ce += T * Bt, ke += T * kt, me += T * Ft, Se += T * Ut, Me += T * ye, Le += T * Ne, T = Z[11], pe += T * nt, ue += T * qe, he += T * it, R += T * st, W += T * Dt, G += T * Yt, oe += T * vt, fe += T * ot, be += T * ct, Ce += T * ze, ke += T * Bt, me += T * kt, Se += T * Ft, Me += T * Ut, Le += T * ye, Re += T * Ne, T = Z[12], ue += T * nt, he += T * qe, R += T * it, W += T * st, G += T * Dt, oe += T * Yt, fe += T * vt, be += T * ot, Ce += T * ct, ke += T * ze, me += T * Bt, Se += T * kt, Me += T * Ft, Le += T * Ut, Re += T * ye, bt += T * Ne, T = Z[13], he += T * nt, R += T * qe, W += T * it, G += T * st, oe += T * Dt, fe += T * Yt, be += T * vt, Ce += T * ot, ke += T * ct, me += T * ze, Se += T * Bt, Me += T * kt, Le += T * Ft, Re += T * Ut, bt += T * ye, yt += T * Ne, T = Z[14], R += T * nt, W += T * qe, G += T * it, oe += T * st, fe += T * Dt, be += T * Yt, Ce += T * vt, ke += T * ot, me += T * ct, Se += T * ze, Me += T * Bt, Le += T * kt, Re += T * Ft, bt += T * Ut, yt += T * ye, ut += T * Ne, T = Z[15], W += T * nt, G += T * qe, oe += T * it, fe += T * st, be += T * Dt, Ce += T * Yt, ke += T * vt, me += T * ot, Se += T * ct, Me += T * ze, Le += T * Bt, Re += T * kt, bt += T * Ft, yt += T * Ut, ut += T * ye, ft += T * Ne, Y += 38 * G, ie += 38 * oe, M += 38 * fe, ae += 38 * be, se += 38 * Ce, J += 38 * ke, ee += 38 * me, le += 38 * Se, ge += 38 * Me, De += 38 * Le, xe += 38 * Re, pe += 38 * bt, ue += 38 * yt, he += 38 * ut, R += 38 * ft, K = 1, T = Y + K + 65535, K = Math.floor(T / 65536), Y = T - K * 65536, T = ie + K + 65535, K = Math.floor(T / 65536), ie = T - K * 65536, T = M + K + 65535, K = Math.floor(T / 65536), M = T - K * 65536, T = ae + K + 65535, K = Math.floor(T / 65536), ae = T - K * 65536, T = se + K + 65535, K = Math.floor(T / 65536), se = T - K * 65536, T = J + K + 65535, K = Math.floor(T / 65536), J = T - K * 65536, T = ee + K + 65535, K = Math.floor(T / 65536), ee = T - K * 65536, T = le + K + 65535, K = Math.floor(T / 65536), le = T - K * 65536, T = ge + K + 65535, K = Math.floor(T / 65536), ge = T - K * 65536, T = De + K + 65535, K = Math.floor(T / 65536), De = T - K * 65536, T = xe + K + 65535, K = Math.floor(T / 65536), xe = T - K * 65536, T = pe + K + 65535, K = Math.floor(T / 65536), pe = T - K * 65536, T = ue + K + 65535, K = Math.floor(T / 65536), ue = T - K * 65536, T = he + K + 65535, K = Math.floor(T / 65536), he = T - K * 65536, T = R + K + 65535, K = Math.floor(T / 65536), R = T - K * 65536, T = W + K + 65535, K = Math.floor(T / 65536), W = T - K * 65536, Y += K - 1 + 37 * (K - 1), K = 1, T = Y + K + 65535, K = Math.floor(T / 65536), Y = T - K * 65536, T = ie + K + 65535, K = Math.floor(T / 65536), ie = T - K * 65536, T = M + K + 65535, K = Math.floor(T / 65536), M = T - K * 65536, T = ae + K + 65535, K = Math.floor(T / 65536), ae = T - K * 65536, T = se + K + 65535, K = Math.floor(T / 65536), se = T - K * 65536, T = J + K + 65535, K = Math.floor(T / 65536), J = T - K * 65536, T = ee + K + 65535, K = Math.floor(T / 65536), ee = T - K * 65536, T = le + K + 65535, K = Math.floor(T / 65536), le = T - K * 65536, T = ge + K + 65535, K = Math.floor(T / 65536), ge = T - K * 65536, T = De + K + 65535, K = Math.floor(T / 65536), De = T - K * 65536, T = xe + K + 65535, K = Math.floor(T / 65536), xe = T - K * 65536, T = pe + K + 65535, K = Math.floor(T / 65536), pe = T - K * 65536, T = ue + K + 65535, K = Math.floor(T / 65536), ue = T - K * 65536, T = he + K + 65535, K = Math.floor(T / 65536), he = T - K * 65536, T = R + K + 65535, K = Math.floor(T / 65536), R = T - K * 65536, T = W + K + 65535, K = Math.floor(T / 65536), W = T - K * 65536, Y += K - 1 + 37 * (K - 1), X[0] = Y, X[1] = ie, X[2] = M, X[3] = ae, X[4] = se, X[5] = J, X[6] = ee, X[7] = le, X[8] = ge, X[9] = De, X[10] = xe, X[11] = pe, X[12] = ue, X[13] = he, X[14] = R, X[15] = W;
|
|
178364
178362
|
}
|
|
178365
178363
|
function E(X, Z) {
|
|
178366
178364
|
k(X, Z, Z);
|
|
@@ -178818,11 +178816,11 @@ var dee = { exports: {} };
|
|
|
178818
178816
|
return new p(this.value >= 0 ? this.value : -this.value);
|
|
178819
178817
|
};
|
|
178820
178818
|
function A(R, W) {
|
|
178821
|
-
var G = R.length, oe = W.length, fe = G + oe, be = b(fe), Ce = r, ke, me, Se,
|
|
178819
|
+
var G = R.length, oe = W.length, fe = G + oe, be = b(fe), Ce = r, ke, me, Se, Me, Le;
|
|
178822
178820
|
for (Se = 0; Se < G; ++Se) {
|
|
178823
|
-
|
|
178821
|
+
Me = R[Se];
|
|
178824
178822
|
for (var Re = 0; Re < oe; ++Re)
|
|
178825
|
-
Le = W[Re], ke =
|
|
178823
|
+
Le = W[Re], ke = Me * Le + be[Se + Re], me = Math.floor(ke / Ce), be[Se + Re] = ke - me * Ce, be[Se + Re + 1] += me;
|
|
178826
178824
|
}
|
|
178827
178825
|
return m(be), be;
|
|
178828
178826
|
}
|
|
@@ -178842,8 +178840,8 @@ var dee = { exports: {} };
|
|
|
178842
178840
|
var G = Math.max(R.length, W.length);
|
|
178843
178841
|
if (G <= 30) return A(R, W);
|
|
178844
178842
|
G = Math.ceil(G / 2);
|
|
178845
|
-
var oe = R.slice(G), fe = R.slice(0, G), be = W.slice(G), Ce = W.slice(0, G), ke = _(fe, Ce), me = _(oe, be), Se = _(x(fe, oe), x(Ce, be)),
|
|
178846
|
-
return m(
|
|
178843
|
+
var oe = R.slice(G), fe = R.slice(0, G), be = W.slice(G), Ce = W.slice(0, G), ke = _(fe, Ce), me = _(oe, be), Se = _(x(fe, oe), x(Ce, be)), Me = x(x(ke, j(w(w(Se, ke), me), G)), j(me, 2 * G));
|
|
178844
|
+
return m(Me), Me;
|
|
178847
178845
|
}
|
|
178848
178846
|
function N(R, W) {
|
|
178849
178847
|
return -0.012 * R - 0.012 * W + 15e-6 * R * W > 0;
|
|
@@ -178891,26 +178889,26 @@ var dee = { exports: {} };
|
|
|
178891
178889
|
return new p(this.value * this.value);
|
|
178892
178890
|
};
|
|
178893
178891
|
function S(R, W) {
|
|
178894
|
-
var G = R.length, oe = W.length, fe = r, be = b(W.length), Ce = W[oe - 1], ke = Math.ceil(fe / (2 * Ce)), me = O(R, ke), Se = O(W, ke),
|
|
178892
|
+
var G = R.length, oe = W.length, fe = r, be = b(W.length), Ce = W[oe - 1], ke = Math.ceil(fe / (2 * Ce)), me = O(R, ke), Se = O(W, ke), Me, Le, Re, bt, yt, ut, ft;
|
|
178895
178893
|
for (me.length <= G && me.push(0), Se.push(0), Ce = Se[oe - 1], Le = G - oe; Le >= 0; Le--) {
|
|
178896
|
-
for (
|
|
178897
|
-
Re +=
|
|
178894
|
+
for (Me = fe - 1, me[Le + oe] !== Ce && (Me = Math.floor((me[Le + oe] * fe + me[Le + oe - 1]) / Ce)), Re = 0, bt = 0, ut = Se.length, yt = 0; yt < ut; yt++)
|
|
178895
|
+
Re += Me * Se[yt], ft = Math.floor(Re / fe), bt += me[Le + yt] - (Re - ft * fe), Re = ft, bt < 0 ? (me[Le + yt] = bt + fe, bt = -1) : (me[Le + yt] = bt, bt = 0);
|
|
178898
178896
|
for (; bt !== 0; ) {
|
|
178899
|
-
for (
|
|
178897
|
+
for (Me -= 1, Re = 0, yt = 0; yt < ut; yt++)
|
|
178900
178898
|
Re += me[Le + yt] - fe + Se[yt], Re < 0 ? (me[Le + yt] = Re + fe, Re = 0) : (me[Le + yt] = Re, Re = 1);
|
|
178901
178899
|
bt += Re;
|
|
178902
178900
|
}
|
|
178903
|
-
be[Le] =
|
|
178901
|
+
be[Le] = Me;
|
|
178904
178902
|
}
|
|
178905
178903
|
return me = L(me, ke)[0], [g(be), g(me)];
|
|
178906
178904
|
}
|
|
178907
178905
|
function P(R, W) {
|
|
178908
|
-
for (var G = R.length, oe = W.length, fe = [], be = [], Ce = r, ke, me, Se,
|
|
178906
|
+
for (var G = R.length, oe = W.length, fe = [], be = [], Ce = r, ke, me, Se, Me, Le; G; ) {
|
|
178909
178907
|
if (be.unshift(R[--G]), m(be), H(be, W) < 0) {
|
|
178910
178908
|
fe.push(0);
|
|
178911
178909
|
continue;
|
|
178912
178910
|
}
|
|
178913
|
-
me = be.length, Se = be[me - 1] * Ce + be[me - 2],
|
|
178911
|
+
me = be.length, Se = be[me - 1] * Ce + be[me - 2], Me = W[oe - 1] * Ce + W[oe - 2], me > oe && (Se = (Se + 1) * Ce), ke = Math.ceil(Se / Me);
|
|
178914
178912
|
do {
|
|
178915
178913
|
if (Le = O(W, ke), H(Le, be) <= 0) break;
|
|
178916
178914
|
ke--;
|
|
@@ -178948,8 +178946,8 @@ var dee = { exports: {} };
|
|
|
178948
178946
|
if (Se === -1) return [u[0], R];
|
|
178949
178947
|
if (Se === 0) return [u[R.sign === oe.sign ? 1 : -1], u[0]];
|
|
178950
178948
|
fe.length + be.length <= 200 ? G = S(fe, be) : G = P(fe, be), Ce = G[0];
|
|
178951
|
-
var
|
|
178952
|
-
return typeof Ce == "number" ? (
|
|
178949
|
+
var Me = R.sign !== oe.sign, Le = G[1], Re = R.sign;
|
|
178950
|
+
return typeof Ce == "number" ? (Me && (Ce = -Ce), Ce = new d(Ce)) : Ce = new c(Ce, Me), typeof Le == "number" ? (Re && (Le = -Le), Le = new d(Le)) : Le = new c(Le, Re), [Ce, Le];
|
|
178953
178951
|
}
|
|
178954
178952
|
c.prototype.divmod = function(R) {
|
|
178955
178953
|
var W = z(this, R);
|
|
@@ -179167,8 +179165,8 @@ var dee = { exports: {} };
|
|
|
179167
179165
|
}, p.prototype.shiftRight = d.prototype.shiftRight = c.prototype.shiftRight;
|
|
179168
179166
|
function X(R, W, G) {
|
|
179169
179167
|
W = ue(W);
|
|
179170
|
-
for (var oe = R.isNegative(), fe = W.isNegative(), be = oe ? R.not() : R, Ce = fe ? W.not() : W, ke = 0, me = 0, Se = null,
|
|
179171
|
-
Se = z(be, ne), ke = Se[1].toJSNumber(), oe && (ke = ne - 1 - ke),
|
|
179168
|
+
for (var oe = R.isNegative(), fe = W.isNegative(), be = oe ? R.not() : R, Ce = fe ? W.not() : W, ke = 0, me = 0, Se = null, Me = null, Le = []; !be.isZero() || !Ce.isZero(); )
|
|
179169
|
+
Se = z(be, ne), ke = Se[1].toJSNumber(), oe && (ke = ne - 1 - ke), Me = z(Ce, ne), me = Me[1].toJSNumber(), fe && (me = ne - 1 - me), be = Se[0], Ce = Me[0], Le.push(G(ke, me));
|
|
179172
179170
|
for (var Re = G(oe ? 1 : 0, fe ? 1 : 0) !== 0 ? t(-1) : t(0), bt = Le.length - 1; bt >= 0; bt -= 1)
|
|
179173
179171
|
Re = Re.multiply(ne).add(t(Le[bt]));
|
|
179174
179172
|
return Re;
|
|
@@ -179232,9 +179230,9 @@ var dee = { exports: {} };
|
|
|
179232
179230
|
R = ue(R), W = ue(W);
|
|
179233
179231
|
var oe = G || Math.random, fe = ie(R, W), be = Y(R, W), Ce = be.subtract(fe).add(1);
|
|
179234
179232
|
if (Ce.isSmall) return fe.add(Math.floor(oe() * Ce));
|
|
179235
|
-
for (var ke = ge(Ce, r).value, me = [], Se = !0,
|
|
179236
|
-
var Le = Se ? ke[
|
|
179237
|
-
me.push(Re), Re < ke[
|
|
179233
|
+
for (var ke = ge(Ce, r).value, me = [], Se = !0, Me = 0; Me < ke.length; Me++) {
|
|
179234
|
+
var Le = Se ? ke[Me] + (Me + 1 < ke.length ? ke[Me + 1] / r : 0) : r, Re = y(oe() * Le);
|
|
179235
|
+
me.push(Re), Re < ke[Me] && (Se = !1);
|
|
179238
179236
|
}
|
|
179239
179237
|
return fe.add(u.fromArray(me, r, !1));
|
|
179240
179238
|
}
|
|
@@ -179251,8 +179249,8 @@ var dee = { exports: {} };
|
|
|
179251
179249
|
}
|
|
179252
179250
|
}
|
|
179253
179251
|
W = ue(W);
|
|
179254
|
-
var Se = [],
|
|
179255
|
-
for (be =
|
|
179252
|
+
var Se = [], Me = R[0] === "-";
|
|
179253
|
+
for (be = Me ? 1 : 0; be < R.length; be++) {
|
|
179256
179254
|
var me = R[be];
|
|
179257
179255
|
if (me in ke) Se.push(ue(ke[me]));
|
|
179258
179256
|
else if (me === "<") {
|
|
@@ -179263,7 +179261,7 @@ var dee = { exports: {} };
|
|
|
179263
179261
|
Se.push(ue(R.slice(Le + 1, be)));
|
|
179264
179262
|
} else throw new Error(me + " is not a valid character");
|
|
179265
179263
|
}
|
|
179266
|
-
return ee(Se, W,
|
|
179264
|
+
return ee(Se, W, Me);
|
|
179267
179265
|
};
|
|
179268
179266
|
function ee(R, W, G) {
|
|
179269
179267
|
var oe = u[0], fe = u[1], be;
|
|
@@ -179359,8 +179357,8 @@ var dee = { exports: {} };
|
|
|
179359
179357
|
if (!ke) throw new Error("Invalid integer: " + R);
|
|
179360
179358
|
if (l)
|
|
179361
179359
|
return new p(BigInt(G ? "-" + R : R));
|
|
179362
|
-
for (var me = [], Se = R.length,
|
|
179363
|
-
me.push(+R.slice(Le, Se)), Le -=
|
|
179360
|
+
for (var me = [], Se = R.length, Me = o, Le = Se - Me; Se > 0; )
|
|
179361
|
+
me.push(+R.slice(Le, Se)), Le -= Me, Le < 0 && (Le = 0), Se -= Me;
|
|
179364
179362
|
return m(me), new c(me, G);
|
|
179365
179363
|
}
|
|
179366
179364
|
function pe(R) {
|
|
@@ -185524,7 +185522,7 @@ const WKe = ({
|
|
|
185524
185522
|
replyCount: t,
|
|
185525
185523
|
isCollaborationEnabled: n
|
|
185526
185524
|
}) => {
|
|
185527
|
-
const r =
|
|
185525
|
+
const r = Oe((D) => D.reply), o = Oe((D) => D.replyEditTarget), i = Oe((D) => D.editRequest), s = Oe((D) => D.clearEditRequest), a = Oe((D) => D.setReply), l = Oe((D) => D.setReplyEditTarget), u = Oe((D) => D.cancelReplyEdit), c = Oe((D) => D.handleReplyChange), d = Oe((D) => D.handleReplyKeyDown), p = Oe((D) => D.handleReplySubmit), h = Oe((D) => D.setOpenReplyId), f = Oe((D) => D.username), { isBelow1280px: g } = Li(), m = !!r.trim(), b = !!o, y = !!(!r.trim() || !f || b && r.trim() === ((o == null ? void 0 : o.originalText) ?? "").trim()), F = je(null), x = tp(f);
|
|
185528
185526
|
return _e(() => {
|
|
185529
185527
|
var D;
|
|
185530
185528
|
!i || i.commentId !== e || (a(i.text), l({
|
|
@@ -185627,7 +185625,7 @@ const WKe = ({
|
|
|
185627
185625
|
tabId: e,
|
|
185628
185626
|
isCollaborationEnabled: t
|
|
185629
185627
|
}) => {
|
|
185630
|
-
const n =
|
|
185628
|
+
const n = Oe((u) => u.comment), r = Oe((u) => u.username), o = Oe((u) => u.handleCommentChange), i = Oe((u) => u.handleCommentKeyDown), s = Oe((u) => u.handleCommentSubmit), a = je(null), l = tp(r);
|
|
185631
185629
|
return _e(() => {
|
|
185632
185630
|
a.current && Ro(a.current, 96);
|
|
185633
185631
|
}, [n]), /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-3 color-bg-default border-t color-border-default pt-[20px] rounded-b-lg", children: [
|
|
@@ -185684,7 +185682,7 @@ function QKe(e, t, n) {
|
|
|
185684
185682
|
activeCommentAnchorIds: r,
|
|
185685
185683
|
activeCommentAnchorIdsTabId: o,
|
|
185686
185684
|
hasRenderedCommentAnchor: i
|
|
185687
|
-
} = hme(), s =
|
|
185685
|
+
} = hme(), s = Oe((a) => a.activeTabId);
|
|
185688
185686
|
return Ct(() => !t || !e || (n || Cn) !== s || o !== s || r.has(e) ? !1 : !i(e), [
|
|
185689
185687
|
r,
|
|
185690
185688
|
o,
|
|
@@ -185710,7 +185708,7 @@ const qR = ({
|
|
|
185710
185708
|
onReset: d,
|
|
185711
185709
|
isCollaborationEnabled: p
|
|
185712
185710
|
}) => {
|
|
185713
|
-
const h =
|
|
185711
|
+
const h = Oe((X) => X.tabComments), f = Oe((X) => X.username), g = Oe((X) => X.setUsername), m = Oe((X) => X.focusCommentInEditor), b = Oe((X) => X.setActiveCommentId), y = Oe((X) => X.setOpenReplyId), F = Oe((X) => X.openReplyId), x = Oe((X) => X.resolveComment), D = Oe((X) => X.unresolveComment), w = Oe((X) => X.deleteComment), k = Oe((X) => X.isConnected), E = Oe((X) => X.connectViaWallet), A = Oe((X) => X.isLoading), O = Oe((X) => X.connectViaUsername), j = Oe((X) => X.isDDocOwner), { commentsSectionRef: _, replySectionRef: N } = lf(), { isBelow1280px: C } = Li(), B = r && !!F, [S, P] = Be(null), [L, z] = Be(null), H = (o ?? h).filter((X) => !X.deleted).sort(
|
|
185714
185712
|
(X, Z) => new Date(Z.createdAt).getTime() - new Date(X.createdAt).getTime()
|
|
185715
185713
|
), $ = H.filter(
|
|
185716
185714
|
(X) => !X.resolved
|
|
@@ -186029,9 +186027,9 @@ const qR = ({
|
|
|
186029
186027
|
isCollaborationEnabled: u
|
|
186030
186028
|
}) => {
|
|
186031
186029
|
var G;
|
|
186032
|
-
const c =
|
|
186030
|
+
const c = Oe((oe) => oe.initialComments), d = Oe((oe) => oe.isConnected), p = Oe((oe) => oe.activeDraftId), h = Oe(
|
|
186033
186031
|
(oe) => oe.activeDraftId ? oe.inlineDrafts[oe.activeDraftId] ?? null : null
|
|
186034
|
-
), f =
|
|
186032
|
+
), f = Oe((oe) => oe.createFloatingDraft), g = Oe((oe) => oe.focusCommentInEditor), m = Oe((oe) => oe.isCommentOpen), b = Oe((oe) => oe.openReplyId), y = Oe((oe) => oe.setOpenReplyId), F = Oe((oe) => oe.setIsCommentOpen), x = Oe((oe) => oe.submitInlineDraft), D = Oe((oe) => oe.updateInlineDraftText), { isBelow1280px: w } = Li(), [k, E] = Be(!1), [A, O] = Be(null), j = je(null), _ = je(null), { mobileDraftRef: N } = lf(), C = w && !!b, B = m && h !== null && p !== null && h.location === "drawer" && // Auth-pending drafts intentionally fall back to the non-draft drawer route so
|
|
186035
186033
|
// mobile can show the auth screen without discarding the tracked draft.
|
|
186036
186034
|
!h.isAuthPending;
|
|
186037
186035
|
nGe(() => {
|
|
@@ -186400,7 +186398,7 @@ const qR = ({
|
|
|
186400
186398
|
isCollabDocumentPublished: r,
|
|
186401
186399
|
disableInlineComment: o
|
|
186402
186400
|
}) => {
|
|
186403
|
-
const i =
|
|
186401
|
+
const i = Oe((f) => f.tabComments), s = Oe((f) => f.username), a = Oe(
|
|
186404
186402
|
(f) => f.setIsBubbleMenuSuppressed
|
|
186405
186403
|
), { dropdownRef: l } = lf(), u = je(o || !1), [c, d] = Be(!1);
|
|
186406
186404
|
_e(() => {
|
|
@@ -187128,11 +187126,11 @@ const iGe = Number.POSITIVE_INFINITY, ib = (e) => e.isVisible && e.isMeasured &&
|
|
|
187128
187126
|
), O(it ?? 0);
|
|
187129
187127
|
}
|
|
187130
187128
|
}), w.current.clear();
|
|
187131
|
-
let
|
|
187129
|
+
let Me = Number.POSITIVE_INFINITY;
|
|
187132
187130
|
const Le = _.current.reduce(
|
|
187133
187131
|
(ut, ft, nt) => {
|
|
187134
187132
|
const qe = y.current.get(ft);
|
|
187135
|
-
return !qe || qe.invalidationFlags === Tr.None ? ut : (
|
|
187133
|
+
return !qe || qe.invalidationFlags === Tr.None ? ut : (Me = Math.min(Me, nt), nt);
|
|
187136
187134
|
},
|
|
187137
187135
|
-1
|
|
187138
187136
|
), Re = Math.min(
|
|
@@ -187141,7 +187139,7 @@ const iGe = Number.POSITIVE_INFINITY, ib = (e) => e.isVisible && e.isMeasured &&
|
|
|
187141
187139
|
), bt = !!$.current && ne.current && _.current.length > 0, yt = aGe({
|
|
187142
187140
|
floatingCards: F(),
|
|
187143
187141
|
recomputeStartIndex: Re,
|
|
187144
|
-
firstInvalidatedIndex: bt ? 0 :
|
|
187142
|
+
firstInvalidatedIndex: bt ? 0 : Me,
|
|
187145
187143
|
lastInvalidatedIndex: bt ? _.current.length - 1 : Le,
|
|
187146
187144
|
gap: Zee,
|
|
187147
187145
|
focusedFloatingCardId: $.current
|
|
@@ -187424,7 +187422,7 @@ const iGe = Number.POSITIVE_INFINITY, ib = (e) => e.isVisible && e.isMeasured &&
|
|
|
187424
187422
|
registerCardNode: h
|
|
187425
187423
|
};
|
|
187426
187424
|
}, EGe = () => {
|
|
187427
|
-
const e =
|
|
187425
|
+
const e = Oe((a) => a.blurFloatingCard), t = Oe((a) => a.closeFloatingCard), n = Oe((a) => a.floatingCards), r = Oe(
|
|
187428
187426
|
(a) => a.isDesktopFloatingEnabled
|
|
187429
187427
|
), o = Ct(
|
|
187430
187428
|
() => new Map(
|
|
@@ -187495,7 +187493,7 @@ const iGe = Number.POSITIVE_INFINITY, ib = (e) => e.isVisible && e.isMeasured &&
|
|
|
187495
187493
|
shouldRender: c && l.length > 0
|
|
187496
187494
|
};
|
|
187497
187495
|
}, h_ = () => {
|
|
187498
|
-
const e =
|
|
187496
|
+
const e = Oe((i) => i.connectViaWallet), t = Oe((i) => i.connectViaUsername), n = Oe((i) => i.isLoading), [r, o] = Be("");
|
|
187499
187497
|
return /* @__PURE__ */ v.jsxs("div", { className: "p-3 flex pb-0 flex-col gap-2", children: [
|
|
187500
187498
|
/* @__PURE__ */ v.jsxs("div", { className: "flex gap-2", children: [
|
|
187501
187499
|
/* @__PURE__ */ v.jsx(
|
|
@@ -187555,7 +187553,7 @@ const iGe = Number.POSITIVE_INFINITY, ib = (e) => e.isVisible && e.isMeasured &&
|
|
|
187555
187553
|
"data-floating-comment-card": e,
|
|
187556
187554
|
className: Ve(
|
|
187557
187555
|
"absolute left-0 top-0 pb-[12px] border rounded-[12px] will-change-transform transition-[box-shadow,border-color] duration-150 ease-out",
|
|
187558
|
-
n ? "shadow-elevation-3 color-bg-default
|
|
187556
|
+
n ? "shadow-elevation-3 color-bg-default color-border-default" : "color-bg-transparent border-transparent hover:color-bg-default-hover hover:color-border-default"
|
|
187559
187557
|
),
|
|
187560
187558
|
style: {
|
|
187561
187559
|
width: ete,
|
|
@@ -187575,7 +187573,7 @@ const AGe = ({
|
|
|
187575
187573
|
isHidden: t,
|
|
187576
187574
|
registerCardNode: n
|
|
187577
187575
|
}) => {
|
|
187578
|
-
const r =
|
|
187576
|
+
const r = Oe((u) => u.focusFloatingCard), o = Oe((u) => u.inlineDrafts[e.draftId]), i = Oe((u) => u.username), s = Oe((u) => u.isConnected), a = je(null), l = tp(i);
|
|
187579
187577
|
return _e(() => {
|
|
187580
187578
|
if (!o || !e.isFocused || t)
|
|
187581
187579
|
return;
|
|
@@ -187629,7 +187627,7 @@ const AGe = ({
|
|
|
187629
187627
|
draftState: e,
|
|
187630
187628
|
draft: t
|
|
187631
187629
|
}) => {
|
|
187632
|
-
const n =
|
|
187630
|
+
const n = Oe((s) => s.submitInlineDraft), r = Oe((s) => s.updateInlineDraftText), o = Oe((s) => s.cancelInlineDraft), i = je(null);
|
|
187633
187631
|
return _e(() => {
|
|
187634
187632
|
i.current && Ro(i.current);
|
|
187635
187633
|
}, [e == null ? void 0 : e.text]), /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-3 p-3 pb-0 pt-0", children: [
|
|
@@ -187675,7 +187673,7 @@ const AGe = ({
|
|
|
187675
187673
|
isHidden: t,
|
|
187676
187674
|
registerCardNode: n
|
|
187677
187675
|
}) => {
|
|
187678
|
-
const r =
|
|
187676
|
+
const r = Oe((d) => d.focusFloatingCard), o = Oe((d) => d.submitDraft), i = Oe((d) => d.discardDraft), s = Oe((d) => d.isConnected), a = !!e.selectedText, l = !!e.insertedText, u = a || l, c = a ? l ? "replace" : "delete" : l ? "add" : null;
|
|
187679
187677
|
return /* @__PURE__ */ v.jsx(
|
|
187680
187678
|
rm,
|
|
187681
187679
|
{
|
|
@@ -187754,33 +187752,33 @@ const AGe = ({
|
|
|
187754
187752
|
isHidden: n,
|
|
187755
187753
|
registerCardNode: r
|
|
187756
187754
|
}) => {
|
|
187757
|
-
const o =
|
|
187755
|
+
const o = Oe((m) => m.focusFloatingCard), i = Oe((m) => m.focusCommentInEditor), s = Oe((m) => m.isDDocOwner), a = Oe((m) => m.username), l = Oe((m) => m.acceptSuggestion), u = Oe((m) => m.deleteComment);
|
|
187758
187756
|
if (!t) return null;
|
|
187759
|
-
const
|
|
187757
|
+
const c = () => {
|
|
187760
187758
|
o(e.floatingCardId), !e.isFocused && e.commentId && i(e.commentId);
|
|
187761
|
-
},
|
|
187759
|
+
}, d = !!(a && t.username && t.username === a), p = s, h = !s && d, f = () => {
|
|
187760
|
+
e.commentId && l(e.commentId);
|
|
187761
|
+
}, g = () => {
|
|
187762
187762
|
e.commentId && u(e.commentId);
|
|
187763
|
-
}, m = () => {
|
|
187764
|
-
e.commentId && c(e.commentId);
|
|
187765
187763
|
};
|
|
187766
187764
|
return /* @__PURE__ */ v.jsx(
|
|
187767
187765
|
rm,
|
|
187768
187766
|
{
|
|
187769
|
-
ref: (
|
|
187767
|
+
ref: (m) => r(e.floatingCardId, m),
|
|
187770
187768
|
floatingCardId: e.floatingCardId,
|
|
187771
187769
|
isHidden: n,
|
|
187772
187770
|
isFocused: e.isFocused,
|
|
187773
|
-
onFocus:
|
|
187771
|
+
onFocus: c,
|
|
187774
187772
|
children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-2 p-3", children: [
|
|
187775
187773
|
/* @__PURE__ */ v.jsx(
|
|
187776
187774
|
BGe,
|
|
187777
187775
|
{
|
|
187778
187776
|
username: t.username,
|
|
187779
187777
|
createdAt: t.createdAt,
|
|
187780
|
-
canAcceptReject:
|
|
187781
|
-
canWithdraw:
|
|
187782
|
-
onAccept:
|
|
187783
|
-
onReject:
|
|
187778
|
+
canAcceptReject: p,
|
|
187779
|
+
canWithdraw: h,
|
|
187780
|
+
onAccept: f,
|
|
187781
|
+
onReject: g
|
|
187784
187782
|
}
|
|
187785
187783
|
),
|
|
187786
187784
|
/* @__PURE__ */ v.jsx(NGe, { comment: t }),
|
|
@@ -187932,7 +187930,7 @@ const AGe = ({
|
|
|
187932
187930
|
thread: e,
|
|
187933
187931
|
comment: t
|
|
187934
187932
|
}) => {
|
|
187935
|
-
const n =
|
|
187933
|
+
const n = Oe((d) => d.username), r = Oe((d) => d.isConnected), o = Oe((d) => d.handleAddReply), i = Oe((d) => d.setCommentDrawerOpen), [s, a] = Be(""), l = je(null), u = !t.resolved && !t.deleted;
|
|
187936
187934
|
_e(() => {
|
|
187937
187935
|
l.current && Ro(l.current);
|
|
187938
187936
|
}, [s]);
|
|
@@ -187985,7 +187983,7 @@ const AGe = ({
|
|
|
187985
187983
|
registerCardNode: o,
|
|
187986
187984
|
isCollaborationEnabled: i
|
|
187987
187985
|
}) => {
|
|
187988
|
-
const s =
|
|
187986
|
+
const s = Oe((x) => x.focusFloatingCard), a = Oe((x) => x.focusCommentInEditor), l = Oe((x) => x.isConnected), u = Oe((x) => x.resolveComment), c = Oe((x) => x.username), d = Oe((x) => x.deleteComment), p = Oe((x) => x.isDDocOwner), [h, f] = Be(!1), g = !!(t != null && t.username && t.username === c) || p, m = () => {
|
|
187989
187987
|
e.commentId && f(!0);
|
|
187990
187988
|
}, b = () => {
|
|
187991
187989
|
f(!1);
|
|
@@ -188054,7 +188052,7 @@ const AGe = ({
|
|
|
188054
188052
|
thread: t,
|
|
188055
188053
|
isCollaborationEnabled: n
|
|
188056
188054
|
}) => {
|
|
188057
|
-
const r =
|
|
188055
|
+
const r = Oe((O) => O.username), [o, i] = Be(!1), s = !(e != null && e.resolved) && !!e, a = Oe((O) => O.setCommentDrawerOpen), l = Oe((O) => O.handleAddReply), u = Oe((O) => O.editRequest), c = Oe((O) => O.clearEditRequest), d = Oe((O) => O.replyEditTarget), p = Oe((O) => O.setReplyEditTarget), h = Oe((O) => O.cancelReplyEdit), f = Oe((O) => O.editCompletion), g = Oe((O) => O.editCommentContent), m = Oe((O) => O.editReplyContent), b = je(null), [y, F] = Be(""), x = Oe((O) => O.isConnected), D = () => {
|
|
188058
188056
|
if (!(!t.commentId || !y.trim())) {
|
|
188059
188057
|
if (!x) {
|
|
188060
188058
|
a == null || a(!0);
|
|
@@ -188164,7 +188162,7 @@ const AGe = ({
|
|
|
188164
188162
|
isHidden: o,
|
|
188165
188163
|
isCollaborationEnabled: i
|
|
188166
188164
|
}) => {
|
|
188167
|
-
const s =
|
|
188165
|
+
const s = Oe((d) => d.tabComments), {
|
|
188168
188166
|
floatingCardListContainerRef: a,
|
|
188169
188167
|
mountedFloatingCards: l,
|
|
188170
188168
|
registerCardNode: u,
|
|
@@ -190441,7 +190439,7 @@ const eXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190441
190439
|
isLoading: ke,
|
|
190442
190440
|
connectViaUsername: me,
|
|
190443
190441
|
isDDocOwner: Se,
|
|
190444
|
-
isCollabDocumentPublished:
|
|
190442
|
+
isCollabDocumentPublished: Me = !0,
|
|
190445
190443
|
disableInlineComment: Le,
|
|
190446
190444
|
renderThemeToggle: Re,
|
|
190447
190445
|
metadataProxyUrl: bt,
|
|
@@ -190966,7 +190964,7 @@ const eXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
190966
190964
|
onInlineComment: $,
|
|
190967
190965
|
setCommentDrawerOpen: se,
|
|
190968
190966
|
activeCommentId: im,
|
|
190969
|
-
isCollabDocumentPublished:
|
|
190967
|
+
isCollabDocumentPublished: Me,
|
|
190970
190968
|
ipfsImageFetchFn: qe,
|
|
190971
190969
|
fetchV1ImageFn: it,
|
|
190972
190970
|
ipfsImageUploadFn: g,
|
|
@@ -191203,7 +191201,7 @@ const eXe = "space-xsm gap-xsm hover:color-bg-default-hover cursor-pointer h-[30
|
|
|
191203
191201
|
editor: St,
|
|
191204
191202
|
activeCommentId: im,
|
|
191205
191203
|
commentDrawerOpen: ae,
|
|
191206
|
-
isCollabDocumentPublished:
|
|
191204
|
+
isCollabDocumentPublished: Me,
|
|
191207
191205
|
disableInlineComment: Le
|
|
191208
191206
|
}
|
|
191209
191207
|
) })
|