@talkjs/web-components 0.2.3 → 0.2.4
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/default.cjs +361 -258
- package/default.css +1 -1
- package/default.js +752 -647
- package/package.json +1 -1
package/default.js
CHANGED
|
@@ -3,7 +3,7 @@ var bu = (t) => {
|
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
5
|
var wu = (t, e, n) => e.has(t) || bu("Cannot " + n);
|
|
6
|
-
var Ee = (t, e, n) => (wu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Tr = (t, e, n) => e.has(t) ? bu("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n),
|
|
6
|
+
var Ee = (t, e, n) => (wu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Tr = (t, e, n) => e.has(t) ? bu("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), Do = (t, e, n, r) => (wu(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
7
7
|
import { getTalkSession as xA } from "@talkjs/core";
|
|
8
8
|
const hc = Object.freeze(Object.defineProperty({ __proto__: null, get AfterMessages() {
|
|
9
9
|
return WR;
|
|
@@ -111,11 +111,11 @@ function Of(t) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function Al(t) {
|
|
114
|
-
(!t.__d && (t.__d = !0) && Wn.push(t) && !
|
|
114
|
+
(!t.__d && (t.__d = !0) && Wn.push(t) && !es.__r++ || ku != ee.debounceRendering) && ((ku = ee.debounceRendering) || mf)(es);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function es() {
|
|
117
117
|
for (var t, e, n, r, i, o, s, a = 1; Wn.length; ) Wn.length > a && Wn.sort(Ef), t = Wn.shift(), a = Wn.length, t.__d && (n = void 0, r = void 0, i = (r = (e = t).__v).__e, o = [], s = [], e.__P && ((n = $t({}, r)).__v = r.__v + 1, ee.vnode && ee.vnode(n), fc(e.__P, n, r, e.__n, e.__P.namespaceURI, 32 & r.__u ? [i] : null, o, i == null ? Yr(r) : i, !!(32 & r.__u), s), n.__v = r.__v, n.__.__k[n.__i] = n, Df(o, n, s), r.__e = r.__ = null, n.__e != i && Of(n)));
|
|
118
|
-
|
|
118
|
+
es.__r = 0;
|
|
119
119
|
}
|
|
120
120
|
function Lu(t, e, n, r, i, o, s, a, l, u, c) {
|
|
121
121
|
var d, h, f, p, m, E, _, A = r && r.__k || gf, O = e.length;
|
|
@@ -155,7 +155,7 @@ function HA(t, e, n, r) {
|
|
|
155
155
|
function Mu(t, e, n) {
|
|
156
156
|
e[0] == "-" ? t.setProperty(e, n == null ? "" : n) : t[e] = n == null ? "" : typeof n != "number" || FA.test(e) ? n : n + "px";
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function To(t, e, n, r, i) {
|
|
159
159
|
var o, s;
|
|
160
160
|
e: if (e == "style") if (typeof n == "string") t.style.cssText = n;
|
|
161
161
|
else {
|
|
@@ -238,13 +238,13 @@ function fc(t, e, n, r, i, o, s, a, l, u) {
|
|
|
238
238
|
if (z == "dangerouslySetInnerHTML") le = de;
|
|
239
239
|
else if (!(z in je)) {
|
|
240
240
|
if (z == "value" && "defaultValue" in je || z == "checked" && "defaultChecked" in je) continue;
|
|
241
|
-
|
|
241
|
+
To(N, z, null, de, x);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
for (z in je) de = je[z], z == "children" ? ue = de : z == "dangerouslySetInnerHTML" ? Ae = de : z == "value" ? Be = de : z == "checked" ? Sr = de : V && typeof de != "function" || At[z] === de ||
|
|
244
|
+
for (z in je) de = je[z], z == "children" ? ue = de : z == "dangerouslySetInnerHTML" ? Ae = de : z == "value" ? Be = de : z == "checked" ? Sr = de : V && typeof de != "function" || At[z] === de || To(N, z, de, At[z], x);
|
|
245
245
|
if (Ae) V || le && (Ae.__html == le.__html || Ae.__html == N.innerHTML) || (N.innerHTML = Ae.__html), k.__k = [];
|
|
246
246
|
else if (le && (N.innerHTML = ""), Lu(k.type == "template" ? N.content : N, xi(ue) ? ue : [ue], k, b, L, ut == "foreignObject" ? "http://www.w3.org/1999/xhtml" : x, P, B, P ? P[0] : b.__k && Yr(b, 0), V, $), P != null) for (z = P.length; z--; ) _l(P[z]);
|
|
247
|
-
V || (z = "value", ut == "progress" && Be == null ? N.removeAttribute("value") : Be != null && (Be !== N[z] || ut == "progress" && !Be || ut == "option" && Be != At[z]) &&
|
|
247
|
+
V || (z = "value", ut == "progress" && Be == null ? N.removeAttribute("value") : Be != null && (Be !== N[z] || ut == "progress" && !Be || ut == "option" && Be != At[z]) && To(N, z, Be, At[z], x), z = "checked", Sr != null && Sr != N[z] && To(N, z, Sr, At[z], x));
|
|
248
248
|
}
|
|
249
249
|
return N;
|
|
250
250
|
})(n.__e, e, n, r, i, o, s, l, u);
|
|
@@ -343,7 +343,7 @@ oo = gf.slice, ee = { __e: function(t, e, n, r) {
|
|
|
343
343
|
this.__v && (this.__e = !0, t && this.__h.push(t), Al(this));
|
|
344
344
|
}, Nt.prototype.render = De, Wn = [], mf = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Ef = function(t, e) {
|
|
345
345
|
return t.__v.__b - e.__v.__b;
|
|
346
|
-
},
|
|
346
|
+
}, es.__r = 0, _f = /(PointerCapture)$|Capture$/i, pc = 0, ml = Pu(!1), El = Pu(!0), Af = 0;
|
|
347
347
|
var jA = 0;
|
|
348
348
|
function y(t, e, n, r, i, o) {
|
|
349
349
|
e || (e = {});
|
|
@@ -360,9 +360,9 @@ function fr(t, e) {
|
|
|
360
360
|
return t >= n.__.length && n.__.push({}), n.__[t];
|
|
361
361
|
}
|
|
362
362
|
function ne(t) {
|
|
363
|
-
return Gr = 1,
|
|
363
|
+
return Gr = 1, ks(Cf, t);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function ks(t, e, n) {
|
|
366
366
|
var r = fr(fn++, 2);
|
|
367
367
|
if (r.t = t, !r.__c && (r.__ = [n ? n(e) : Cf(void 0, e), function(a) {
|
|
368
368
|
var l = r.__N ? r.__N[0] : r.__[0], u = r.t(l, a);
|
|
@@ -438,7 +438,7 @@ function Fn(t) {
|
|
|
438
438
|
function Ec(t, e) {
|
|
439
439
|
Se.useDebugValue && Se.useDebugValue(e ? e(t) : t);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Ls() {
|
|
442
442
|
var t = fr(fn++, 11);
|
|
443
443
|
if (!t.__) {
|
|
444
444
|
for (var e = me.__v; e !== null && !e.__m && e.__ !== null; ) e = e.__;
|
|
@@ -449,7 +449,7 @@ function ks() {
|
|
|
449
449
|
}
|
|
450
450
|
function $A() {
|
|
451
451
|
for (var t; t = If.shift(); ) if (t.__P && t.__H) try {
|
|
452
|
-
t.__H.__h.forEach(
|
|
452
|
+
t.__H.__h.forEach(Bo), t.__H.__h.forEach(Sl), t.__H.__h = [];
|
|
453
453
|
} catch (e) {
|
|
454
454
|
t.__H.__h = [], Se.__e(e, t.__v);
|
|
455
455
|
}
|
|
@@ -463,7 +463,7 @@ Se.__b = function(t) {
|
|
|
463
463
|
var e = (me = t.__c).__H;
|
|
464
464
|
e && (_a === me ? (e.__h = [], me.__h = [], e.__.forEach(function(n) {
|
|
465
465
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
466
|
-
})) : (e.__h.forEach(
|
|
466
|
+
})) : (e.__h.forEach(Bo), e.__h.forEach(Sl), e.__h = [], fn = 0)), _a = me;
|
|
467
467
|
}, Se.diffed = function(t) {
|
|
468
468
|
Uu && Uu(t);
|
|
469
469
|
var e = t.__c;
|
|
@@ -473,7 +473,7 @@ Se.__b = function(t) {
|
|
|
473
473
|
}, Se.__c = function(t, e) {
|
|
474
474
|
e.some(function(n) {
|
|
475
475
|
try {
|
|
476
|
-
n.__h.forEach(
|
|
476
|
+
n.__h.forEach(Bo), n.__h = n.__h.filter(function(r) {
|
|
477
477
|
return !r.__ || Sl(r);
|
|
478
478
|
});
|
|
479
479
|
} catch (r) {
|
|
@@ -487,7 +487,7 @@ Se.__b = function(t) {
|
|
|
487
487
|
var e, n = t.__c;
|
|
488
488
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
489
489
|
try {
|
|
490
|
-
|
|
490
|
+
Bo(r);
|
|
491
491
|
} catch (i) {
|
|
492
492
|
e = i;
|
|
493
493
|
}
|
|
@@ -500,7 +500,7 @@ function VA(t) {
|
|
|
500
500
|
}, r = setTimeout(n, 35);
|
|
501
501
|
Vu && (e = requestAnimationFrame(n));
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Bo(t) {
|
|
504
504
|
var e = me, n = t.__c;
|
|
505
505
|
typeof n == "function" && (t.__c = void 0, n()), me = e;
|
|
506
506
|
}
|
|
@@ -554,7 +554,7 @@ function Oc() {
|
|
|
554
554
|
return [!1, gc];
|
|
555
555
|
}
|
|
556
556
|
var vc = Xe;
|
|
557
|
-
function
|
|
557
|
+
function ts(t, e) {
|
|
558
558
|
this.props = t, this.context = e;
|
|
559
559
|
}
|
|
560
560
|
function mn(t, e) {
|
|
@@ -567,7 +567,7 @@ function mn(t, e) {
|
|
|
567
567
|
}
|
|
568
568
|
return r.displayName = "Memo(" + (t.displayName || t.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r.type = t, r;
|
|
569
569
|
}
|
|
570
|
-
(
|
|
570
|
+
(ts.prototype = new Nt()).isPureReactComponent = !0, ts.prototype.shouldComponentUpdate = function(t, e) {
|
|
571
571
|
return Ol(this.props, t) || Ol(this.state, e);
|
|
572
572
|
};
|
|
573
573
|
var zu = ee.__b;
|
|
@@ -779,7 +779,7 @@ ee.diffed = function(t) {
|
|
|
779
779
|
};
|
|
780
780
|
var Ff = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
781
781
|
return Rc.__n[t.__c].props.value;
|
|
782
|
-
}, useCallback: q, useContext: Fn, useDebugValue: Ec, useDeferredValue: Sc, useEffect: G, useId:
|
|
782
|
+
}, useCallback: q, useContext: Fn, useDebugValue: Ec, useDeferredValue: Sc, useEffect: G, useId: Ls, useImperativeHandle: _n, useInsertionEffect: vc, useLayoutEffect: Xe, useMemo: te, useReducer: ks, useRef: X, useState: ne, useSyncExternalStore: Ac, useTransition: Oc } } };
|
|
783
783
|
function Hf(t) {
|
|
784
784
|
return fe.bind(null, t);
|
|
785
785
|
}
|
|
@@ -803,17 +803,17 @@ function $f(t) {
|
|
|
803
803
|
}
|
|
804
804
|
var Vf = function(t, e) {
|
|
805
805
|
return t(e);
|
|
806
|
-
},
|
|
806
|
+
}, Ms = function(t, e) {
|
|
807
807
|
return t(e);
|
|
808
|
-
}, zf = De, Yf = so, F = { useState: ne, useId:
|
|
809
|
-
const Gf = Object.freeze(Object.defineProperty({ __proto__: null, Children: bf, Component: Nt, Fragment: De, PureComponent:
|
|
808
|
+
}, zf = De, Yf = so, F = { useState: ne, useId: Ls, useReducer: ks, useEffect: G, useLayoutEffect: Xe, useInsertionEffect: vc, useTransition: Oc, useDeferredValue: Sc, useSyncExternalStore: Ac, startTransition: gc, useRef: X, useImperativeHandle: _n, useMemo: te, useCallback: q, useContext: Fn, useDebugValue: Ec, version: "18.3.1", Children: bf, render: Tc, hydrate: xf, unmountComponentAtNode: yc, createPortal: Dc, createElement: fe, createContext: ri, createFactory: Hf, cloneElement: jf, createRef: Sf, Fragment: De, isValidElement: so, isElement: Yf, isFragment: Uf, isMemo: Bf, findDOMNode: $f, Component: Nt, PureComponent: ts, memo: mn, forwardRef: _t, flushSync: Ms, unstable_batchedUpdates: Vf, StrictMode: zf, Suspense: yi, SuspenseList: wr, lazy: Mf, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ff };
|
|
809
|
+
const Gf = Object.freeze(Object.defineProperty({ __proto__: null, Children: bf, Component: Nt, Fragment: De, PureComponent: ts, StrictMode: zf, Suspense: yi, SuspenseList: wr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Ff, cloneElement: jf, createContext: ri, createElement: fe, createFactory: Hf, createPortal: Dc, createRef: Sf, default: F, findDOMNode: $f, flushSync: Ms, forwardRef: _t, hydrate: xf, isElement: Yf, isFragment: Uf, isMemo: Bf, isValidElement: so, lazy: Mf, memo: mn, render: Tc, startTransition: gc, unmountComponentAtNode: yc, unstable_batchedUpdates: Vf, useCallback: q, useContext: Fn, useDebugValue: Ec, useDeferredValue: Sc, useEffect: G, useErrorBoundary: function(t) {
|
|
810
810
|
var e = fr(fn++, 10), n = ne();
|
|
811
811
|
return e.__ = t, me.componentDidCatch || (me.componentDidCatch = function(r, i) {
|
|
812
812
|
e.__ && e.__(r, i), n[1](r);
|
|
813
813
|
}), [n[0], function() {
|
|
814
814
|
n[1](void 0);
|
|
815
815
|
}];
|
|
816
|
-
}, useId:
|
|
816
|
+
}, useId: Ls, useImperativeHandle: _n, useInsertionEffect: vc, useLayoutEffect: Xe, useMemo: te, useReducer: ks, useRef: X, useState: ne, useSyncExternalStore: Ac, useTransition: Oc, version: "18.3.1" }, Symbol.toStringTag, { value: "Module" }));
|
|
817
817
|
var Ic = Object.prototype.hasOwnProperty;
|
|
818
818
|
function ke(t) {
|
|
819
819
|
return Array.isArray(t);
|
|
@@ -846,7 +846,7 @@ function Ue(t) {
|
|
|
846
846
|
function En(t) {
|
|
847
847
|
return t instanceof Set || t instanceof WeakSet;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function ns(t) {
|
|
850
850
|
if (!t) return !1;
|
|
851
851
|
if (ke(t)) return t.length === 0;
|
|
852
852
|
if (Ue(t) || En(t)) return t.size === 0;
|
|
@@ -854,10 +854,10 @@ function ts(t) {
|
|
|
854
854
|
return !0;
|
|
855
855
|
}
|
|
856
856
|
var ig = /* @__PURE__ */ new Set(["boolean", "string", "number"]);
|
|
857
|
-
function
|
|
857
|
+
function Ps(t) {
|
|
858
858
|
return !!t.parent;
|
|
859
859
|
}
|
|
860
|
-
var Xf = Symbol.toPrimitive, og = Symbol.iterator, Wr = Symbol("getNode"),
|
|
860
|
+
var Xf = Symbol.toPrimitive, og = Symbol.iterator, Wr = Symbol("getNode"), xs = Symbol("delete"), Kf = Symbol("opaque"), sg = Symbol("plain"), Cc = Symbol("optimized"), Hi = Symbol("linked"), be = { pendingNodes: /* @__PURE__ */ new Map(), dirtyNodes: /* @__PURE__ */ new Set() };
|
|
861
861
|
function Ui(t) {
|
|
862
862
|
return t && (t[Kf] || t.$$typeof);
|
|
863
863
|
}
|
|
@@ -902,7 +902,7 @@ function tm(t, e, n, r, i) {
|
|
|
902
902
|
}
|
|
903
903
|
function hn(t, e) {
|
|
904
904
|
var n;
|
|
905
|
-
const r = (n = t.parent) != null ? n : t, i = t.parent ? t.key : "_", o = e ===
|
|
905
|
+
const r = (n = t.parent) != null ? n : t, i = t.parent ? t.key : "_", o = e === xs;
|
|
906
906
|
o && (e = void 0);
|
|
907
907
|
const s = t.parent ? Nc(r) : r.root, a = En(s), l = Ue(s), u = a ? i : l ? s.get(i) : s[i], c = Q(e);
|
|
908
908
|
if ((e = r.isAssigning || !c || Q(u) ? e : e(u)) !== u) try {
|
|
@@ -915,7 +915,7 @@ function hn(t, e) {
|
|
|
915
915
|
var Zu = [];
|
|
916
916
|
function _e(t) {
|
|
917
917
|
let e = 0, n = t;
|
|
918
|
-
for (;
|
|
918
|
+
for (; Ps(n); ) Zu[e++] = n.key, n = n.parent;
|
|
919
919
|
let r = t.root._;
|
|
920
920
|
for (let i = e - 1; r && i >= 0; i--) {
|
|
921
921
|
const o = Zu[i];
|
|
@@ -931,7 +931,7 @@ function Ht(t, e, n) {
|
|
|
931
931
|
}
|
|
932
932
|
function Nc(t) {
|
|
933
933
|
let e = _e(t);
|
|
934
|
-
if (!e || Q(e)) if (
|
|
934
|
+
if (!e || Q(e)) if (Ps(t)) {
|
|
935
935
|
const n = Nc(t.parent), r = En(n), i = Ue(n);
|
|
936
936
|
e = tm(n, t.key, {}, r, i);
|
|
937
937
|
} else e = t.root._ = {};
|
|
@@ -979,12 +979,12 @@ function om(t, e, n, r, i, o, s) {
|
|
|
979
979
|
const d = Ue(l);
|
|
980
980
|
let h = l ? d ? l.get(a) : l[a] : void 0;
|
|
981
981
|
const f = u ? d ? u.get(a) : u[a] : void 0;
|
|
982
|
-
if (h ===
|
|
982
|
+
if (h === xs) return u && (d ? l.set(a, f) : l[a] = f, s == null || s(e.slice(0, c + 1), f)), t;
|
|
983
983
|
if (h === void 0 && r === void 0 && c === e.length - 1) return t;
|
|
984
984
|
c < e.length - 1 && h == null && (h = bc(n[c]), Ue(l) ? l.set(a, h) : l[a] = h), c < e.length - 1 && (l = h, u && (u = f));
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
|
-
return a === void 0 ? t = i === "merge" ?
|
|
987
|
+
return a === void 0 ? t = i === "merge" ? rs(t, r) : r : i === "merge" ? l[a] = rs(l[a], r) : Ue(l) ? l.set(a, r) : l[a] = r, t;
|
|
988
988
|
}
|
|
989
989
|
function td(t, e, n) {
|
|
990
990
|
let r = n;
|
|
@@ -995,7 +995,7 @@ function td(t, e, n) {
|
|
|
995
995
|
return r;
|
|
996
996
|
}
|
|
997
997
|
function Tl(t) {
|
|
998
|
-
return !(!t || (Yt(t) || ke(t)) &&
|
|
998
|
+
return !(!t || (Yt(t) || ke(t)) && ns(t));
|
|
999
999
|
}
|
|
1000
1000
|
function bc(t) {
|
|
1001
1001
|
switch (t) {
|
|
@@ -1013,19 +1013,19 @@ function hg(t, e, n) {
|
|
|
1013
1013
|
const { path: r, valueAtPath: i, prevAtPath: o, pathTypes: s } = e;
|
|
1014
1014
|
return om(t, r, s, o);
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function rs(t, ...e) {
|
|
1017
1017
|
if (Qe(t)) return e[e.length - 1];
|
|
1018
1018
|
let n = ke(t) ? [...t] : { ...t };
|
|
1019
1019
|
for (let r = 0; r < e.length; r++) {
|
|
1020
1020
|
const i = e[r];
|
|
1021
1021
|
if (rg(i) || ke(i)) {
|
|
1022
1022
|
const o = i;
|
|
1023
|
-
for (const s in o) Ic.call(o, s) && (o[s] instanceof Object && !Ce(o[s]) && Object.keys(o[s]).length > 0 ? n[s] =
|
|
1023
|
+
for (const s in o) Ic.call(o, s) && (o[s] instanceof Object && !Ce(o[s]) && Object.keys(o[s]).length > 0 ? n[s] = rs(n[s] || (ke(o[s]) ? [] : {}), o[s]) : n[s] = o[s]);
|
|
1024
1024
|
} else n = i;
|
|
1025
1025
|
}
|
|
1026
1026
|
return n;
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1028
|
+
var is = 0, ga = !1, Sa = !1, Fr = /* @__PURE__ */ new Map();
|
|
1029
1029
|
function pg() {
|
|
1030
1030
|
Fr.size > 0 && ii(!0);
|
|
1031
1031
|
}
|
|
@@ -1050,11 +1050,11 @@ function wc(t, e) {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
function Bi(t, e, n, r, i) {
|
|
1052
1052
|
const o = /* @__PURE__ */ new Map();
|
|
1053
|
-
|
|
1053
|
+
ss(o, t, !!be.isLoadingLocal, !!be.isLoadingRemote, e, [], [], e, n, !0, r, i);
|
|
1054
1054
|
const s = Fr.get(t);
|
|
1055
|
-
s ? s.prev === e ? Fr.delete(t) : s.value = e : Fr.set(t, { value: e, prev: n, level: r, whenOptimizedOnlyIf: i, isFromSync: !!be.isLoadingRemote, isFromPersist: !!be.isLoadingLocal }), o.size && am(o, !0),
|
|
1055
|
+
s ? s.prev === e ? Fr.delete(t) : s.value = e : Fr.set(t, { value: e, prev: n, level: r, whenOptimizedOnlyIf: i, isFromSync: !!be.isLoadingRemote, isFromPersist: !!be.isLoadingLocal }), o.size && am(o, !0), is <= 0 && lm();
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function ss(t, e, n, r, i, o, s, a, l, u, c, d) {
|
|
1058
1058
|
if (e.numListenersRecursive > 0 && ((function(h, f, p, m, E, _, A, O, S, v, T, R) {
|
|
1059
1059
|
if (v ? f.listenersImmediate : f.listeners) {
|
|
1060
1060
|
const I = { path: _, pathTypes: A, valueAtPath: O, prevAtPath: S }, g = h.get(f);
|
|
@@ -1064,10 +1064,10 @@ function is(t, e, n, r, i, o, s, a, l, u, c, d) {
|
|
|
1064
1064
|
} else h.set(f, { level: T, value: E, isFromSync: m, isFromPersist: p, whenOptimizedOnlyIf: R, changes: [I] });
|
|
1065
1065
|
}
|
|
1066
1066
|
})(t, e, n, r, i, o, s, a, l, u, c, d), e.linkedFromNodes)) for (const h of e.linkedFromNodes)
|
|
1067
|
-
|
|
1067
|
+
ss(t, mg(h, o), n, r, a, [], [], a, l, u, 0, d);
|
|
1068
1068
|
if (e.parent) {
|
|
1069
1069
|
const h = e.parent;
|
|
1070
|
-
h &&
|
|
1070
|
+
h && ss(t, h, n, r, _e(h), [e.key].concat(o), [Jf(i)].concat(s), a, l, u, c + 1, d);
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
function am(t, e) {
|
|
@@ -1094,22 +1094,22 @@ function lm() {
|
|
|
1094
1094
|
Fr = /* @__PURE__ */ new Map();
|
|
1095
1095
|
const n = /* @__PURE__ */ new Map();
|
|
1096
1096
|
e.forEach(({ value: r, prev: i, level: o, isFromPersist: s, isFromSync: a, whenOptimizedOnlyIf: l }, u) => {
|
|
1097
|
-
|
|
1097
|
+
ss(n, u, s, a, r, [], [], r, i, !1, o, l);
|
|
1098
1098
|
}), n.size && am(n, !1);
|
|
1099
1099
|
}
|
|
1100
1100
|
function Pt(t) {
|
|
1101
|
-
|
|
1101
|
+
Fs();
|
|
1102
1102
|
try {
|
|
1103
1103
|
t();
|
|
1104
1104
|
} finally {
|
|
1105
1105
|
ii();
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
|
|
1108
|
+
function Fs() {
|
|
1109
|
+
is++, Ii || (Ii = setTimeout(pg, 0));
|
|
1110
1110
|
}
|
|
1111
1111
|
function ii(t) {
|
|
1112
|
-
(--
|
|
1112
|
+
(--is <= 0 || t) && (ga ? Sa = !0 : (Ii && (clearTimeout(Ii), Ii = void 0), is = 0, ga = !0, lm(), ga = !1, Sa && (Sa = !1, ii(!0))));
|
|
1113
1113
|
}
|
|
1114
1114
|
function mg(t, e) {
|
|
1115
1115
|
let n = t;
|
|
@@ -1225,9 +1225,9 @@ function rd(t, e, n, r) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1229
|
-
function
|
|
1230
|
-
if (
|
|
1228
|
+
var jo = 0, id = [], Mr = { current: void 0 };
|
|
1229
|
+
function $o(t, e) {
|
|
1230
|
+
if (jo) {
|
|
1231
1231
|
const n = Mr.current;
|
|
1232
1232
|
if (n) {
|
|
1233
1233
|
n.nodes || (n.nodes = /* @__PURE__ */ new Map());
|
|
@@ -1238,9 +1238,9 @@ function jo(t, e) {
|
|
|
1238
1238
|
}
|
|
1239
1239
|
function hm(t, e, n, r, i, o) {
|
|
1240
1240
|
let s, a, l = e;
|
|
1241
|
-
id.push(Mr.current),
|
|
1241
|
+
id.push(Mr.current), jo++, Mr.current = {};
|
|
1242
1242
|
const u = t && Gt(t, n, r, i == null ? void 0 : i.fromComputed), c = Mr.current.nodes;
|
|
1243
|
-
return --
|
|
1243
|
+
return --jo < 0 && (jo = 0), Mr.current = id.pop(), r != null && r.cancel || (s = rd(c, l, !1, i == null ? void 0 : i.immediate), a = o ? () => (s == null || s(), s = rd(c, l), s) : void 0), { nodes: c, value: u, dispose: s, resubscribe: a };
|
|
1244
1244
|
}
|
|
1245
1245
|
function mt(t, e, n) {
|
|
1246
1246
|
let r, i;
|
|
@@ -1248,7 +1248,7 @@ function mt(t, e, n) {
|
|
|
1248
1248
|
let o = !1;
|
|
1249
1249
|
const s = { num: 0 }, a = function() {
|
|
1250
1250
|
if (o) return;
|
|
1251
|
-
s.onCleanup && (s.onCleanup(), s.onCleanup = void 0), o = !0,
|
|
1251
|
+
s.onCleanup && (s.onCleanup(), s.onCleanup = void 0), o = !0, Fs(), delete s.value, i == null || i();
|
|
1252
1252
|
const { dispose: l, value: u, nodes: c } = hm(t, a, void 0, s, n);
|
|
1253
1253
|
var d, h;
|
|
1254
1254
|
i = l, s.value = u, s.nodes = c, s.refresh = a, s.onCleanupReaction && (s.onCleanupReaction(), s.onCleanupReaction = void 0), ii(), o = !1, !r || !(n != null && n.fromComputed) && (!(s.num > 0) && (d = t) && ((h = d[Wr]) != null && h.isEvent) || s.previous === s.value && typeof s.value != "object") || r(s), s.previous = s.value, s.num++;
|
|
@@ -1295,12 +1295,12 @@ function fm(t, e, n) {
|
|
|
1295
1295
|
} else e = s;
|
|
1296
1296
|
});
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function Hs(t, e) {
|
|
1299
1299
|
return fm(t, e, !1);
|
|
1300
1300
|
}
|
|
1301
|
-
var Oa = /* @__PURE__ */ new Set(["copyWithin", "fill", "from", "pop", "push", "reverse", "shift", "sort", "splice", "unshift"]), od = /* @__PURE__ */ new Set(["every", "filter", "find", "findIndex", "flatMap", "forEach", "join", "map", "reduce", "some"]), Ag = /* @__PURE__ */ new Set(["filter", "find"]), yl = /* @__PURE__ */ new Map(), Il = /* @__PURE__ */ new Map([["get",
|
|
1301
|
+
var Oa = /* @__PURE__ */ new Set(["copyWithin", "fill", "from", "pop", "push", "reverse", "shift", "sort", "splice", "unshift"]), od = /* @__PURE__ */ new Set(["every", "filter", "find", "findIndex", "flatMap", "forEach", "join", "map", "reduce", "some"]), Ag = /* @__PURE__ */ new Set(["filter", "find"]), yl = /* @__PURE__ */ new Map(), Il = /* @__PURE__ */ new Map([["get", Us], ["set", bt], ["peek", mr], ["onChange", Pn], ["assign", function(t, e) {
|
|
1302
1302
|
const n = ft(t);
|
|
1303
|
-
if (
|
|
1303
|
+
if (Fs(), Qe(t.root._) && (t.root._ = {}), Ue(e)) {
|
|
1304
1304
|
const r = _e(t);
|
|
1305
1305
|
Ue(r) ? e.forEach((i, o) => r.set(o, i)) : bt(t, e);
|
|
1306
1306
|
} else {
|
|
@@ -1321,7 +1321,7 @@ function mm(t, e, n, ...r) {
|
|
|
1321
1321
|
if (n !== "push" || r.length !== 1) {
|
|
1322
1322
|
const o = e.slice(), s = e[n].apply(e, r);
|
|
1323
1323
|
if (t) {
|
|
1324
|
-
const a =
|
|
1324
|
+
const a = Ps(t), l = a ? t.key : "_";
|
|
1325
1325
|
(a ? _e(t.parent) : t.root)[l] = o, Xr((i = t.parent) != null ? i : t, l, e);
|
|
1326
1326
|
}
|
|
1327
1327
|
return s;
|
|
@@ -1443,7 +1443,7 @@ var Em = { get(t, e, n) {
|
|
|
1443
1443
|
if (Ue(s) || En(s)) {
|
|
1444
1444
|
const h = (function(f, p, m) {
|
|
1445
1445
|
const E = m == null ? void 0 : m[p];
|
|
1446
|
-
if (p === "size") return
|
|
1446
|
+
if (p === "size") return $o(f, !0), m[p];
|
|
1447
1447
|
if (Q(E)) return function(_, A, O) {
|
|
1448
1448
|
const S = arguments.length, v = m;
|
|
1449
1449
|
if (p === "get") {
|
|
@@ -1517,7 +1517,7 @@ var Em = { get(t, e, n) {
|
|
|
1517
1517
|
})(s) && c === void 0 && (Oa.has(e) || od.has(e)) && (s = [], Oa.has(e) && hn(t, s), c = s[e]), Q(c)) {
|
|
1518
1518
|
if (ke(s)) {
|
|
1519
1519
|
if (Oa.has(e)) return (...f) => mm(t, s, e, ...f);
|
|
1520
|
-
if (od.has(e)) return
|
|
1520
|
+
if (od.has(e)) return $o(t, !0), function(f, p) {
|
|
1521
1521
|
const m = e === "reduce", E = m ? (O, S, v, T) => f(O, ft(t, v + "", S), v, T) : (O, S, v) => f(ft(t, S + "", O), S, v);
|
|
1522
1522
|
if (m || !Ag.has(e)) return s[e](E, p);
|
|
1523
1523
|
const _ = e === "find", A = [];
|
|
@@ -1533,13 +1533,13 @@ var Em = { get(t, e, n) {
|
|
|
1533
1533
|
const h = (o = t.functions) == null ? void 0 : o.get(e);
|
|
1534
1534
|
return h ? ft(t, e, h) : c.bind(s);
|
|
1535
1535
|
}
|
|
1536
|
-
return Qe(c) && e === "length" && ke(s) ? (
|
|
1536
|
+
return Qe(c) && e === "length" && ke(s) ? ($o(t, !0), c) : ft(t, e);
|
|
1537
1537
|
}, getPrototypeOf(t) {
|
|
1538
1538
|
const e = _e(t);
|
|
1539
1539
|
return e !== null && typeof e == "object" ? Reflect.getPrototypeOf(e) : null;
|
|
1540
1540
|
}, ownKeys(t) {
|
|
1541
1541
|
wn(t);
|
|
1542
|
-
const e =
|
|
1542
|
+
const e = Us(t, !0);
|
|
1543
1543
|
if (Qe(e)) return [];
|
|
1544
1544
|
const n = e ? Reflect.ownKeys(e) : [];
|
|
1545
1545
|
if (ke(e) && n[n.length - 1] === "length" && n.splice(n.length - 1, 1), Q(t)) {
|
|
@@ -1573,7 +1573,7 @@ function Xr(t, e, n, r) {
|
|
|
1573
1573
|
const i = !t.parent && e === "_";
|
|
1574
1574
|
!t.parent || _e(t) || Q(n) || bt(t, { [e]: n });
|
|
1575
1575
|
const o = i ? t : Ht(t, e, n);
|
|
1576
|
-
if (im(o, n), Ce(n))
|
|
1576
|
+
if (im(o, n), Ce(n)) as(o, n);
|
|
1577
1577
|
else {
|
|
1578
1578
|
const { newValue: s, prevValue: a, parentValue: l } = hn(o, n), u = Qe(a) || a instanceof Date || Qe(s) || s instanceof Date;
|
|
1579
1579
|
if (!u) {
|
|
@@ -1587,14 +1587,14 @@ function Xr(t, e, n, r) {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
1589
|
function _m(t, e) {
|
|
1590
|
-
e === void 0 &&
|
|
1590
|
+
e === void 0 && Ps(t) && (e = t.key, t = t.parent);
|
|
1591
1591
|
const n = _e(t);
|
|
1592
|
-
ke(n) ? mm(t, n, "splice", e, 1) : Xr(t, e != null ? e : "_",
|
|
1592
|
+
ke(n) ? mm(t, n, "splice", e, 1) : Xr(t, e != null ? e : "_", xs, -1);
|
|
1593
1593
|
}
|
|
1594
1594
|
function Am(t, e, n, r, i, o, s, a, l) {
|
|
1595
|
-
r || (r = t),
|
|
1595
|
+
r || (r = t), Fs(), o === void 0 && (o = Qe(e));
|
|
1596
1596
|
let u, c, d = l || o, h = !1;
|
|
1597
|
-
(!o || n && !Qe(n)) && (d = d || Lc(r, e, n), ke(e) ? u = e : (Ue(e) || En(e)) && (c = e)), ke(i) ? u = i : (Ue(i) || En(i)) && (c = i), u ? h = (u == null ? void 0 : u.length) !== (n == null ? void 0 : n.length) : c && (h = (c == null ? void 0 : c.size) !== (n == null ? void 0 : n.size)), (o || !e ||
|
|
1597
|
+
(!o || n && !Qe(n)) && (d = d || Lc(r, e, n), ke(e) ? u = e : (Ue(e) || En(e)) && (c = e)), ke(i) ? u = i : (Ue(i) || En(i)) && (c = i), u ? h = (u == null ? void 0 : u.length) !== (n == null ? void 0 : n.length) : c && (h = (c == null ? void 0 : c.size) !== (n == null ? void 0 : n.size)), (o || !e || ns(e) && !ns(n) ? e !== n : d) && Bi(o && s ? t : r, e, n, (a != null ? a : n === void 0) ? -1 : d ? 0 : 1, h), ii();
|
|
1598
1598
|
}
|
|
1599
1599
|
function Kr(t, e, n) {
|
|
1600
1600
|
const r = t.numGets = (t.numGets || 0) + 1;
|
|
@@ -1613,20 +1613,20 @@ function qr(t, e, n) {
|
|
|
1613
1613
|
const r = () => n;
|
|
1614
1614
|
Qu(t, e, r);
|
|
1615
1615
|
const i = Ht(t, e, r), o = mr(ao(n));
|
|
1616
|
-
return
|
|
1616
|
+
return as(i, n), hn(i, o), _e(i);
|
|
1617
1617
|
}
|
|
1618
1618
|
if (typeof n == "function") return Qu(t, e, n), e;
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1621
|
-
return
|
|
1620
|
+
function Us(t, e) {
|
|
1621
|
+
return $o(t, e ? Yt(e) ? e.shallow : e : void 0), mr(t);
|
|
1622
1622
|
}
|
|
1623
1623
|
function mr(t) {
|
|
1624
1624
|
return wn(t, !0);
|
|
1625
1625
|
}
|
|
1626
|
-
var
|
|
1626
|
+
var Ro = !1;
|
|
1627
1627
|
function wn(t, e) {
|
|
1628
1628
|
var n;
|
|
1629
|
-
if (
|
|
1629
|
+
if (Ro = !0, e && ((n = t.dirtyChildren) == null ? void 0 : n.size)) {
|
|
1630
1630
|
const i = Array.from(t.dirtyChildren);
|
|
1631
1631
|
t.dirtyChildren.clear(), i.forEach((o) => o.dirtyFn && wn(o));
|
|
1632
1632
|
}
|
|
@@ -1634,7 +1634,7 @@ function wn(t, e) {
|
|
|
1634
1634
|
const i = t.dirtyFn;
|
|
1635
1635
|
t.dirtyFn = void 0, be.dirtyNodes.delete(t), i();
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
Ro = !1;
|
|
1638
1638
|
let r = _e(t);
|
|
1639
1639
|
return t.root.isLoadingLocal || t.isPlain || (r = (function(i, o, s) {
|
|
1640
1640
|
const a = o, l = i.lazy;
|
|
@@ -1656,8 +1656,8 @@ function wn(t, e) {
|
|
|
1656
1656
|
const v = mt(() => {
|
|
1657
1657
|
var T, R, I, g;
|
|
1658
1658
|
if (m) m = !1, Q(_e(c)) && hn(c, void 0);
|
|
1659
|
-
else if (!
|
|
1660
|
-
if (!
|
|
1659
|
+
else if (!Ro && A && (function(b, L) {
|
|
1660
|
+
if (!Ro && !(function(P) {
|
|
1661
1661
|
var B, V;
|
|
1662
1662
|
let $ = P, z = P.numListenersRecursive > 0;
|
|
1663
1663
|
for (; $ && !z; ) ((B = $.listeners) != null && B.size || (V = $.listenersImmediate) != null && V.size) && (z = !0), $ = $.parent;
|
|
@@ -1671,7 +1671,7 @@ function wn(t, e) {
|
|
|
1671
1671
|
})(c, A)) return void (p = !0);
|
|
1672
1672
|
let D = E(), C = !1;
|
|
1673
1673
|
const N = Ce(D);
|
|
1674
|
-
(N || c.linkedToNode) && (C = N, D =
|
|
1674
|
+
(N || c.linkedToNode) && (C = N, D = as(c, D)), Q(D) && D.length === 0 && (D = D());
|
|
1675
1675
|
const k = N || D == null ? void 0 : D[Hi];
|
|
1676
1676
|
if (k && (c.activationState = k, D = void 0), p = !1, f = Vt(D), c.activated) {
|
|
1677
1677
|
if (c.activationState) {
|
|
@@ -1685,7 +1685,7 @@ function wn(t, e) {
|
|
|
1685
1685
|
const L = b(c, D);
|
|
1686
1686
|
h = L.update;
|
|
1687
1687
|
let x = L.value;
|
|
1688
|
-
!C && Ce(x) && (x =
|
|
1688
|
+
!C && Ce(x) && (x = as(c, x)), D = x != null ? x : k == null ? void 0 : k.initial;
|
|
1689
1689
|
}
|
|
1690
1690
|
return p && (_ = D), f = f || Vt(D), D;
|
|
1691
1691
|
}, (T) => {
|
|
@@ -1761,7 +1761,7 @@ function gg(t, e) {
|
|
|
1761
1761
|
t.isComputing || (t.isComputing = !0, bt(t, n), t.isComputing = !1);
|
|
1762
1762
|
}, value: e };
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function as(t, e) {
|
|
1765
1765
|
var n;
|
|
1766
1766
|
const r = e ? ao(e) : void 0;
|
|
1767
1767
|
return r !== t && (r == null ? void 0 : r.linkedToNode) !== t && (t.linkedToNode = r, (n = t.linkedToNodeDispose) == null || n.call(t), r && (r.linkedFromNodes || (r.linkedFromNodes = /* @__PURE__ */ new Set()), r.linkedFromNodes.add(t), t.linkedToNodeDispose = Pn(r, () => {
|
|
@@ -1795,7 +1795,7 @@ function qn(t) {
|
|
|
1795
1795
|
this[n] = this[n].bind(this);
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function yo(t, e) {
|
|
1799
1799
|
qn.prototype[t] = function(...n) {
|
|
1800
1800
|
return e.call(this, this._node, ...n);
|
|
1801
1801
|
};
|
|
@@ -1803,7 +1803,7 @@ function Ro(t, e) {
|
|
|
1803
1803
|
function ae(t) {
|
|
1804
1804
|
return kc(t, !1, Kr, ft, qn);
|
|
1805
1805
|
}
|
|
1806
|
-
|
|
1806
|
+
yo("peek", (t) => (Cl(), mr(t))), yo("get", (t, e) => (Cl(), Us(t, e))), yo("set", bt), yo("onChange", Pn), Object.defineProperty(qn.prototype, Wr, { configurable: !0, get() {
|
|
1807
1807
|
return this._node;
|
|
1808
1808
|
} }), Object.defineProperty(qn.prototype, Xf, { configurable: !0, value(t) {
|
|
1809
1809
|
return pm(this._node, t);
|
|
@@ -1813,7 +1813,7 @@ Ro("peek", (t) => (Cl(), mr(t))), Ro("get", (t, e) => (Cl(), Hs(t, e))), Ro("set
|
|
|
1813
1813
|
}, qn.prototype.delete = function() {
|
|
1814
1814
|
return this.set(void 0), this;
|
|
1815
1815
|
};
|
|
1816
|
-
var
|
|
1816
|
+
var Bs = { createPreviousHandler: wc, clone: em, deactivateNode: gm, deepMerge: rs, ensureNodeValue: Nc, findIDKey: nm, get: Us, getChildNode: Ht, getKeys: Dl, getNode: ao, getNodeValue: _e, getPathType: Jf, getProxy: ft, getValueAtPath: function(t, e) {
|
|
1817
1817
|
return e.reduce(dg, t);
|
|
1818
1818
|
}, globalState: be, initializePathType: bc, ObservablePrimitiveClass: qn, observableProperties: yl, observableFns: Il, optimized: Cc, peek: mr, reactivateNode: Sm, registerMiddleware: function(t, e, n) {
|
|
1819
1819
|
let r = kr.get(t);
|
|
@@ -1825,13 +1825,13 @@ var Us = { createPreviousHandler: wc, clone: em, deactivateNode: gm, deepMerge:
|
|
|
1825
1825
|
const s = o.get(e);
|
|
1826
1826
|
s && (s.delete(n), s.size === 0 && (o.delete(e), o.size === 0 && kr.delete(t)));
|
|
1827
1827
|
};
|
|
1828
|
-
}, safeParse: Qf, safeStringify: Zf, set: bt, setAtPath: om, setNodeValue: hn, symbolLinked: Hi, symbolDelete:
|
|
1829
|
-
class
|
|
1828
|
+
}, safeParse: Qf, safeStringify: Zf, set: bt, setAtPath: om, setNodeValue: hn, symbolLinked: Hi, symbolDelete: xs, tracking: Mr }, { globalState: ld, observableProperties: Sg, observableFns: Og, ObservablePrimitiveClass: cd } = Bs;
|
|
1829
|
+
class js {
|
|
1830
1830
|
constructor(e = {}) {
|
|
1831
1831
|
this._handlers = /* @__PURE__ */ new Set(), this._meta = e;
|
|
1832
1832
|
}
|
|
1833
1833
|
meta(e) {
|
|
1834
|
-
return new
|
|
1834
|
+
return new js(e);
|
|
1835
1835
|
}
|
|
1836
1836
|
_emit(e, n) {
|
|
1837
1837
|
for (const r of this._handlers) r({ level: e, data: n, timestamp: Date.now(), meta: this._meta });
|
|
@@ -1855,7 +1855,7 @@ class Bs {
|
|
|
1855
1855
|
return this._handlers.add(e), () => this._handlers.delete(e);
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
|
-
const Nl = new
|
|
1858
|
+
const Nl = new js(), Ie = new js();
|
|
1859
1859
|
function ud(t, e, n) {
|
|
1860
1860
|
return t.clearRect(0, 0, 100, 100), t.fillStyle = n, t.fillText(e, 0, 0), t.getImageData(0, 0, 1, 1).data.join(",");
|
|
1861
1861
|
}
|
|
@@ -1910,8 +1910,8 @@ class vm extends Nt {
|
|
|
1910
1910
|
return fe(vg.Provider, { value: { didCatch: o, error: s, resetErrorBoundary: this.resetErrorBoundary } }, a);
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
|
-
var
|
|
1914
|
-
function
|
|
1913
|
+
var Io = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1914
|
+
function $s(t) {
|
|
1915
1915
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1916
1916
|
}
|
|
1917
1917
|
function Mc(t) {
|
|
@@ -1963,7 +1963,7 @@ var pd, fd, Dg = (fd || (fd = 1, hd.exports = (function() {
|
|
|
1963
1963
|
return Da.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : a, Da;
|
|
1964
1964
|
})()), hd.exports), md = !1, bl = { inObserver: !1 }, Ed = void 0, Tg = () => Ed || (Ed = ri(null));
|
|
1965
1965
|
function _d(t) {
|
|
1966
|
-
const e =
|
|
1966
|
+
const e = Hs(t);
|
|
1967
1967
|
if (!F.use) throw e;
|
|
1968
1968
|
F.use(e);
|
|
1969
1969
|
}
|
|
@@ -1980,7 +1980,7 @@ function J(t, e) {
|
|
|
1980
1980
|
}, A = ({ value: O }) => {
|
|
1981
1981
|
if (u != null && u.peek()) {
|
|
1982
1982
|
const S = m;
|
|
1983
|
-
m = O, S === void 0 &&
|
|
1983
|
+
m = O, S === void 0 && Hs(() => !u.get(), () => {
|
|
1984
1984
|
const v = m;
|
|
1985
1985
|
m = void 0, A({ value: v });
|
|
1986
1986
|
});
|
|
@@ -2041,7 +2041,7 @@ function Tm(t, e, n, r, i) {
|
|
|
2041
2041
|
let f;
|
|
2042
2042
|
return a ? (f = _t(h), f.__legend_proxied = !0) : f = h, e || l ? mn(f) : f;
|
|
2043
2043
|
}
|
|
2044
|
-
var { findIDKey: Rg, getNode: yg, optimized: Ig } =
|
|
2044
|
+
var { findIDKey: Rg, getNode: yg, optimized: Ig } = Bs, gd = /* @__PURE__ */ new Map();
|
|
2045
2045
|
function ji({ each: t, optimized: e, item: n, itemProps: r, sortValues: i, children: o }) {
|
|
2046
2046
|
var s;
|
|
2047
2047
|
if (!t) return null;
|
|
@@ -2089,7 +2089,7 @@ new Proxy({}, { get(t, e) {
|
|
|
2089
2089
|
if (!t[e]) {
|
|
2090
2090
|
const n = Sd.get(e) || e, r = _t((i, o) => {
|
|
2091
2091
|
const s = { ...i };
|
|
2092
|
-
return !o || !Q(o) &&
|
|
2092
|
+
return !o || !Q(o) && ns(o) || (s.ref = o), fe(n, s);
|
|
2093
2093
|
});
|
|
2094
2094
|
t[e] = (function(i, o, s) {
|
|
2095
2095
|
return Tm(i, !1, !0, o, s);
|
|
@@ -2135,7 +2135,7 @@ var Ng = Rm;
|
|
|
2135
2135
|
function ym(t) {
|
|
2136
2136
|
return Rm(() => t);
|
|
2137
2137
|
}
|
|
2138
|
-
var bg = ym, { deactivateNode: wg } =
|
|
2138
|
+
var bg = ym, { deactivateNode: wg } = Bs;
|
|
2139
2139
|
function lt(t, e) {
|
|
2140
2140
|
var n;
|
|
2141
2141
|
const r = X({});
|
|
@@ -2280,7 +2280,7 @@ class Ug extends Bm {
|
|
|
2280
2280
|
const h = [];
|
|
2281
2281
|
for (const _ of l) {
|
|
2282
2282
|
const A = new Date(_.createdAt), O = new Date(A).setHours(0, 0, 0, 0), S = c && O !== c, v = A.getTime() > i, T = !(!d || v || u != null && u.id.startsWith("ephemeral"));
|
|
2283
|
-
(T || S) && h.push(new
|
|
2283
|
+
(T || S) && h.push(new Vo({ id: "border-before-" + _.id, isDayMarker: !!S, isReadMarker: !!T, timestamp: S ? c : void 0 })), h.push(_), d = v, c = O, u = _;
|
|
2284
2284
|
}
|
|
2285
2285
|
const f = this.extUserId$.peek();
|
|
2286
2286
|
return (function(_, A) {
|
|
@@ -2295,11 +2295,11 @@ class Ug extends Bm {
|
|
|
2295
2295
|
return S.length !== 0 && O.push(S), O;
|
|
2296
2296
|
})(h, (_) => {
|
|
2297
2297
|
var A;
|
|
2298
|
-
return _ instanceof
|
|
2298
|
+
return _ instanceof Vo ? _.id : (A = _.sender) == null ? void 0 : A.id;
|
|
2299
2299
|
}).map((_) => {
|
|
2300
2300
|
var O;
|
|
2301
2301
|
const A = _[_.length - 1];
|
|
2302
|
-
return { items: _, id: A.id, type: A instanceof
|
|
2302
|
+
return { items: _, id: A.id, type: A instanceof Vo ? "divider" : A.sender ? ((O = A.sender) == null ? void 0 : O.id) === f ? "own" : "other" : "system" };
|
|
2303
2303
|
});
|
|
2304
2304
|
});
|
|
2305
2305
|
}
|
|
@@ -2360,7 +2360,7 @@ class Ug extends Bm {
|
|
|
2360
2360
|
function gn(t, e) {
|
|
2361
2361
|
return t === "all" || t === "own" && e || t === "other" && !e;
|
|
2362
2362
|
}
|
|
2363
|
-
class
|
|
2363
|
+
class Vo {
|
|
2364
2364
|
constructor({ id: e, isDayMarker: n, isReadMarker: r, timestamp: i }) {
|
|
2365
2365
|
this.id = e, this.isDayMarker = n, this.isReadMarker = r, this.timestamp = n ? i : void 0;
|
|
2366
2366
|
}
|
|
@@ -2601,12 +2601,12 @@ class j {
|
|
|
2601
2601
|
return $m(this, e, n, r);
|
|
2602
2602
|
}
|
|
2603
2603
|
findIndex(e) {
|
|
2604
|
-
if (e == 0) return
|
|
2605
|
-
if (e == this.size) return
|
|
2604
|
+
if (e == 0) return Co(0, e);
|
|
2605
|
+
if (e == this.size) return Co(this.content.length, e);
|
|
2606
2606
|
if (e > this.size || e < 0) throw new RangeError(`Position ${e} outside of fragment (${this})`);
|
|
2607
2607
|
for (let n = 0, r = 0; ; n++) {
|
|
2608
2608
|
let i = r + this.child(n).nodeSize;
|
|
2609
|
-
if (i >= e) return i == e ?
|
|
2609
|
+
if (i >= e) return i == e ? Co(n + 1, i) : Co(n, r);
|
|
2610
2610
|
r = i;
|
|
2611
2611
|
}
|
|
2612
2612
|
}
|
|
@@ -2643,19 +2643,19 @@ class j {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
j.empty = new j([], 0);
|
|
2645
2645
|
const Ta = { index: 0, offset: 0 };
|
|
2646
|
-
function
|
|
2646
|
+
function Co(t, e) {
|
|
2647
2647
|
return Ta.index = t, Ta.offset = e, Ta;
|
|
2648
2648
|
}
|
|
2649
|
-
function
|
|
2649
|
+
function ls(t, e) {
|
|
2650
2650
|
if (t === e) return !0;
|
|
2651
2651
|
if (!t || typeof t != "object" || !e || typeof e != "object") return !1;
|
|
2652
2652
|
let n = Array.isArray(t);
|
|
2653
2653
|
if (Array.isArray(e) != n) return !1;
|
|
2654
2654
|
if (n) {
|
|
2655
2655
|
if (t.length != e.length) return !1;
|
|
2656
|
-
for (let r = 0; r < t.length; r++) if (!
|
|
2656
|
+
for (let r = 0; r < t.length; r++) if (!ls(t[r], e[r])) return !1;
|
|
2657
2657
|
} else {
|
|
2658
|
-
for (let r in t) if (!(r in e) || !
|
|
2658
|
+
for (let r in t) if (!(r in e) || !ls(t[r], e[r])) return !1;
|
|
2659
2659
|
for (let r in e) if (!(r in t)) return !1;
|
|
2660
2660
|
}
|
|
2661
2661
|
return !0;
|
|
@@ -2686,7 +2686,7 @@ class pe {
|
|
|
2686
2686
|
return !1;
|
|
2687
2687
|
}
|
|
2688
2688
|
eq(e) {
|
|
2689
|
-
return this == e || this.type == e.type &&
|
|
2689
|
+
return this == e || this.type == e.type && ls(this.attrs, e.attrs);
|
|
2690
2690
|
}
|
|
2691
2691
|
toJSON() {
|
|
2692
2692
|
let e = { type: this.type.name };
|
|
@@ -2717,7 +2717,7 @@ class pe {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
}
|
|
2719
2719
|
pe.none = [];
|
|
2720
|
-
class
|
|
2720
|
+
class cs extends Error {
|
|
2721
2721
|
}
|
|
2722
2722
|
class W {
|
|
2723
2723
|
constructor(e, n, r) {
|
|
@@ -2773,8 +2773,8 @@ function zm(t, e, n, r) {
|
|
|
2773
2773
|
return a && t.replaceChild(i, s.copy(a));
|
|
2774
2774
|
}
|
|
2775
2775
|
function Bg(t, e, n) {
|
|
2776
|
-
if (n.openStart > t.depth) throw new
|
|
2777
|
-
if (t.depth - n.openStart != e.depth - n.openEnd) throw new
|
|
2776
|
+
if (n.openStart > t.depth) throw new cs("Inserted content deeper than insertion position");
|
|
2777
|
+
if (t.depth - n.openStart != e.depth - n.openEnd) throw new cs("Inconsistent open depths");
|
|
2778
2778
|
return Ym(t, e, n, 0);
|
|
2779
2779
|
}
|
|
2780
2780
|
function Ym(t, e, n, r) {
|
|
@@ -2797,10 +2797,10 @@ function Ym(t, e, n, r) {
|
|
|
2797
2797
|
return tr(s, a.cut(0, t.parentOffset).append(n.content).append(a.cut(e.parentOffset)));
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
|
-
return tr(o,
|
|
2800
|
+
return tr(o, us(t, e, r));
|
|
2801
2801
|
}
|
|
2802
2802
|
function Gm(t, e) {
|
|
2803
|
-
if (!e.type.compatibleContent(t.type)) throw new
|
|
2803
|
+
if (!e.type.compatibleContent(t.type)) throw new cs("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
2804
2804
|
}
|
|
2805
2805
|
function wl(t, e, n) {
|
|
2806
2806
|
let r = t.node(n);
|
|
@@ -2821,11 +2821,11 @@ function tr(t, e) {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
function Wm(t, e, n, r, i) {
|
|
2823
2823
|
let o = t.depth > i && wl(t, e, i + 1), s = r.depth > i && wl(n, r, i + 1), a = [];
|
|
2824
|
-
return Ci(null, t, i, a), o && s && e.index(i) == n.index(i) ? (Gm(o, s), er(tr(o, Wm(t, e, n, r, i + 1)), a)) : (o && er(tr(o,
|
|
2824
|
+
return Ci(null, t, i, a), o && s && e.index(i) == n.index(i) ? (Gm(o, s), er(tr(o, Wm(t, e, n, r, i + 1)), a)) : (o && er(tr(o, us(t, e, i + 1)), a), Ci(e, n, i, a), s && er(tr(s, us(n, r, i + 1)), a)), Ci(r, null, i, a), new j(a);
|
|
2825
2825
|
}
|
|
2826
|
-
function
|
|
2826
|
+
function us(t, e, n) {
|
|
2827
2827
|
let r = [];
|
|
2828
|
-
return Ci(null, t, n, r), t.depth > n && er(tr(wl(t, e, n + 1),
|
|
2828
|
+
return Ci(null, t, n, r), t.depth > n && er(tr(wl(t, e, n + 1), us(t, e, n + 1)), r), Ci(e, null, n, r), new j(r);
|
|
2829
2829
|
}
|
|
2830
2830
|
W.empty = new W(j.empty, 0, 0);
|
|
2831
2831
|
class Vi {
|
|
@@ -3021,7 +3021,7 @@ let nr = class kl {
|
|
|
3021
3021
|
return this.hasMarkup(e.type, e.attrs, e.marks);
|
|
3022
3022
|
}
|
|
3023
3023
|
hasMarkup(e, n, r) {
|
|
3024
|
-
return this.type == e &&
|
|
3024
|
+
return this.type == e && ls(this.attrs, n || e.defaultAttrs || zg) && pe.sameSet(this.marks, r || pe.none);
|
|
3025
3025
|
}
|
|
3026
3026
|
copy(e = null) {
|
|
3027
3027
|
return e == this.content ? this : new kl(this.type, this.attrs, e, this.marks);
|
|
@@ -3148,7 +3148,7 @@ let nr = class kl {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
};
|
|
3150
3150
|
nr.prototype.text = void 0;
|
|
3151
|
-
class
|
|
3151
|
+
class ds extends nr {
|
|
3152
3152
|
constructor(e, n, r, i) {
|
|
3153
3153
|
if (super(e, n, null, i), !r) throw new RangeError("Empty text nodes are not allowed");
|
|
3154
3154
|
this.text = r;
|
|
@@ -3166,10 +3166,10 @@ class us extends nr {
|
|
|
3166
3166
|
return this.text.length;
|
|
3167
3167
|
}
|
|
3168
3168
|
mark(e) {
|
|
3169
|
-
return e == this.marks ? this : new
|
|
3169
|
+
return e == this.marks ? this : new ds(this.type, this.attrs, this.text, e);
|
|
3170
3170
|
}
|
|
3171
3171
|
withText(e) {
|
|
3172
|
-
return e == this.text ? this : new
|
|
3172
|
+
return e == this.text ? this : new ds(this.type, this.attrs, e, this.marks);
|
|
3173
3173
|
}
|
|
3174
3174
|
cut(e = 0, n = this.text.length) {
|
|
3175
3175
|
return e == 0 && n == this.text.length ? this : this.withText(this.text.slice(e, n));
|
|
@@ -3571,7 +3571,7 @@ class Kg {
|
|
|
3571
3571
|
return !this.hasDefault;
|
|
3572
3572
|
}
|
|
3573
3573
|
}
|
|
3574
|
-
class
|
|
3574
|
+
class Vs {
|
|
3575
3575
|
constructor(e, n, r, i) {
|
|
3576
3576
|
this.name = e, this.rank = n, this.schema = r, this.spec = i, this.attrs = eE(e, i.attrs), this.excluded = null;
|
|
3577
3577
|
let o = Jm(this.attrs);
|
|
@@ -3582,7 +3582,7 @@ class $s {
|
|
|
3582
3582
|
}
|
|
3583
3583
|
static compile(e, n) {
|
|
3584
3584
|
let r = /* @__PURE__ */ Object.create(null), i = 0;
|
|
3585
|
-
return e.forEach((o, s) => r[o] = new
|
|
3585
|
+
return e.forEach((o, s) => r[o] = new Vs(o, i++, n, s)), r;
|
|
3586
3586
|
}
|
|
3587
3587
|
removeFromSet(e) {
|
|
3588
3588
|
for (var n = 0; n < e.length; n++) e[n].type == this && (e = e.slice(0, n).concat(e.slice(n + 1)), n--);
|
|
@@ -3997,7 +3997,7 @@ class si {
|
|
|
3997
3997
|
}), r;
|
|
3998
3998
|
}
|
|
3999
3999
|
serializeNodeInner(e, n) {
|
|
4000
|
-
let { dom: r, contentDOM: i } =
|
|
4000
|
+
let { dom: r, contentDOM: i } = zo(ya(n), this.nodes[e.type.name](e), null, e.attrs);
|
|
4001
4001
|
if (i) {
|
|
4002
4002
|
if (e.isLeaf) throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
4003
4003
|
this.serializeFragment(e.content, n, i);
|
|
@@ -4014,10 +4014,10 @@ class si {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
serializeMark(e, n, r = {}) {
|
|
4016
4016
|
let i = this.marks[e.type.name];
|
|
4017
|
-
return i &&
|
|
4017
|
+
return i && zo(ya(r), i(e, n), null, e.attrs);
|
|
4018
4018
|
}
|
|
4019
4019
|
static renderSpec(e, n, r = null, i) {
|
|
4020
|
-
return
|
|
4020
|
+
return zo(e, n, r, i);
|
|
4021
4021
|
}
|
|
4022
4022
|
static fromSchema(e) {
|
|
4023
4023
|
return e.cached.domSerializer || (e.cached.domSerializer = new si(this.nodesFromSchema(e), this.marksFromSchema(e)));
|
|
@@ -4054,7 +4054,7 @@ function Zg(t) {
|
|
|
4054
4054
|
return i(n), r;
|
|
4055
4055
|
})(t)), e;
|
|
4056
4056
|
}
|
|
4057
|
-
function
|
|
4057
|
+
function zo(t, e, n, r) {
|
|
4058
4058
|
if (typeof e == "string") return { dom: t.createTextNode(e) };
|
|
4059
4059
|
if (e.nodeType != null) return { dom: e };
|
|
4060
4060
|
if (e.dom && e.dom.nodeType != null) return e;
|
|
@@ -4078,7 +4078,7 @@ function Vo(t, e, n, r) {
|
|
|
4078
4078
|
return { dom: l, contentDOM: l };
|
|
4079
4079
|
}
|
|
4080
4080
|
{
|
|
4081
|
-
let { dom: f, contentDOM: p } =
|
|
4081
|
+
let { dom: f, contentDOM: p } = zo(t, h, n, r);
|
|
4082
4082
|
if (l.appendChild(f), p) {
|
|
4083
4083
|
if (s) throw new RangeError("Multiple content holes");
|
|
4084
4084
|
s = p;
|
|
@@ -4267,7 +4267,7 @@ class we {
|
|
|
4267
4267
|
try {
|
|
4268
4268
|
return we.ok(e.replace(n, r, i));
|
|
4269
4269
|
} catch (o) {
|
|
4270
|
-
if (o instanceof
|
|
4270
|
+
if (o instanceof cs) return we.fail(o.message);
|
|
4271
4271
|
throw o;
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
@@ -4532,7 +4532,7 @@ function jd(t, e, n, r) {
|
|
|
4532
4532
|
}
|
|
4533
4533
|
});
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function Yo(t, e, n = 1, r) {
|
|
4536
4536
|
let i = t.resolve(e), o = i.depth - n, s = r && r[r.length - 1] || i.parent;
|
|
4537
4537
|
if (o < 0 || i.parent.type.spec.isolating || !i.parent.canReplace(i.index(), i.parent.childCount) || !s.type.validContent(i.parent.content.cutByIndex(i.index(), i.parent.childCount))) return !1;
|
|
4538
4538
|
for (let u = i.depth - 1, c = n - 2; u > o; u--, c--) {
|
|
@@ -5041,7 +5041,7 @@ class rS {
|
|
|
5041
5041
|
if (!c.isInline) return;
|
|
5042
5042
|
u++;
|
|
5043
5043
|
let h = null;
|
|
5044
|
-
if (a instanceof
|
|
5044
|
+
if (a instanceof Vs) {
|
|
5045
5045
|
let f, p = c.marks;
|
|
5046
5046
|
for (; f = a.isInSet(p); ) (h || (h = [])).push(f), p = f.removeFromSet(p);
|
|
5047
5047
|
} else a ? a.isInSet(c.marks) && (h = [a]) : h = c.marks;
|
|
@@ -5175,7 +5175,7 @@ class ce extends he {
|
|
|
5175
5175
|
return e instanceof ce && e.anchor == this.anchor && e.head == this.head;
|
|
5176
5176
|
}
|
|
5177
5177
|
getBookmark() {
|
|
5178
|
-
return new
|
|
5178
|
+
return new zs(this.anchor, this.head);
|
|
5179
5179
|
}
|
|
5180
5180
|
toJSON() {
|
|
5181
5181
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -5199,12 +5199,12 @@ class ce extends he {
|
|
|
5199
5199
|
}
|
|
5200
5200
|
}
|
|
5201
5201
|
he.jsonID("text", ce);
|
|
5202
|
-
class
|
|
5202
|
+
class zs {
|
|
5203
5203
|
constructor(e, n) {
|
|
5204
5204
|
this.anchor = e, this.head = n;
|
|
5205
5205
|
}
|
|
5206
5206
|
map(e) {
|
|
5207
|
-
return new
|
|
5207
|
+
return new zs(e.map(this.anchor), e.map(this.head));
|
|
5208
5208
|
}
|
|
5209
5209
|
resolve(e) {
|
|
5210
5210
|
return ce.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -5249,7 +5249,7 @@ class Bc {
|
|
|
5249
5249
|
}
|
|
5250
5250
|
map(e) {
|
|
5251
5251
|
let { deleted: n, pos: r } = e.mapResult(this.anchor);
|
|
5252
|
-
return n ? new
|
|
5252
|
+
return n ? new zs(r, r) : new Bc(r);
|
|
5253
5253
|
}
|
|
5254
5254
|
resolve(e) {
|
|
5255
5255
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -5502,7 +5502,7 @@ function aE(t, e, n) {
|
|
|
5502
5502
|
}
|
|
5503
5503
|
return n;
|
|
5504
5504
|
}
|
|
5505
|
-
class
|
|
5505
|
+
class Ys {
|
|
5506
5506
|
constructor(e) {
|
|
5507
5507
|
this.spec = e, this.props = {}, e.props && aE(e.props, this, this.props), this.key = e.key ? e.key.key : lE("plugin");
|
|
5508
5508
|
}
|
|
@@ -5514,7 +5514,7 @@ const La = /* @__PURE__ */ Object.create(null);
|
|
|
5514
5514
|
function lE(t) {
|
|
5515
5515
|
return t in La ? t + "$" + ++La[t] : (La[t] = 0, t + "$");
|
|
5516
5516
|
}
|
|
5517
|
-
class
|
|
5517
|
+
class Gs {
|
|
5518
5518
|
constructor(e = "key") {
|
|
5519
5519
|
this.key = lE(e);
|
|
5520
5520
|
}
|
|
@@ -5565,7 +5565,7 @@ function Wi(t) {
|
|
|
5565
5565
|
for (let n = t; n && !(e = n.pmViewDesc); n = n.parentNode) ;
|
|
5566
5566
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
5567
5567
|
}
|
|
5568
|
-
const
|
|
5568
|
+
const Ws = function(t) {
|
|
5569
5569
|
return t.focusNode && lr(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
5570
5570
|
};
|
|
5571
5571
|
function Xn(t, e) {
|
|
@@ -6231,7 +6231,7 @@ class Ln extends uo {
|
|
|
6231
6231
|
else c || ({ dom: c, contentDOM: d } = si.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
6232
6232
|
d || n.isText || c.nodeName == "BR" || (c.hasAttribute("contenteditable") || (c.contentEditable = "false"), n.type.spec.draggable && (c.draggable = !0));
|
|
6233
6233
|
let h = c;
|
|
6234
|
-
return c = gE(c, r, n), u ? a = new _S(e, n, r, i, c, d || null, h, u, o, s + 1) : n.isText ? new
|
|
6234
|
+
return c = gE(c, r, n), u ? a = new _S(e, n, r, i, c, d || null, h, u, o, s + 1) : n.isText ? new Xs(e, n, r, i, c, h, o) : new Ln(e, n, r, i, c, d || null, h, o, s + 1);
|
|
6235
6235
|
}
|
|
6236
6236
|
parseRule() {
|
|
6237
6237
|
if (this.node.type.spec.reparseInView) return null;
|
|
@@ -6250,7 +6250,7 @@ class Ln extends uo {
|
|
|
6250
6250
|
return e;
|
|
6251
6251
|
}
|
|
6252
6252
|
matchesNode(e, n, r) {
|
|
6253
|
-
return this.dirty == 0 && e.eq(this.node) &&
|
|
6253
|
+
return this.dirty == 0 && e.eq(this.node) && hs(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
6254
6254
|
}
|
|
6255
6255
|
get size() {
|
|
6256
6256
|
return this.node.nodeSize;
|
|
@@ -6356,7 +6356,7 @@ class Ln extends uo {
|
|
|
6356
6356
|
this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = 0;
|
|
6357
6357
|
}
|
|
6358
6358
|
updateOuterDeco(e) {
|
|
6359
|
-
if (
|
|
6359
|
+
if (hs(e, this.outerDeco)) return;
|
|
6360
6360
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
6361
6361
|
this.dom = AE(this.dom, this.nodeDOM, Ul(this.outerDeco, this.node, n), Ul(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
6362
6362
|
}
|
|
@@ -6375,7 +6375,7 @@ function ih(t, e, n, r, i) {
|
|
|
6375
6375
|
let o = new Ln(void 0, t, e, n, r, r, r, i, 0);
|
|
6376
6376
|
return o.contentDOM && o.updateChildren(i, 0), o;
|
|
6377
6377
|
}
|
|
6378
|
-
class
|
|
6378
|
+
class Xs extends Ln {
|
|
6379
6379
|
constructor(e, n, r, i, o, s, a) {
|
|
6380
6380
|
super(e, n, r, i, o, null, s, a, 0);
|
|
6381
6381
|
}
|
|
@@ -6403,7 +6403,7 @@ class Ws extends Ln {
|
|
|
6403
6403
|
}
|
|
6404
6404
|
slice(e, n, r) {
|
|
6405
6405
|
let i = this.node.cut(e, n), o = document.createTextNode(i.text);
|
|
6406
|
-
return new
|
|
6406
|
+
return new Xs(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
6407
6407
|
}
|
|
6408
6408
|
markDirty(e, n) {
|
|
6409
6409
|
super.markDirty(e, n), this.dom == this.nodeDOM || e != 0 && n != this.nodeDOM.nodeValue.length || (this.dirty = 3);
|
|
@@ -6529,7 +6529,7 @@ function AS(t, e, n) {
|
|
|
6529
6529
|
function gE(t, e, n) {
|
|
6530
6530
|
return AE(t, t, Jn, Ul(e, n, t.nodeType != 1));
|
|
6531
6531
|
}
|
|
6532
|
-
function
|
|
6532
|
+
function hs(t, e) {
|
|
6533
6533
|
if (t.length != e.length) return !1;
|
|
6534
6534
|
for (let n = 0; n < t.length; n++) if (!t[n].type.eq(e[n].type)) return !1;
|
|
6535
6535
|
return !0;
|
|
@@ -6632,7 +6632,7 @@ class gS {
|
|
|
6632
6632
|
if (l instanceof Ln) {
|
|
6633
6633
|
let u = this.preMatch.matched.get(l);
|
|
6634
6634
|
if (u != null && u != o) return !1;
|
|
6635
|
-
let c, d = l.dom, h = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != 3 &&
|
|
6635
|
+
let c, d = l.dom, h = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != 3 && hs(n, l.outerDeco));
|
|
6636
6636
|
if (!h && l.update(e, n, r, i)) return this.destroyBetween(this.index, a), l.dom != d && (this.changed = !0), this.index++, !0;
|
|
6637
6637
|
if (!h && (c = this.recreateWrapper(l, e, n, r, i, s))) return this.destroyBetween(this.index, a), this.top.children[this.index] = c, c.contentDOM && (c.dirty = 2, c.updateChildren(i, s + 1), c.dirty = 0), this.changed = !0, this.index++, !0;
|
|
6638
6638
|
break;
|
|
@@ -6641,7 +6641,7 @@ class gS {
|
|
|
6641
6641
|
return !1;
|
|
6642
6642
|
}
|
|
6643
6643
|
recreateWrapper(e, n, r, i, o, s) {
|
|
6644
|
-
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !
|
|
6644
|
+
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !hs(r, e.outerDeco) || !i.eq(e.innerDeco)) return null;
|
|
6645
6645
|
let a = Ln.create(this.top, n, r, i, o, s);
|
|
6646
6646
|
if (a.contentDOM) {
|
|
6647
6647
|
a.children = e.children, e.children = [];
|
|
@@ -6663,7 +6663,7 @@ class gS {
|
|
|
6663
6663
|
addTextblockHacks() {
|
|
6664
6664
|
let e = this.top.children[this.index - 1], n = this.top;
|
|
6665
6665
|
for (; e instanceof rr; ) n = e, e = n.children[n.children.length - 1];
|
|
6666
|
-
(!e || !(e instanceof
|
|
6666
|
+
(!e || !(e instanceof Xs) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((We || He) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
6667
6667
|
}
|
|
6668
6668
|
addHackNode(e, n) {
|
|
6669
6669
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e)) this.index++;
|
|
@@ -6695,7 +6695,7 @@ function $c(t, e = null) {
|
|
|
6695
6695
|
let i = t.docView.nearestDesc(n.focusNode), o = i && i.size == 0, s = t.docView.posFromDOM(n.focusNode, n.focusOffset, 1);
|
|
6696
6696
|
if (s < 0) return null;
|
|
6697
6697
|
let a, l, u = r.resolve(s);
|
|
6698
|
-
if (
|
|
6698
|
+
if (Ws(n)) {
|
|
6699
6699
|
for (a = s; i && !i.node; ) i = i.parent;
|
|
6700
6700
|
let d = i.node;
|
|
6701
6701
|
if (i && d.isAtom && Z.isSelectable(d) && i.parent && (!d.isInline || !(function(h, f, p) {
|
|
@@ -6829,7 +6829,7 @@ function hh(t, e, n) {
|
|
|
6829
6829
|
return !!(s.isAtom || (i = t.docView.descAt(a)) && !i.contentDOM) && (Z.isSelectable(s) ? vn(t, new Z(e < 0 ? t.state.doc.resolve(o.pos - s.nodeSize) : o)) : !!co && vn(t, new ce(t.state.doc.resolve(e < 0 ? a : a + s.nodeSize))));
|
|
6830
6830
|
}
|
|
6831
6831
|
}
|
|
6832
|
-
function
|
|
6832
|
+
function No(t) {
|
|
6833
6833
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
6834
6834
|
}
|
|
6835
6835
|
function fi(t, e) {
|
|
@@ -6841,7 +6841,7 @@ function yr(t, e) {
|
|
|
6841
6841
|
let r = n.domSelectionRange(), i = r.focusNode, o = r.focusOffset;
|
|
6842
6842
|
if (!i) return;
|
|
6843
6843
|
let s, a, l = !1;
|
|
6844
|
-
for (wt && i.nodeType == 1 && o <
|
|
6844
|
+
for (wt && i.nodeType == 1 && o < No(i) && fi(i.childNodes[o], -1) && (l = !0); ; ) if (o > 0) {
|
|
6845
6845
|
if (i.nodeType != 1) break;
|
|
6846
6846
|
{
|
|
6847
6847
|
let u = i.childNodes[o - 1];
|
|
@@ -6856,7 +6856,7 @@ function yr(t, e) {
|
|
|
6856
6856
|
{
|
|
6857
6857
|
let u = i.previousSibling;
|
|
6858
6858
|
for (; u && fi(u, -1); ) s = i.parentNode, a = Ge(u), u = u.previousSibling;
|
|
6859
|
-
if (u) i = u, o =
|
|
6859
|
+
if (u) i = u, o = No(i);
|
|
6860
6860
|
else {
|
|
6861
6861
|
if (i = i.parentNode, i == n.dom) break;
|
|
6862
6862
|
o = 0;
|
|
@@ -6867,7 +6867,7 @@ function yr(t, e) {
|
|
|
6867
6867
|
})(t) : (function(n) {
|
|
6868
6868
|
let r = n.domSelectionRange(), i = r.focusNode, o = r.focusOffset;
|
|
6869
6869
|
if (!i) return;
|
|
6870
|
-
let s, a, l =
|
|
6870
|
+
let s, a, l = No(i);
|
|
6871
6871
|
for (; ; ) if (o < l) {
|
|
6872
6872
|
if (i.nodeType != 1 || !fi(i.childNodes[o], 1)) break;
|
|
6873
6873
|
s = i, a = ++o;
|
|
@@ -6876,7 +6876,7 @@ function yr(t, e) {
|
|
|
6876
6876
|
{
|
|
6877
6877
|
let u = i.nextSibling;
|
|
6878
6878
|
for (; u && fi(u, 1); ) s = u.parentNode, a = Ge(u) + 1, u = u.nextSibling;
|
|
6879
|
-
if (u) i = u, o = 0, l =
|
|
6879
|
+
if (u) i = u, o = 0, l = No(i);
|
|
6880
6880
|
else {
|
|
6881
6881
|
if (i = i.parentNode, i == n.dom) break;
|
|
6882
6882
|
o = l = 0;
|
|
@@ -6913,7 +6913,7 @@ function xa(t, e, n) {
|
|
|
6913
6913
|
}
|
|
6914
6914
|
let r = t.domSelection();
|
|
6915
6915
|
if (!r) return;
|
|
6916
|
-
if (
|
|
6916
|
+
if (Ws(r)) {
|
|
6917
6917
|
let o = document.createRange();
|
|
6918
6918
|
o.setEnd(e, n), o.setStart(e, n), r.removeAllRanges(), r.addRange(o);
|
|
6919
6919
|
} else r.extend && r.extend(e, n);
|
|
@@ -7165,7 +7165,7 @@ function RS(t, e) {
|
|
|
7165
7165
|
for (let n = e.target; n != t.dom; n = n.parentNode) if (!n || n.nodeType == 11 || n.pmViewDesc && n.pmViewDesc.stopEvent(e)) return !1;
|
|
7166
7166
|
return !0;
|
|
7167
7167
|
}
|
|
7168
|
-
function
|
|
7168
|
+
function ps(t) {
|
|
7169
7169
|
return { left: t.clientX, top: t.clientY };
|
|
7170
7170
|
}
|
|
7171
7171
|
function Yc(t, e, n, r, i) {
|
|
@@ -7220,7 +7220,7 @@ function CS(t, e, n, r) {
|
|
|
7220
7220
|
})(t, n, r);
|
|
7221
7221
|
}
|
|
7222
7222
|
function zl(t) {
|
|
7223
|
-
return
|
|
7223
|
+
return fs(t);
|
|
7224
7224
|
}
|
|
7225
7225
|
ct.keydown = (t, e) => {
|
|
7226
7226
|
let n = e;
|
|
@@ -7252,7 +7252,7 @@ at.mousedown = (t, e) => {
|
|
|
7252
7252
|
let u = l.x - a.clientX, c = l.y - a.clientY;
|
|
7253
7253
|
return u * u + c * c < 100;
|
|
7254
7254
|
})(n, t.input.lastClick) && !n[CE] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o, button: n.button };
|
|
7255
|
-
let s = t.posAtCoords(
|
|
7255
|
+
let s = t.posAtCoords(ps(n));
|
|
7256
7256
|
s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new NS(t, s, n, !!r)) : (o == "doubleClick" ? IS : CS)(t, s.pos, s.inside, n) ? n.preventDefault() : Cn(t, "pointer"));
|
|
7257
7257
|
};
|
|
7258
7258
|
class NS {
|
|
@@ -7276,7 +7276,7 @@ class NS {
|
|
|
7276
7276
|
up(e) {
|
|
7277
7277
|
if (this.done(), !this.view.dom.contains(e.target)) return;
|
|
7278
7278
|
let n = this.pos;
|
|
7279
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(
|
|
7279
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(ps(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Cn(this.view, "pointer") : yS(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || We && this.mightDrag && !this.mightDrag.node.isAtom || He && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Br(this.view, he.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Cn(this.view, "pointer");
|
|
7280
7280
|
}
|
|
7281
7281
|
move(e) {
|
|
7282
7282
|
this.updateAllowDefault(e), Cn(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -7295,7 +7295,7 @@ at.touchstart = (t) => {
|
|
|
7295
7295
|
}, at.contextmenu = (t) => zl(t);
|
|
7296
7296
|
const bS = un ? 5e3 : -1;
|
|
7297
7297
|
function Oh(t, e) {
|
|
7298
|
-
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() =>
|
|
7298
|
+
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => fs(t), e));
|
|
7299
7299
|
}
|
|
7300
7300
|
function NE(t) {
|
|
7301
7301
|
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = (function() {
|
|
@@ -7340,7 +7340,7 @@ function wS(t) {
|
|
|
7340
7340
|
}
|
|
7341
7341
|
return n || r;
|
|
7342
7342
|
}
|
|
7343
|
-
function
|
|
7343
|
+
function fs(t, e = !1) {
|
|
7344
7344
|
if (!(un && t.domObserver.flushingSoon >= 0)) {
|
|
7345
7345
|
if (t.domObserver.forceFlush(), NE(t), e || t.docView && t.docView.dirty) {
|
|
7346
7346
|
let n = $c(t), r = t.state.selection;
|
|
@@ -7358,8 +7358,8 @@ ct.compositionstart = ct.compositionupdate = (t) => {
|
|
|
7358
7358
|
if (!i || i.nodeType != 1 || o >= i.childNodes.length) return !1;
|
|
7359
7359
|
let s = i.childNodes[o];
|
|
7360
7360
|
return s.nodeType == 1 && s.contentEditable == "false";
|
|
7361
|
-
})(t))) t.markCursor = t.state.storedMarks || n.marks(),
|
|
7362
|
-
else if (
|
|
7361
|
+
})(t))) t.markCursor = t.state.storedMarks || n.marks(), fs(t, !0), t.markCursor = null;
|
|
7362
|
+
else if (fs(t, !e.selection.empty), wt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
7363
7363
|
let r = t.domSelectionRange();
|
|
7364
7364
|
for (let i = r.focusNode, o = r.focusOffset; i && i.nodeType == 1 && o != 0; ) {
|
|
7365
7365
|
let s = o < 0 ? i.lastChild : i.childNodes[o - 1];
|
|
@@ -7434,7 +7434,7 @@ function vh(t, e) {
|
|
|
7434
7434
|
at.dragstart = (t, e) => {
|
|
7435
7435
|
let n = e, r = t.input.mouseDown;
|
|
7436
7436
|
if (r && r.done(), !n.dataTransfer) return;
|
|
7437
|
-
let i, o = t.state.selection, s = o.empty ? null : t.posAtCoords(
|
|
7437
|
+
let i, o = t.state.selection, s = o.empty ? null : t.posAtCoords(ps(n));
|
|
7438
7438
|
if (!(s && s.pos >= o.from && s.pos <= (o instanceof Z ? o.to - 1 : o.to))) {
|
|
7439
7439
|
if (r && r.mightDrag) i = Z.create(t.state.doc, r.mightDrag.pos);
|
|
7440
7440
|
else if (n.target && n.target.nodeType == 1) {
|
|
@@ -7453,7 +7453,7 @@ at.dragstart = (t, e) => {
|
|
|
7453
7453
|
try {
|
|
7454
7454
|
(function(n, r, i) {
|
|
7455
7455
|
if (!r.dataTransfer) return;
|
|
7456
|
-
let o = n.posAtCoords(
|
|
7456
|
+
let o = n.posAtCoords(ps(r));
|
|
7457
7457
|
if (!o) return;
|
|
7458
7458
|
let s = n.state.doc.resolve(o.pos), a = i && i.slice;
|
|
7459
7459
|
a ? n.someProp("transformPasted", (m) => {
|
|
@@ -7523,7 +7523,7 @@ function Xi(t, e) {
|
|
|
7523
7523
|
for (let n in e) if (!(n in t)) return !1;
|
|
7524
7524
|
return !0;
|
|
7525
7525
|
}
|
|
7526
|
-
class
|
|
7526
|
+
class ms {
|
|
7527
7527
|
constructor(e, n) {
|
|
7528
7528
|
this.toDOM = e, this.spec = n || ir, this.side = this.spec.side || 0;
|
|
7529
7529
|
}
|
|
@@ -7535,7 +7535,7 @@ class fs {
|
|
|
7535
7535
|
return !0;
|
|
7536
7536
|
}
|
|
7537
7537
|
eq(e) {
|
|
7538
|
-
return this == e || e instanceof
|
|
7538
|
+
return this == e || e instanceof ms && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Xi(this.spec, e.spec));
|
|
7539
7539
|
}
|
|
7540
7540
|
destroy(e) {
|
|
7541
7541
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -7595,7 +7595,7 @@ class Dt {
|
|
|
7595
7595
|
return this.type.map(e, this, n, r);
|
|
7596
7596
|
}
|
|
7597
7597
|
static widget(e, n, r) {
|
|
7598
|
-
return new Dt(e, e, new
|
|
7598
|
+
return new Dt(e, e, new ms(n, r));
|
|
7599
7599
|
}
|
|
7600
7600
|
static inline(e, n, r, i) {
|
|
7601
7601
|
return new Dt(e, n, new Mn(r, i));
|
|
@@ -7610,7 +7610,7 @@ class Dt {
|
|
|
7610
7610
|
return this.type instanceof Mn;
|
|
7611
7611
|
}
|
|
7612
7612
|
get widget() {
|
|
7613
|
-
return this.type instanceof
|
|
7613
|
+
return this.type instanceof ms;
|
|
7614
7614
|
}
|
|
7615
7615
|
}
|
|
7616
7616
|
const Nr = [], ir = {};
|
|
@@ -7619,7 +7619,7 @@ class Ne {
|
|
|
7619
7619
|
this.local = e.length ? e : Nr, this.children = n.length ? n : Nr;
|
|
7620
7620
|
}
|
|
7621
7621
|
static create(e, n) {
|
|
7622
|
-
return n.length ?
|
|
7622
|
+
return n.length ? Go(n, e, 0, ir) : Je;
|
|
7623
7623
|
}
|
|
7624
7624
|
find(e, n, r) {
|
|
7625
7625
|
let i = [];
|
|
@@ -7687,7 +7687,7 @@ class Ne {
|
|
|
7687
7687
|
}
|
|
7688
7688
|
for (let D = 0; D < A.length; D += 3) A[D + 1] == -1 && g(A[D + 2], O[D] + R + 1);
|
|
7689
7689
|
return S;
|
|
7690
|
-
})(p, a, l, u, d, h, f), _ =
|
|
7690
|
+
})(p, a, l, u, d, h, f), _ = Go(E, c, 0, f);
|
|
7691
7691
|
l = _.local;
|
|
7692
7692
|
for (let A = 0; A < p.length; A += 3) p[A + 1] < 0 && (p.splice(A, 3), A -= 3);
|
|
7693
7693
|
for (let A = 0, O = 0; A < _.children.length; A += 3) {
|
|
@@ -7708,7 +7708,7 @@ class Ne {
|
|
|
7708
7708
|
let u, c = l + r;
|
|
7709
7709
|
if (u = LE(n, a, c)) {
|
|
7710
7710
|
for (i || (i = this.children.slice()); o < i.length && i[o] < l; ) o += 3;
|
|
7711
|
-
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize,
|
|
7711
|
+
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, Go(u, a, c + 1, ir)), o += 3;
|
|
7712
7712
|
}
|
|
7713
7713
|
});
|
|
7714
7714
|
let s = kE(o ? ME(n) : n, -r);
|
|
@@ -7845,13 +7845,13 @@ function ME(t) {
|
|
|
7845
7845
|
for (let n = 0; n < t.length; n++) t[n] != null && e.push(t[n]);
|
|
7846
7846
|
return e;
|
|
7847
7847
|
}
|
|
7848
|
-
function
|
|
7848
|
+
function Go(t, e, n, r) {
|
|
7849
7849
|
let i = [], o = !1;
|
|
7850
7850
|
e.forEach((a, l) => {
|
|
7851
7851
|
let u = LE(t, a, l + n);
|
|
7852
7852
|
if (u) {
|
|
7853
7853
|
o = !0;
|
|
7854
|
-
let c =
|
|
7854
|
+
let c = Go(u, a, n + l + 1, r);
|
|
7855
7855
|
c != Je && i.push(l, l + a.nodeSize, c);
|
|
7856
7856
|
}
|
|
7857
7857
|
});
|
|
@@ -8000,7 +8000,7 @@ class xS {
|
|
|
8000
8000
|
}
|
|
8001
8001
|
}
|
|
8002
8002
|
let u = null;
|
|
8003
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
8003
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Ws(r) && (u = $c(e)) && u.eq(he.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, pn(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), (function(c) {
|
|
8004
8004
|
if (!Th.has(c) && (Th.set(c, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(c.dom).whiteSpace) !== -1)) {
|
|
8005
8005
|
if (c.requiresGeckoHackNode = wt, Rh) return;
|
|
8006
8006
|
console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."), Rh = !0;
|
|
@@ -8084,7 +8084,7 @@ function BS(t, e, n, r, i) {
|
|
|
8084
8084
|
e = s.before(a + 1), n = t.state.doc.resolve(n).after(a + 1);
|
|
8085
8085
|
let l, u, c = t.state.selection, d = (function(R, I, g) {
|
|
8086
8086
|
let D, { node: C, fromOffset: N, toOffset: k, from: b, to: L } = R.docView.parseRange(I, g), x = R.domSelectionRange(), P = x.anchorNode;
|
|
8087
|
-
if (P && R.dom.contains(P.nodeType == 1 ? P : P.parentNode) && (D = [{ node: P, offset: x.anchorOffset }],
|
|
8087
|
+
if (P && R.dom.contains(P.nodeType == 1 ? P : P.parentNode) && (D = [{ node: P, offset: x.anchorOffset }], Ws(x) || D.push({ node: x.focusNode, offset: x.focusOffset })), He && R.input.lastKeyCode === 8) for (let le = k; le > N; le--) {
|
|
8088
8088
|
let ue = C.childNodes[le - 1], de = ue.pmViewDesc;
|
|
8089
8089
|
if (ue.nodeName == "BR" && !de) {
|
|
8090
8090
|
k = le;
|
|
@@ -8472,7 +8472,7 @@ const Pe = new class {
|
|
|
8472
8472
|
this.linebreakReplacement = null, this.cached = /* @__PURE__ */ Object.create(null);
|
|
8473
8473
|
let e = this.spec = {};
|
|
8474
8474
|
for (let r in t) e[r] = t[r];
|
|
8475
|
-
e.nodes = Ve.from(t.nodes), e.marks = Ve.from(t.marks || {}), this.nodes = bd.compile(this.spec.nodes, this), this.marks =
|
|
8475
|
+
e.nodes = Ve.from(t.nodes), e.marks = Ve.from(t.marks || {}), this.nodes = bd.compile(this.spec.nodes, this), this.marks = Vs.compile(this.spec.marks, this);
|
|
8476
8476
|
let n = /* @__PURE__ */ Object.create(null);
|
|
8477
8477
|
for (let r in this.nodes) {
|
|
8478
8478
|
if (r in this.marks) throw new RangeError(r + " can not be both a node and a mark");
|
|
@@ -8500,7 +8500,7 @@ const Pe = new class {
|
|
|
8500
8500
|
}
|
|
8501
8501
|
text(t, e) {
|
|
8502
8502
|
let n = this.nodes.text;
|
|
8503
|
-
return new
|
|
8503
|
+
return new ds(n, n.defaultAttrs, t, pe.setFrom(e));
|
|
8504
8504
|
}
|
|
8505
8505
|
mark(t, e) {
|
|
8506
8506
|
return typeof t == "string" && (t = this.marks[t]), t.create(e);
|
|
@@ -8513,7 +8513,7 @@ const Pe = new class {
|
|
|
8513
8513
|
}({ nodes: { doc: { content: "paragraph+" }, paragraph: { code: !0, content: "inline*", parseDOM: [{ tag: "p" }], toDOM: () => ["p", 0] }, text: { group: "inline" }, mention: { group: "inline", inline: !0, attrs: { id: {}, name: {} }, content: "text*", toDOM: (t) => ["span", { "data-mention-id": t.attrs.id, class: "t-mention" }, `@${t.attrs.name}`], parseDOM: [{ tag: "span[data-mention-id]", getAttrs: (t) => ({ id: t.dataset["mention-id"] }) }] }, customemoji: { group: "inline", inline: !0, attrs: { name: {}, url: {} }, content: "text*", selectable: !1, toDOM: (t) => ["img", { src: t.attrs.url, alt: t.attrs.name, "data-custom-emoji": t.attrs.name }], parseDOM: [{ tag: "img[data-custom-emoji]", getAttrs: (t) => {
|
|
8514
8514
|
const e = t;
|
|
8515
8515
|
return { name: e.dataset.customEmoji, url: e.src };
|
|
8516
|
-
} }] } }, marks: { literal: { toDOM: () => ["span", { "data-literal": "" }], parseDOM: [{ tag: "span[data-literal]" }] }, bold: { toDOM: () => ["b"], parseDOM: [{ tag: "b" }] }, italic: { toDOM: () => ["i"], parseDOM: [{ tag: "i" }] }, strikethrough: { toDOM: () => ["del"], parseDOM: [{ tag: "del" }] }, emoji: { attrs: { emoji: {} }, toDOM: (t) => ["span", { "data-emoji": t.attrs.emoji }, t.attrs.emoji], parseDOM: [{ tag: "span[data-emoji]", getAttrs: (t) => ({ emoji: t.dataset.emoji }) }] } } }), ja = new
|
|
8516
|
+
} }] } }, marks: { literal: { toDOM: () => ["span", { "data-literal": "" }], parseDOM: [{ tag: "span[data-literal]" }] }, bold: { toDOM: () => ["b"], parseDOM: [{ tag: "b" }] }, italic: { toDOM: () => ["i"], parseDOM: [{ tag: "i" }] }, strikethrough: { toDOM: () => ["del"], parseDOM: [{ tag: "del" }] }, emoji: { attrs: { emoji: {} }, toDOM: (t) => ["span", { "data-emoji": t.attrs.emoji }, t.attrs.emoji], parseDOM: [{ tag: "span[data-emoji]", getAttrs: (t) => ({ emoji: t.dataset.emoji }) }] } } }), ja = new Gs("placeholder"), Mh = new Ys({ key: ja, props: { decorations(t) {
|
|
8517
8517
|
if (xE(t.doc)) return;
|
|
8518
8518
|
const e = t.doc.firstChild, n = Dt.node(0, e.nodeSize, { class: "empty-node", "data-placeholder": ja.getState(t) });
|
|
8519
8519
|
return Ne.create(t.doc, [n]);
|
|
@@ -8524,10 +8524,10 @@ const Pe = new class {
|
|
|
8524
8524
|
function xE(t) {
|
|
8525
8525
|
return t.childCount !== 1 || t.firstChild.childCount !== 0;
|
|
8526
8526
|
}
|
|
8527
|
-
for (var xn = { 8: "Backspace", 9: "Tab", 10: "Enter", 12: "NumLock", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 44: "PrintScreen", 45: "Insert", 46: "Delete", 59: ";", 61: "=", 91: "Meta", 92: "Meta", 106: "*", 107: "+", 108: ",", 109: "-", 110: ".", 111: "/", 144: "NumLock", 145: "ScrollLock", 160: "Shift", 161: "Shift", 162: "Control", 163: "Control", 164: "Alt", 165: "Alt", 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" },
|
|
8527
|
+
for (var xn = { 8: "Backspace", 9: "Tab", 10: "Enter", 12: "NumLock", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 44: "PrintScreen", 45: "Insert", 46: "Delete", 59: ";", 61: "=", 91: "Meta", 92: "Meta", 106: "*", 107: "+", 108: ",", 109: "-", 110: ".", 111: "/", 144: "NumLock", 145: "ScrollLock", 160: "Shift", 161: "Shift", 162: "Control", 163: "Control", 164: "Alt", 165: "Alt", 173: "-", 186: ";", 187: "=", 188: ",", 189: "-", 190: ".", 191: "/", 192: "`", 219: "[", 220: "\\", 221: "]", 222: "'" }, Es = { 48: ")", 49: "!", 50: "@", 51: "#", 52: "$", 53: "%", 54: "^", 55: "&", 56: "*", 57: "(", 59: ":", 61: "+", 173: "_", 186: ":", 187: "+", 188: "<", 189: "_", 190: ">", 191: "?", 192: "~", 219: "{", 220: "|", 221: "}", 222: '"' }, jS = typeof navigator != "undefined" && /Mac/.test(navigator.platform), $S = typeof navigator != "undefined" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent), ze = 0; ze < 10; ze++) xn[48 + ze] = xn[96 + ze] = String(ze);
|
|
8528
8528
|
for (ze = 1; ze <= 24; ze++) xn[ze + 111] = "F" + ze;
|
|
8529
|
-
for (ze = 65; ze <= 90; ze++) xn[ze] = String.fromCharCode(ze + 32),
|
|
8530
|
-
for (var $a in xn)
|
|
8529
|
+
for (ze = 65; ze <= 90; ze++) xn[ze] = String.fromCharCode(ze + 32), Es[ze] = String.fromCharCode(ze);
|
|
8530
|
+
for (var $a in xn) Es.hasOwnProperty($a) || (Es[$a] = xn[$a]);
|
|
8531
8531
|
const VS = typeof navigator != "undefined" && /Mac|iP(hone|[oa]d)/.test(navigator.platform);
|
|
8532
8532
|
function zS(t) {
|
|
8533
8533
|
let e, n, r, i, o = t.split(/-(?!$)/), s = o[o.length - 1];
|
|
@@ -8549,7 +8549,7 @@ function Va(t, e, n = !0) {
|
|
|
8549
8549
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
8550
8550
|
}
|
|
8551
8551
|
function Ph(t) {
|
|
8552
|
-
return new
|
|
8552
|
+
return new Ys({ props: { handleKeyDown: YS(t) } });
|
|
8553
8553
|
}
|
|
8554
8554
|
function YS(t) {
|
|
8555
8555
|
let e = (function(n) {
|
|
@@ -8559,7 +8559,7 @@ function YS(t) {
|
|
|
8559
8559
|
})(t);
|
|
8560
8560
|
return function(n, r) {
|
|
8561
8561
|
let i, o = (function(a) {
|
|
8562
|
-
var l = !(jS && a.metaKey && a.shiftKey && !a.ctrlKey && !a.altKey || $S && a.shiftKey && a.key && a.key.length == 1 || a.key == "Unidentified") && a.key || (a.shiftKey ?
|
|
8562
|
+
var l = !(jS && a.metaKey && a.shiftKey && !a.ctrlKey && !a.altKey || $S && a.shiftKey && a.key && a.key.length == 1 || a.key == "Unidentified") && a.key || (a.shiftKey ? Es : xn)[a.keyCode] || a.key || "Unidentified";
|
|
8563
8563
|
return l == "Esc" && (l = "Escape"), l == "Del" && (l = "Delete"), l == "Left" && (l = "ArrowLeft"), l == "Up" && (l = "ArrowUp"), l == "Right" && (l = "ArrowRight"), l == "Down" && (l = "ArrowDown"), l;
|
|
8564
8564
|
})(r), s = e[Va(o, r)];
|
|
8565
8565
|
if (s && s(n.state, n.dispatch, n)) return !0;
|
|
@@ -8576,10 +8576,10 @@ function YS(t) {
|
|
|
8576
8576
|
return !1;
|
|
8577
8577
|
};
|
|
8578
8578
|
}
|
|
8579
|
-
var
|
|
8579
|
+
var _s = 200, Fe = function() {
|
|
8580
8580
|
};
|
|
8581
8581
|
Fe.prototype.append = function(t) {
|
|
8582
|
-
return t.length ? (t = Fe.from(t), !this.length && t || t.length <
|
|
8582
|
+
return t.length ? (t = Fe.from(t), !this.length && t || t.length < _s && this.leafAppend(t) || this.length < _s && t.leafPrepend(this) || this.appendInner(t)) : this;
|
|
8583
8583
|
}, Fe.prototype.prepend = function(t) {
|
|
8584
8584
|
return t.length ? Fe.from(t).append(this) : this;
|
|
8585
8585
|
}, Fe.prototype.appendInner = function(t) {
|
|
@@ -8616,9 +8616,9 @@ var FE = (function(t) {
|
|
|
8616
8616
|
}, e.prototype.forEachInvertedInner = function(r, i, o, s) {
|
|
8617
8617
|
for (var a = i - 1; a >= o; a--) if (r(this.values[a], s + a) === !1) return !1;
|
|
8618
8618
|
}, e.prototype.leafAppend = function(r) {
|
|
8619
|
-
if (this.length + r.length <=
|
|
8619
|
+
if (this.length + r.length <= _s) return new e(this.values.concat(r.flatten()));
|
|
8620
8620
|
}, e.prototype.leafPrepend = function(r) {
|
|
8621
|
-
if (this.length + r.length <=
|
|
8621
|
+
if (this.length + r.length <= _s) return new e(r.flatten().concat(this.values));
|
|
8622
8622
|
}, n.length.get = function() {
|
|
8623
8623
|
return this.values.length;
|
|
8624
8624
|
}, n.depth.get = function() {
|
|
@@ -8779,7 +8779,7 @@ function za(t, e) {
|
|
|
8779
8779
|
return n;
|
|
8780
8780
|
}
|
|
8781
8781
|
let Ya = !1, Fh = null;
|
|
8782
|
-
function
|
|
8782
|
+
function Wo(t) {
|
|
8783
8783
|
let e = t.plugins;
|
|
8784
8784
|
if (Fh != e) {
|
|
8785
8785
|
Ya = !1, Fh = e;
|
|
@@ -8790,15 +8790,15 @@ function Go(t) {
|
|
|
8790
8790
|
}
|
|
8791
8791
|
return Ya;
|
|
8792
8792
|
}
|
|
8793
|
-
const Qn = new
|
|
8793
|
+
const Qn = new Gs("history"), XS = new Gs("closeHistory");
|
|
8794
8794
|
function KS(t = {}) {
|
|
8795
|
-
return t = { depth: t.depth || 100, newGroupDelay: t.newGroupDelay || 500 }, new
|
|
8795
|
+
return t = { depth: t.depth || 100, newGroupDelay: t.newGroupDelay || 500 }, new Ys({ key: Qn, state: { init: () => new On(Mt.empty, Mt.empty, null, 0, -1), apply: (e, n, r) => (function(i, o, s, a) {
|
|
8796
8796
|
let l, u = s.getMeta(Qn);
|
|
8797
8797
|
if (u) return u.historyState;
|
|
8798
8798
|
s.getMeta(XS) && (i = new On(i.done, i.undone, null, 0, -1));
|
|
8799
8799
|
let c = s.getMeta("appendedTransaction");
|
|
8800
8800
|
if (s.steps.length == 0) return i;
|
|
8801
|
-
if (c && c.getMeta(Qn)) return c.getMeta(Qn).redo ? new On(i.done.addTransform(s, void 0, a,
|
|
8801
|
+
if (c && c.getMeta(Qn)) return c.getMeta(Qn).redo ? new On(i.done.addTransform(s, void 0, a, Wo(o)), i.undone, xh(s.mapping.maps), i.prevTime, i.prevComposition) : new On(i.done, i.undone.addTransform(s, void 0, a, Wo(o)), null, i.prevTime, i.prevComposition);
|
|
8802
8802
|
if (s.getMeta("addToHistory") === !1 || c && c.getMeta("addToHistory") === !1) return (l = s.getMeta("rebased")) ? new On(i.done.rebased(s, l), i.undone.rebased(s, l), za(i.prevRanges, s.mapping), i.prevTime, i.prevComposition) : new On(i.done.addMaps(s.mapping.maps), i.undone.addMaps(s.mapping.maps), za(i.prevRanges, s.mapping), i.prevTime, i.prevComposition);
|
|
8803
8803
|
{
|
|
8804
8804
|
let d = s.getMeta("composition"), h = i.prevTime == 0 || !c && i.prevComposition != d && (i.prevTime < (s.time || 0) - a.newGroupDelay || !(function(p, m) {
|
|
@@ -8809,7 +8809,7 @@ function KS(t = {}) {
|
|
|
8809
8809
|
for (let O = 0; O < m.length; O += 2) _ <= m[O + 1] && A >= m[O] && (E = !0);
|
|
8810
8810
|
}), E;
|
|
8811
8811
|
})(s, i.prevRanges)), f = c ? za(i.prevRanges, s.mapping) : xh(s.mapping.maps);
|
|
8812
|
-
return new On(i.done.addTransform(s, h ? o.selection.getBookmark() : void 0, a,
|
|
8812
|
+
return new On(i.done.addTransform(s, h ? o.selection.getBookmark() : void 0, a, Wo(o)), Mt.empty, f, s.time, d == null ? i.prevComposition : d);
|
|
8813
8813
|
}
|
|
8814
8814
|
})(n, r, e, t) }, config: t, props: { handleDOMEvents: { beforeinput(e, n) {
|
|
8815
8815
|
let r = n.inputType, i = r == "historyUndo" ? UE : r == "historyRedo" ? Yl : null;
|
|
@@ -8822,7 +8822,7 @@ function HE(t, e) {
|
|
|
8822
8822
|
if (!i || (t ? i.undone : i.done).eventCount == 0) return !1;
|
|
8823
8823
|
if (r) {
|
|
8824
8824
|
let o = (function(s, a, l) {
|
|
8825
|
-
let u =
|
|
8825
|
+
let u = Wo(a), c = Qn.get(a).spec.config, d = (l ? s.undone : s.done).popEvent(a, u);
|
|
8826
8826
|
if (!d) return null;
|
|
8827
8827
|
let h = d.selection.resolve(d.transform.doc), f = (l ? s.done : s.undone).addTransform(d.transform, a.selection.getBookmark(), c, u), p = new On(l ? f : d.remaining, l ? d.remaining : f, null, 0, -1);
|
|
8828
8828
|
return d.transform.setSelection(h).setMeta(Qn, { redo: l, historyState: p });
|
|
@@ -8864,13 +8864,13 @@ function Gl(t) {
|
|
|
8864
8864
|
}
|
|
8865
8865
|
const qS = (t, e) => {
|
|
8866
8866
|
let { $from: n, $to: r } = t.selection;
|
|
8867
|
-
if (t.selection instanceof Z && t.selection.node.isBlock) return !(!n.parentOffset || !
|
|
8867
|
+
if (t.selection instanceof Z && t.selection.node.isBlock) return !(!n.parentOffset || !Yo(t.doc, n.pos) || (e && e(t.tr.split(n.pos).scrollIntoView()), 0));
|
|
8868
8868
|
if (!n.parent.isBlock) return !1;
|
|
8869
8869
|
if (e) {
|
|
8870
8870
|
let i = r.parentOffset == r.parent.content.size, o = t.tr;
|
|
8871
8871
|
(t.selection instanceof ce || t.selection instanceof Rt) && o.deleteSelection();
|
|
8872
|
-
let s = n.depth == 0 ? null : Gl(n.node(-1).contentMatchAt(n.indexAfter(-1))), a = i && s ? [{ type: s }] : void 0, l =
|
|
8873
|
-
if (a || l || !
|
|
8872
|
+
let s = n.depth == 0 ? null : Gl(n.node(-1).contentMatchAt(n.indexAfter(-1))), a = i && s ? [{ type: s }] : void 0, l = Yo(o.doc, o.mapping.map(n.pos), 1, a);
|
|
8873
|
+
if (a || l || !Yo(o.doc, o.mapping.map(n.pos), 1, s ? [{ type: s }] : void 0) || (s && (a = [{ type: s }]), l = !0), l && (o.split(o.mapping.map(n.pos), 1, a), !i && !n.parentOffset && n.parent.type != s)) {
|
|
8874
8874
|
let u = o.mapping.map(n.before()), c = o.doc.resolve(u);
|
|
8875
8875
|
s && n.node(-1).canReplaceWith(c.index(), c.index() + 1, s) && o.setNodeMarkup(o.mapping.map(n.before()), s);
|
|
8876
8876
|
}
|
|
@@ -9014,7 +9014,7 @@ const ln = { Enter: Xc((t, e) => {
|
|
|
9014
9014
|
if (!n || n.parent.content.size) return !1;
|
|
9015
9015
|
if (n.depth > 1 && n.after() != n.end(-1)) {
|
|
9016
9016
|
let o = n.before();
|
|
9017
|
-
if (
|
|
9017
|
+
if (Yo(t.doc, o)) return e && e(t.tr.split(o).scrollIntoView()), !0;
|
|
9018
9018
|
}
|
|
9019
9019
|
let r = n.blockRange(), i = r && Hc(r);
|
|
9020
9020
|
return i != null && (e && e(t.tr.lift(r, i).scrollIntoView()), !0);
|
|
@@ -9030,7 +9030,7 @@ const ln = { Enter: Xc((t, e) => {
|
|
|
9030
9030
|
return !0;
|
|
9031
9031
|
}, Backspace: Ga, "Mod-Backspace": Ga, "Shift-Backspace": Ga, Delete: Bh, "Mod-Delete": Bh, "Mod-a": (t, e) => (e && e(t.tr.setSelection(new Rt(t.doc))), !0) }, VE = { "Ctrl-h": ln.Backspace, "Alt-Backspace": ln["Mod-Backspace"], "Ctrl-d": ln.Delete, "Ctrl-Alt-Backspace": ln["Mod-Delete"], "Alt-Delete": ln["Mod-Delete"], "Alt-d": ln["Mod-Delete"], "Ctrl-a": JS, "Ctrl-e": ZS };
|
|
9032
9032
|
for (let t in ln) VE[t] = ln[t];
|
|
9033
|
-
const
|
|
9033
|
+
const bo = (typeof navigator != "undefined" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !(typeof os == "undefined" || !os.platform) && os.platform() == "darwin") ? VE : ln;
|
|
9034
9034
|
function Kc(t, e) {
|
|
9035
9035
|
return t.reduce((n, r, i) => n.concat(e(r, i)), []);
|
|
9036
9036
|
}
|
|
@@ -9057,7 +9057,7 @@ function zE(t) {
|
|
|
9057
9057
|
})(t) % zh.length;
|
|
9058
9058
|
return zh[e];
|
|
9059
9059
|
}
|
|
9060
|
-
function
|
|
9060
|
+
function Ks(t, e) {
|
|
9061
9061
|
const n = e.lastIndex;
|
|
9062
9062
|
let r;
|
|
9063
9063
|
const i = [];
|
|
@@ -9081,7 +9081,7 @@ const nO = 13;
|
|
|
9081
9081
|
function $h(t) {
|
|
9082
9082
|
return t.keyCode === nO && !t.shiftKey;
|
|
9083
9083
|
}
|
|
9084
|
-
function
|
|
9084
|
+
function wo(t) {
|
|
9085
9085
|
const e = t.replace(/%2F/g, "/").replace(/^.*?\/([^/]+?)(?:\?.*)?$/, "$1"), n = decodeURIComponent(e);
|
|
9086
9086
|
if (/%[0-9A-Fa-f]{2}/.test(n)) try {
|
|
9087
9087
|
return decodeURIComponent(n.replace(/\+/g, "%20"));
|
|
@@ -9134,7 +9134,7 @@ function An(t, e) {
|
|
|
9134
9134
|
const r = n;
|
|
9135
9135
|
let i = 0;
|
|
9136
9136
|
const o = [];
|
|
9137
|
-
for (const s of
|
|
9137
|
+
for (const s of Ks(n, t)) {
|
|
9138
9138
|
s.index - i > 0 && o.push(r.substring(i, s.index));
|
|
9139
9139
|
const a = e(s);
|
|
9140
9140
|
Array.isArray(a) ? o.push(...a) : o.push(a), i = s.index + s[0].length;
|
|
@@ -9213,7 +9213,7 @@ function $n(t, e) {
|
|
|
9213
9213
|
function cr(t) {
|
|
9214
9214
|
throw new Error("Unhandled case for value: '".concat(t, "'"));
|
|
9215
9215
|
}
|
|
9216
|
-
var
|
|
9216
|
+
var ko = /\s+/, XE = (function() {
|
|
9217
9217
|
function t(e) {
|
|
9218
9218
|
e === void 0 && (e = {}), this.tagName = "", this.attrs = {}, this.innerHTML = "", this.tagName = e.tagName || "", this.attrs = e.attrs || {}, this.innerHTML = e.innerHtml || e.innerHTML || "";
|
|
9219
9219
|
}
|
|
@@ -9232,10 +9232,10 @@ var wo = /\s+/, XE = (function() {
|
|
|
9232
9232
|
}, t.prototype.setClass = function(e) {
|
|
9233
9233
|
return this.setAttr("class", e);
|
|
9234
9234
|
}, t.prototype.addClass = function(e) {
|
|
9235
|
-
for (var n, r = this.getClass(), i = r ? r.split(
|
|
9235
|
+
for (var n, r = this.getClass(), i = r ? r.split(ko) : [], o = e.split(ko); n = o.shift(); ) i.indexOf(n) === -1 && i.push(n);
|
|
9236
9236
|
return this.getAttrs().class = i.join(" "), this;
|
|
9237
9237
|
}, t.prototype.removeClass = function(e) {
|
|
9238
|
-
for (var n, r = this.getClass(), i = r ? r.split(
|
|
9238
|
+
for (var n, r = this.getClass(), i = r ? r.split(ko) : [], o = e.split(ko); i.length && (n = o.shift()); ) {
|
|
9239
9239
|
var s = i.indexOf(n);
|
|
9240
9240
|
s !== -1 && i.splice(s, 1);
|
|
9241
9241
|
}
|
|
@@ -9557,7 +9557,7 @@ var CO = (function(t) {
|
|
|
9557
9557
|
return this.schemeUrlMachinesCount > 0;
|
|
9558
9558
|
}, t;
|
|
9559
9559
|
})();
|
|
9560
|
-
function
|
|
9560
|
+
function qs(t, e, n) {
|
|
9561
9561
|
var r = t.charIdx;
|
|
9562
9562
|
if (n === 35) t.addMachine({ type: 2, startIdx: r, state: 28, acceptStateReached: !1 });
|
|
9563
9563
|
else if (n === 64) t.addMachine(/* @__PURE__ */ (function(o, s) {
|
|
@@ -9575,7 +9575,7 @@ function Ks(t, e, n) {
|
|
|
9575
9575
|
return { type: 1, startIdx: o, state: s, acceptStateReached: !1 };
|
|
9576
9576
|
})(r, i));
|
|
9577
9577
|
}
|
|
9578
|
-
Ki(n) && t.addMachine(
|
|
9578
|
+
Ki(n) && t.addMachine(Js(r, 0)), Ar(n) && t.addMachine(ql(r, 5));
|
|
9579
9579
|
}
|
|
9580
9580
|
}
|
|
9581
9581
|
function bO(t, e, n) {
|
|
@@ -9587,7 +9587,7 @@ function wO(t, e, n) {
|
|
|
9587
9587
|
}
|
|
9588
9588
|
function kO(t, e, n) {
|
|
9589
9589
|
var r = t.charIdx;
|
|
9590
|
-
n === 47 ? e.state = 3 : n === 46 ? t.removeMachine(e) : Un(n) ? (e.state = 5, Ki(n) && t.addMachine(
|
|
9590
|
+
n === 47 ? e.state = 3 : n === 46 ? t.removeMachine(e) : Un(n) ? (e.state = 5, Ki(n) && t.addMachine(Js(r, 0))) : t.removeMachine(e);
|
|
9591
9591
|
}
|
|
9592
9592
|
function LO(t, e, n) {
|
|
9593
9593
|
n === 47 ? e.state = 4 : ZE(n) ? (e.state = 10, e.acceptStateReached = !0) : Oe(t, e);
|
|
@@ -9677,10 +9677,10 @@ function s0(t, e, n) {
|
|
|
9677
9677
|
r_(n) || (Ar(n) ? t.removeMachine(e) : Oe(t, e));
|
|
9678
9678
|
}
|
|
9679
9679
|
function a0(t, e, n, r) {
|
|
9680
|
-
Ke(r) ? e.state = 38 : (t.removeMachine(e),
|
|
9680
|
+
Ke(r) ? e.state = 38 : (t.removeMachine(e), qs(t, n, r));
|
|
9681
9681
|
}
|
|
9682
9682
|
function l0(t, e, n, r) {
|
|
9683
|
-
Ke(r) ? e.state = 33 : t.removeMachine(e),
|
|
9683
|
+
Ke(r) ? e.state = 33 : t.removeMachine(e), qs(t, n, r);
|
|
9684
9684
|
}
|
|
9685
9685
|
function c0(t, e, n) {
|
|
9686
9686
|
Ke(n) ? e.state = 34 : t.removeMachine(e);
|
|
@@ -9696,10 +9696,10 @@ function h0(t, e, n, r) {
|
|
|
9696
9696
|
}
|
|
9697
9697
|
function p0(t, e, n, r) {
|
|
9698
9698
|
var i = t.charIdx;
|
|
9699
|
-
e.acceptStateReached = !0, eu(r) ? e.state = 40 : r === 35 ? e.state = 41 : Ke(r) || (r === 40 ? e.state = 32 : i_(r) ? e.state = 39 : (Oe(t, e), Ki(r) && t.addMachine(
|
|
9699
|
+
e.acceptStateReached = !0, eu(r) ? e.state = 40 : r === 35 ? e.state = 41 : Ke(r) || (r === 40 ? e.state = 32 : i_(r) ? e.state = 39 : (Oe(t, e), Ki(r) && t.addMachine(Js(i, 0))));
|
|
9700
9700
|
}
|
|
9701
9701
|
function f0(t, e, n, r) {
|
|
9702
|
-
Ke(r) ? e.state = 38 : r === 40 ? e.state = 32 : (Oe(t, e),
|
|
9702
|
+
Ke(r) ? e.state = 38 : r === 40 ? e.state = 32 : (Oe(t, e), qs(t, n, r));
|
|
9703
9703
|
}
|
|
9704
9704
|
function m0(t, e, n) {
|
|
9705
9705
|
eu(n) || (n === 35 ? e.state = 41 : Ke(n) ? e.state = 38 : Oe(t, e));
|
|
@@ -9793,7 +9793,7 @@ function _0(t) {
|
|
|
9793
9793
|
}
|
|
9794
9794
|
}
|
|
9795
9795
|
var Kh = { ")": "(", "}": "{", "]": "[" };
|
|
9796
|
-
function
|
|
9796
|
+
function Js(t, e) {
|
|
9797
9797
|
return { type: 0, startIdx: t, state: e, acceptStateReached: !1, matchType: 0 };
|
|
9798
9798
|
}
|
|
9799
9799
|
function ql(t, e) {
|
|
@@ -10057,7 +10057,7 @@ var B0 = (function() {
|
|
|
10057
10057
|
for (var r = (function(s, a) {
|
|
10058
10058
|
for (var l = new NO(s, a); l.charIdx < l.text.length; l.charIdx++) {
|
|
10059
10059
|
var u = s.charAt(l.charIdx), c = s.charCodeAt(l.charIdx);
|
|
10060
|
-
if (l.stateMachines.length === 0)
|
|
10060
|
+
if (l.stateMachines.length === 0) qs(l, u, c);
|
|
10061
10061
|
else {
|
|
10062
10062
|
for (var d = l.stateMachines.length - 1; d >= 0; d--) {
|
|
10063
10063
|
var h = l.stateMachines[d];
|
|
@@ -10194,7 +10194,7 @@ var B0 = (function() {
|
|
|
10194
10194
|
}
|
|
10195
10195
|
if (!l.hasSchemeUrlMachine() && l.charIdx > 0 && Ki(c)) {
|
|
10196
10196
|
var f = l.text.charCodeAt(l.charIdx - 1);
|
|
10197
|
-
Ki(f) || l.addMachine(
|
|
10197
|
+
Ki(f) || l.addMachine(Js(l.charIdx, 0));
|
|
10198
10198
|
}
|
|
10199
10199
|
}
|
|
10200
10200
|
}
|
|
@@ -10254,7 +10254,7 @@ const W0 = An(/(?:^|\n)(?:\s*[-*+]\s+[^\n]+(?:\n|$))+/g, ([t]) => /* @__PURE__ *
|
|
|
10254
10254
|
const e = /(?:^|[^-:/\w])([(+]?[0-9](?:[-_+ ().]?[0-9]){5,11}[0-9])(?:[^-:/\w]|$)/g, n = /^(\d{4})-(\d{4})$/, r = /^(\d{1,2})\.(\d{2})-(\d{1,2})\.(\d{2})$/;
|
|
10255
10255
|
let i = 0;
|
|
10256
10256
|
const o = [];
|
|
10257
|
-
for (const s of
|
|
10257
|
+
for (const s of Ks(t, e)) {
|
|
10258
10258
|
const a = s[0], l = s[1], u = l.match(n);
|
|
10259
10259
|
if (u && Number(u[1]) < Number(u[2]))
|
|
10260
10260
|
continue;
|
|
@@ -10385,7 +10385,7 @@ function Z0(t, e, n) {
|
|
|
10385
10385
|
}
|
|
10386
10386
|
function Zh(t) {
|
|
10387
10387
|
const { matcher: e, suggestionClass: n = "ProseMirror-suggestion", onEnter: r = () => !1, onChange: i = () => !1, onExit: o = () => !1, onKeyDown: s = () => !1, debug: a = !1 } = t;
|
|
10388
|
-
return new
|
|
10388
|
+
return new Ys({ key: new Gs("suggestions"), view() {
|
|
10389
10389
|
return { update: (l, u) => {
|
|
10390
10390
|
const c = this.key.getState(u), d = this.key.getState(l.state);
|
|
10391
10391
|
if (!c || !d) return;
|
|
@@ -10422,7 +10422,7 @@ const Qh = (t, e) => (n) => {
|
|
|
10422
10422
|
function tv({ placeholder: t, disabled: e, className: n = "", characterLimit: r, spellcheck: i }) {
|
|
10423
10423
|
const o = lo(), s = X(), a = X(null);
|
|
10424
10424
|
return G(() => (s.current = (function(l, u, c, d, h) {
|
|
10425
|
-
const f = Pr.create({ schema: Pe, plugins: [...h.filter(nv), KS(), Ph({ ...
|
|
10425
|
+
const f = Pr.create({ schema: Pe, plugins: [...h.filter(nv), KS(), Ph({ ...bo, "Mod-z": UE, "Mod-y": Yl, "Mod-Shift-z": Yl, "Mod-b": Jh("*"), "Mod-i": Jh("_"), "Mod-Enter": bo.Enter, "Shift-Enter": bo.Enter, Enter: c }), Ph({ Enter: bo.Enter }), Mh] }), p = J0(), m = new PE(l, { handlePaste: (E, _, A) => Z0(E, _, d), clipboardTextSerializer(E) {
|
|
10426
10426
|
const _ = [];
|
|
10427
10427
|
return E.content.forEach((A) => {
|
|
10428
10428
|
A && _.push(GE(A.textContent));
|
|
@@ -10430,7 +10430,7 @@ function tv({ placeholder: t, disabled: e, className: n = "", characterLimit: r,
|
|
|
10430
10430
|
}, state: f, dispatchTransaction(E) {
|
|
10431
10431
|
E = (E = E.removeStoredMark(Pe.marks.literal)).removeStoredMark(Pe.marks.emoji);
|
|
10432
10432
|
const _ = m.state.apply(E);
|
|
10433
|
-
m.state.doc.eq(_.doc) || u(new
|
|
10433
|
+
m.state.doc.eq(_.doc) || u(new As(_.doc)), m.updateState(_), E.steps.some((A) => A instanceof Ye) && p(m);
|
|
10434
10434
|
} });
|
|
10435
10435
|
return m;
|
|
10436
10436
|
})(a.current, (l) => o.onChange(l), () => !!o.onEnter && (o.onEnter(), !0), (l) => o.onPasteImage(l), [o.emojiSuggesterPlugin(), o.mentionsPlugin()]), o.setEditorView(s.current), () => {
|
|
@@ -10461,7 +10461,7 @@ function tp(t, e) {
|
|
|
10461
10461
|
const n = encodeURIComponent(t);
|
|
10462
10462
|
return Pe.nodes.mention.create({ id: t, name: e }, Pe.text(`<!!mention:${n}|${e}>`));
|
|
10463
10463
|
}
|
|
10464
|
-
const
|
|
10464
|
+
const bs = class bs {
|
|
10465
10465
|
constructor(e) {
|
|
10466
10466
|
this.doc = e, this.size = this.doc.content.size, this.hasContent = xE(this.doc);
|
|
10467
10467
|
}
|
|
@@ -10475,8 +10475,8 @@ const Ns = class Ns {
|
|
|
10475
10475
|
return this.doc.textContent.replace(/\xa0/g, " ");
|
|
10476
10476
|
}
|
|
10477
10477
|
};
|
|
10478
|
-
|
|
10479
|
-
let
|
|
10478
|
+
bs.EMPTY = new bs(Pe.topNodeType.create());
|
|
10479
|
+
let As = bs;
|
|
10480
10480
|
function nv(t) {
|
|
10481
10481
|
return t != null;
|
|
10482
10482
|
}
|
|
@@ -10490,7 +10490,7 @@ function np(t, e) {
|
|
|
10490
10490
|
}
|
|
10491
10491
|
class m_ {
|
|
10492
10492
|
constructor(e, n, r) {
|
|
10493
|
-
this.state$ = e, this.device$ = n, this.userPermissions$ = r, this.currentDoc =
|
|
10493
|
+
this.state$ = e, this.device$ = n, this.userPermissions$ = r, this.currentDoc = As.EMPTY, this.maxLength = 1e4, this.markAsTyping = /* @__PURE__ */ (function(i, o) {
|
|
10494
10494
|
let s = !1;
|
|
10495
10495
|
return (...a) => {
|
|
10496
10496
|
if (!s) return s = !0, setTimeout(() => {
|
|
@@ -10745,7 +10745,7 @@ let fo = class {
|
|
|
10745
10745
|
this.listeners[t] && this.listeners[t].forEach((n) => n(...e));
|
|
10746
10746
|
}
|
|
10747
10747
|
};
|
|
10748
|
-
const
|
|
10748
|
+
const Lo = { decode: function(t, e) {
|
|
10749
10749
|
return st(this, void 0, void 0, function* () {
|
|
10750
10750
|
const n = new AudioContext({ sampleRate: e });
|
|
10751
10751
|
try {
|
|
@@ -11729,7 +11729,7 @@ class qi extends lv {
|
|
|
11729
11729
|
this.mediaSubscriptions.forEach((e) => e()), this.mediaSubscriptions = [];
|
|
11730
11730
|
}
|
|
11731
11731
|
setOptions(e) {
|
|
11732
|
-
this.options = Object.assign({}, this.options, e), e.duration && !e.peaks && (this.decodedData =
|
|
11732
|
+
this.options = Object.assign({}, this.options, e), e.duration && !e.peaks && (this.decodedData = Lo.createBuffer(this.exportPeaks(), e.duration)), e.peaks && e.duration && (this.decodedData = Lo.createBuffer(e.peaks, e.duration)), this.renderer.setOptions(this.options), e.audioRate && this.setPlaybackRate(e.audioRate), e.mediaControls != null && (this.getMediaElement().controls = e.mediaControls);
|
|
11733
11733
|
}
|
|
11734
11734
|
registerPlugin(e) {
|
|
11735
11735
|
if (this.plugins.includes(e)) return e;
|
|
@@ -11781,10 +11781,10 @@ class qi extends lv {
|
|
|
11781
11781
|
const a = this.getMediaElement();
|
|
11782
11782
|
a instanceof Za && (a.duration = s);
|
|
11783
11783
|
}
|
|
11784
|
-
if (r) this.decodedData =
|
|
11784
|
+
if (r) this.decodedData = Lo.createBuffer(r, s || 0);
|
|
11785
11785
|
else if (n) {
|
|
11786
11786
|
const a = yield n.arrayBuffer();
|
|
11787
|
-
this.decodedData = yield
|
|
11787
|
+
this.decodedData = yield Lo.decode(a, this.options.sampleRate);
|
|
11788
11788
|
}
|
|
11789
11789
|
this.decodedData && (this.emit("decode", this.getDuration()), this.renderer.render(this.decodedData)), this.emit("ready", this.getDuration());
|
|
11790
11790
|
});
|
|
@@ -11936,9 +11936,9 @@ function iu(t, e = 10) {
|
|
|
11936
11936
|
}
|
|
11937
11937
|
const S_ = /^\/.*[^\\]\/[im]*$/;
|
|
11938
11938
|
function cp(t) {
|
|
11939
|
-
return S_.test(t) ? !
|
|
11939
|
+
return S_.test(t) ? !gs(t).test("") : !1;
|
|
11940
11940
|
}
|
|
11941
|
-
function
|
|
11941
|
+
function gs(t) {
|
|
11942
11942
|
const e = t.match(/^\/(.*[^\\])\/(.*)$/);
|
|
11943
11943
|
if (!e) throw new Error(`Expected ${t} to be a (non-empty) regex`);
|
|
11944
11944
|
let n = e[2] || "";
|
|
@@ -12005,7 +12005,7 @@ function vv(t) {
|
|
|
12005
12005
|
}
|
|
12006
12006
|
class D_ {
|
|
12007
12007
|
constructor({ mode: e, allowedHostnames: n, allowedPhoneNrs: r, allowedMatches: i, forbiddenMatches: o, forbiddenWords: s, suppressLinks: a, suppressEmailAddresses: l, suppressPhoneNumbers: u, replacement: c }) {
|
|
12008
|
-
if (jr.oneOf(e, ["all", "otherOnly", "off"]), this.mode = e, this.suppressLinks = a !== !1, this.suppressEmailAddresses = l !== !1, this.suppressPhoneNumbers = u !== !1, this.allowedHostnames = n || [], this.allowedPhoneNrs = (r || []).filter((d) => d).map((d) => d.replace(/[^0-9]/g, "")), this.allowedMatches = (i || []).filter(cp).map((d) =>
|
|
12008
|
+
if (jr.oneOf(e, ["all", "otherOnly", "off"]), this.mode = e, this.suppressLinks = a !== !1, this.suppressEmailAddresses = l !== !1, this.suppressPhoneNumbers = u !== !1, this.allowedHostnames = n || [], this.allowedPhoneNrs = (r || []).filter((d) => d).map((d) => d.replace(/[^0-9]/g, "")), this.allowedMatches = (i || []).filter(cp).map((d) => gs(d)), this.forbiddenMatches = (o || []).filter(cp).map((d) => gs(d)), s) {
|
|
12009
12009
|
const d = s.split(`
|
|
12010
12010
|
`).map((h) => h.trim().toLowerCase()).filter((h) => h.length > 0 && !h.startsWith("#")).map((h) => v_(h));
|
|
12011
12011
|
d.length && this.forbiddenMatches.push(new RegExp(`\\b(${d.join("|")})\\b`, "gi"));
|
|
@@ -12085,24 +12085,24 @@ function ur(t, e) {
|
|
|
12085
12085
|
});
|
|
12086
12086
|
return n.every((r) => typeof r == "string") ? [n.join("")] : n;
|
|
12087
12087
|
}
|
|
12088
|
-
function
|
|
12088
|
+
function Mo(t) {
|
|
12089
12089
|
return t.normalize("NFKC").normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
12090
12090
|
}
|
|
12091
12091
|
function Qa(t, e, n = !1) {
|
|
12092
12092
|
if (!t || !e.length) return [t];
|
|
12093
|
-
const r =
|
|
12093
|
+
const r = Mo(t), i = t.toLowerCase() !== r, o = e.map((l) => Mo(l).trim()).filter((l) => l.length), s = (function(l) {
|
|
12094
12094
|
const u = l.map((d) => d.trim()).filter((d) => d).sort((d, h) => h.length - d.length);
|
|
12095
12095
|
if (u.length === 0) return Av;
|
|
12096
12096
|
const c = u.map(v_).join("|");
|
|
12097
12097
|
return new RegExp(c, "gi");
|
|
12098
|
-
})(o), a =
|
|
12098
|
+
})(o), a = Ks(r, n ? new RegExp(`(?<=^|\\s)(${s.source})`, s.flags) : s).map((l) => ({ offset: l.index, matchedText: l[0], index: l.index }));
|
|
12099
12099
|
return Wl(t, a, ({ index: l, matchedText: u }) => [y("mark", { className: "t-highlighted-text", children: i ? (function(c, d, h) {
|
|
12100
12100
|
let f = 0, p = 0;
|
|
12101
12101
|
for (; p < d && f < c.length; )
|
|
12102
|
-
p +=
|
|
12102
|
+
p += Mo(c[f]).length, f += 1;
|
|
12103
12103
|
let m = f;
|
|
12104
12104
|
for (; p < d + h && m < c.length; )
|
|
12105
|
-
p +=
|
|
12105
|
+
p += Mo(c[m]).length, m += 1;
|
|
12106
12106
|
return c.substring(f, m);
|
|
12107
12107
|
})(t, l, u.length) : t.slice(l, l + u.length) })]);
|
|
12108
12108
|
}
|
|
@@ -12119,7 +12119,7 @@ const Iv = (t, e) => {
|
|
|
12119
12119
|
case "link":
|
|
12120
12120
|
return [fe("a", { target: (function(r, i) {
|
|
12121
12121
|
for (const o of r) if (S_.test(o)) {
|
|
12122
|
-
if (
|
|
12122
|
+
if (gs(o).test(i)) return "_top";
|
|
12123
12123
|
} else if (_v(o, i)) return "_top";
|
|
12124
12124
|
return "_blank";
|
|
12125
12125
|
})(e.sameTabLinkRules, t.url), href: t.url, rel: "noreferrer" }, ...ur(n, e))];
|
|
@@ -12130,14 +12130,14 @@ const Iv = (t, e) => {
|
|
|
12130
12130
|
}
|
|
12131
12131
|
}, Cv = (t, e) => e.enableActions ? [fe(Tv, { type: t.type === "actionlink" ? "actionLink" : t.type === "actionbutton" ? "actionButton" : t.type, action: t.action, params: t.params, message: e.message }, ...ur(t.children, e))] : "children" in t && t.children.every((n) => typeof n == "string") ? [t.children.join("")] : [fe(De, null, ...ur(t.children, e))];
|
|
12132
12132
|
function Nv(t, e) {
|
|
12133
|
-
return
|
|
12133
|
+
return Xo(t, ou(e));
|
|
12134
12134
|
}
|
|
12135
|
-
function
|
|
12135
|
+
function Xo(t, e) {
|
|
12136
12136
|
return t.flatMap((n) => {
|
|
12137
12137
|
if (typeof n == "string") {
|
|
12138
12138
|
let r = [n];
|
|
12139
12139
|
return r = el(r, (i) => (function(o, s) {
|
|
12140
|
-
const { suppression: { forbiddenMatches: a, allowedMatches: l } } = s, u = Kc(a, (c) =>
|
|
12140
|
+
const { suppression: { forbiddenMatches: a, allowedMatches: l } } = s, u = Kc(a, (c) => Ks(o, c)).filter(([c]) => !l.some((d) => c.match(d) !== null)).map((c) => ({ offset: c.index, matchedText: c[0] }));
|
|
12141
12141
|
return Wl(o, u, () => [{ type: "suppressed", text: "CONTACT_INFORMATION_HIDDEN" }]);
|
|
12142
12142
|
})(i, e)), r = el(r, (i) => (function(o) {
|
|
12143
12143
|
return Wl(o, (function(s) {
|
|
@@ -12166,7 +12166,7 @@ function Wo(t, e) {
|
|
|
12166
12166
|
case "bulletList":
|
|
12167
12167
|
case "bulletpoint":
|
|
12168
12168
|
case "bulletPoint":
|
|
12169
|
-
return { type: n.type, children:
|
|
12169
|
+
return { type: n.type, children: Xo(n.children, e) };
|
|
12170
12170
|
case "codespan":
|
|
12171
12171
|
case "codeSpan":
|
|
12172
12172
|
case "codeblock":
|
|
@@ -12184,12 +12184,12 @@ function Wo(t, e) {
|
|
|
12184
12184
|
return i.contactInfo === "link" ? r : i.contactInfo === "suppress" ? up(r.url, i.suppression) ? r : { type: "suppressed", text: "CONTACT_INFORMATION_HIDDEN" } : r.text;
|
|
12185
12185
|
})(n, e);
|
|
12186
12186
|
case "link":
|
|
12187
|
-
return { type: "link", url: n.url, children:
|
|
12187
|
+
return { type: "link", url: n.url, children: Xo(n.children, e) };
|
|
12188
12188
|
case "actionlink":
|
|
12189
12189
|
case "actionLink":
|
|
12190
12190
|
case "actionbutton":
|
|
12191
12191
|
case "actionButton":
|
|
12192
|
-
return { type: n.type, action: n.action, params: n.params, children:
|
|
12192
|
+
return { type: n.type, action: n.action, params: n.params, children: Xo(n.children, e) };
|
|
12193
12193
|
}
|
|
12194
12194
|
});
|
|
12195
12195
|
}
|
|
@@ -12308,7 +12308,7 @@ function xv() {
|
|
|
12308
12308
|
function Fv() {
|
|
12309
12309
|
return mp || (mp = 1, Ep.exports = xv()()), Ep.exports;
|
|
12310
12310
|
}
|
|
12311
|
-
const Le =
|
|
12311
|
+
const Le = $s(Fv()), K = _t(function({ className: t, children: e, tabIndex: n, xmlns: r = "http://www.w3.org/2000/svg", preserveAspectRatio: i = "xMidYMid meet", ...o }, s) {
|
|
12312
12312
|
const { tabindex: a, ...l } = (function({ width: c, height: d, viewBox: h = `0 0 ${c} ${d}`, ...f } = {}) {
|
|
12313
12313
|
const { tabindex: p, ...m } = f, E = { ...Mv, ...m, width: c, height: d, viewBox: h };
|
|
12314
12314
|
return E["aria-label"] || E["aria-labelledby"] ? (E.role = "img", p != null && (E.focusable = "true", E.tabindex = p)) : E["aria-hidden"] = !0, E;
|
|
@@ -12743,9 +12743,9 @@ function L_(t, e) {
|
|
|
12743
12743
|
const n = (r = t.skins) == null ? void 0 : r.find((o) => o.tone === e);
|
|
12744
12744
|
return (i = n == null ? void 0 : n.unicode) != null ? i : t.unicode;
|
|
12745
12745
|
}
|
|
12746
|
-
const OD = ["🏻", "🏼", "🏽", "🏾", "🏿"], vD = ["top", "right", "bottom", "left"],
|
|
12746
|
+
const OD = ["🏻", "🏼", "🏽", "🏾", "🏿"], vD = ["top", "right", "bottom", "left"], Ss = Math.min, or = Math.max, Os = Math.round, Po = Math.floor, Xt = (t) => ({ x: t, y: t }), DD = { left: "right", right: "left", bottom: "top", top: "bottom" }, TD = { start: "end", end: "start" };
|
|
12747
12747
|
function Rp(t, e, n) {
|
|
12748
|
-
return or(t,
|
|
12748
|
+
return or(t, Ss(e, n));
|
|
12749
12749
|
}
|
|
12750
12750
|
function Eo(t, e) {
|
|
12751
12751
|
return typeof t == "function" ? t(e) : t;
|
|
@@ -12753,7 +12753,7 @@ function Eo(t, e) {
|
|
|
12753
12753
|
function dr(t) {
|
|
12754
12754
|
return t.split("-")[0];
|
|
12755
12755
|
}
|
|
12756
|
-
function
|
|
12756
|
+
function Zs(t) {
|
|
12757
12757
|
return t.split("-")[1];
|
|
12758
12758
|
}
|
|
12759
12759
|
function M_(t) {
|
|
@@ -12774,7 +12774,7 @@ function ic(t) {
|
|
|
12774
12774
|
}
|
|
12775
12775
|
const yp = ["left", "right"], Ip = ["right", "left"], yD = ["top", "bottom"], ID = ["bottom", "top"];
|
|
12776
12776
|
function CD(t, e, n, r) {
|
|
12777
|
-
const i =
|
|
12777
|
+
const i = Zs(t);
|
|
12778
12778
|
let o = (function(s, a, l) {
|
|
12779
12779
|
switch (s) {
|
|
12780
12780
|
case "top":
|
|
@@ -12789,10 +12789,10 @@ function CD(t, e, n, r) {
|
|
|
12789
12789
|
})(dr(t), n === "start", r);
|
|
12790
12790
|
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(ic)))), o;
|
|
12791
12791
|
}
|
|
12792
|
-
function
|
|
12792
|
+
function xo(t) {
|
|
12793
12793
|
return t.replace(/left|right|bottom|top/g, (e) => DD[e]);
|
|
12794
12794
|
}
|
|
12795
|
-
function
|
|
12795
|
+
function vs(t) {
|
|
12796
12796
|
const { x: e, y: n, width: r, height: i } = t;
|
|
12797
12797
|
return { width: r, height: i, top: n, left: e, right: e + r, bottom: n + i, x: e, y: n };
|
|
12798
12798
|
}
|
|
@@ -12816,7 +12816,7 @@ function Cp(t, e, n) {
|
|
|
12816
12816
|
default:
|
|
12817
12817
|
f = { x: r.x, y: r.y };
|
|
12818
12818
|
}
|
|
12819
|
-
switch (
|
|
12819
|
+
switch (Zs(e)) {
|
|
12820
12820
|
case "start":
|
|
12821
12821
|
f[s] -= h * (n && u ? -1 : 1);
|
|
12822
12822
|
break;
|
|
@@ -12825,14 +12825,14 @@ function Cp(t, e, n) {
|
|
|
12825
12825
|
}
|
|
12826
12826
|
return f;
|
|
12827
12827
|
}
|
|
12828
|
-
async function
|
|
12828
|
+
async function Ds(t, e) {
|
|
12829
12829
|
var n;
|
|
12830
12830
|
e === void 0 && (e = {});
|
|
12831
12831
|
const { x: r, y: i, platform: o, rects: s, elements: a, strategy: l } = t, { boundary: u = "clippingAncestors", rootBoundary: c = "viewport", elementContext: d = "floating", altBoundary: h = !1, padding: f = 0 } = Eo(e, t), p = (function(v) {
|
|
12832
12832
|
return typeof v != "number" ? (function(T) {
|
|
12833
12833
|
return { top: 0, right: 0, bottom: 0, left: 0, ...T };
|
|
12834
12834
|
})(v) : { top: v, right: v, bottom: v, left: v };
|
|
12835
|
-
})(f), m = a[h ? d === "floating" ? "reference" : "floating" : d], E =
|
|
12835
|
+
})(f), m = a[h ? d === "floating" ? "reference" : "floating" : d], E = vs(await o.getClippingRect({ element: (n = await (o.isElement == null ? void 0 : o.isElement(m))) == null || n ? m : m.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)), boundary: u, rootBoundary: c, strategy: l })), _ = d === "floating" ? { x: r, y: i, width: s.floating.width, height: s.floating.height } : s.reference, A = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), O = await (o.isElement == null ? void 0 : o.isElement(A)) && await (o.getScale == null ? void 0 : o.getScale(A)) || { x: 1, y: 1 }, S = vs(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({ elements: a, rect: _, offsetParent: A, strategy: l }) : _);
|
|
12836
12836
|
return { top: (E.top - S.top + p.top) / O.y, bottom: (S.bottom - E.bottom + p.bottom) / O.y, left: (E.left - S.left + p.left) / O.x, right: (S.right - E.right + p.right) / O.x };
|
|
12837
12837
|
}
|
|
12838
12838
|
function Np(t, e) {
|
|
@@ -12842,7 +12842,7 @@ function bp(t) {
|
|
|
12842
12842
|
return vD.some((e) => t[e] >= 0);
|
|
12843
12843
|
}
|
|
12844
12844
|
const ND = /* @__PURE__ */ new Set(["left", "top"]);
|
|
12845
|
-
function
|
|
12845
|
+
function Qs() {
|
|
12846
12846
|
return typeof window != "undefined";
|
|
12847
12847
|
}
|
|
12848
12848
|
function ti(t) {
|
|
@@ -12857,16 +12857,16 @@ function Kt(t) {
|
|
|
12857
12857
|
return (e = (lu(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
12858
12858
|
}
|
|
12859
12859
|
function lu(t) {
|
|
12860
|
-
return !!
|
|
12860
|
+
return !!Qs() && (t instanceof Node || t instanceof Tt(t).Node);
|
|
12861
12861
|
}
|
|
12862
12862
|
function xt(t) {
|
|
12863
|
-
return !!
|
|
12863
|
+
return !!Qs() && (t instanceof Element || t instanceof Tt(t).Element);
|
|
12864
12864
|
}
|
|
12865
12865
|
function Jt(t) {
|
|
12866
|
-
return !!
|
|
12866
|
+
return !!Qs() && (t instanceof HTMLElement || t instanceof Tt(t).HTMLElement);
|
|
12867
12867
|
}
|
|
12868
12868
|
function oc(t) {
|
|
12869
|
-
return !(!
|
|
12869
|
+
return !(!Qs() || typeof ShadowRoot == "undefined") && (t instanceof ShadowRoot || t instanceof Tt(t).ShadowRoot);
|
|
12870
12870
|
}
|
|
12871
12871
|
const bD = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
12872
12872
|
function Ji(t) {
|
|
@@ -12878,7 +12878,7 @@ function kD(t) {
|
|
|
12878
12878
|
return wD.has(ti(t));
|
|
12879
12879
|
}
|
|
12880
12880
|
const LD = [":popover-open", ":modal"];
|
|
12881
|
-
function
|
|
12881
|
+
function Ts(t) {
|
|
12882
12882
|
return LD.some((e) => {
|
|
12883
12883
|
try {
|
|
12884
12884
|
return t.matches(e);
|
|
@@ -12902,7 +12902,7 @@ function $r(t) {
|
|
|
12902
12902
|
function Ft(t) {
|
|
12903
12903
|
return Tt(t).getComputedStyle(t);
|
|
12904
12904
|
}
|
|
12905
|
-
function
|
|
12905
|
+
function ea(t) {
|
|
12906
12906
|
return xt(t) ? { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop } : { scrollLeft: t.scrollX, scrollTop: t.scrollY };
|
|
12907
12907
|
}
|
|
12908
12908
|
function bn(t) {
|
|
@@ -12930,7 +12930,7 @@ function ac(t) {
|
|
|
12930
12930
|
function H_(t) {
|
|
12931
12931
|
const e = Ft(t);
|
|
12932
12932
|
let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
|
|
12933
|
-
const i = Jt(t), o = i ? t.offsetWidth : n, s = i ? t.offsetHeight : r, a =
|
|
12933
|
+
const i = Jt(t), o = i ? t.offsetWidth : n, s = i ? t.offsetHeight : r, a = Os(n) !== o || Os(r) !== s;
|
|
12934
12934
|
return a && (n = o, r = s), { width: n, height: r, $: a };
|
|
12935
12935
|
}
|
|
12936
12936
|
function uu(t) {
|
|
@@ -12940,7 +12940,7 @@ function Vr(t) {
|
|
|
12940
12940
|
const e = uu(t);
|
|
12941
12941
|
if (!Jt(e)) return Xt(1);
|
|
12942
12942
|
const n = e.getBoundingClientRect(), { width: r, height: i, $: o } = H_(e);
|
|
12943
|
-
let s = (o ?
|
|
12943
|
+
let s = (o ? Os(n.width) : n.width) / r, a = (o ? Os(n.height) : n.height) / i;
|
|
12944
12944
|
return s && Number.isFinite(s) || (s = 1), a && Number.isFinite(a) || (a = 1), { x: s, y: a };
|
|
12945
12945
|
}
|
|
12946
12946
|
const HD = Xt(0);
|
|
@@ -12965,15 +12965,15 @@ function hr(t, e, n, r) {
|
|
|
12965
12965
|
l *= E.x, u *= E.y, c *= E.x, d *= E.y, l += O, u += S, p = Tt(m), m = ac(p);
|
|
12966
12966
|
}
|
|
12967
12967
|
}
|
|
12968
|
-
return
|
|
12968
|
+
return vs({ width: c, height: d, x: l, y: u });
|
|
12969
12969
|
}
|
|
12970
|
-
function
|
|
12971
|
-
const n =
|
|
12970
|
+
function Rs(t, e) {
|
|
12971
|
+
const n = ea(t).scrollLeft;
|
|
12972
12972
|
return e ? e.left + n : hr(Kt(t)).left + n;
|
|
12973
12973
|
}
|
|
12974
12974
|
function B_(t, e) {
|
|
12975
12975
|
const n = t.getBoundingClientRect();
|
|
12976
|
-
return { x: n.left + e.scrollLeft -
|
|
12976
|
+
return { x: n.left + e.scrollLeft - Rs(t, n), y: n.top + e.scrollTop };
|
|
12977
12977
|
}
|
|
12978
12978
|
const UD = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
12979
12979
|
function wp(t, e, n) {
|
|
@@ -12986,7 +12986,7 @@ function wp(t, e, n) {
|
|
|
12986
12986
|
const p = cu();
|
|
12987
12987
|
(!p || p && o === "fixed") && (d = l.offsetLeft, h = l.offsetTop);
|
|
12988
12988
|
}
|
|
12989
|
-
const f =
|
|
12989
|
+
const f = Rs(a);
|
|
12990
12990
|
if (f <= 0) {
|
|
12991
12991
|
const p = a.ownerDocument, m = p.body, E = getComputedStyle(m), _ = p.compatMode === "CSS1Compat" && parseFloat(E.marginLeft) + parseFloat(E.marginRight) || 0, A = Math.abs(a.clientWidth - m.clientWidth - _);
|
|
12992
12992
|
A <= 25 && (u -= A);
|
|
@@ -12994,8 +12994,8 @@ function wp(t, e, n) {
|
|
|
12994
12994
|
return { width: u, height: c, x: d, y: h };
|
|
12995
12995
|
})(t, n);
|
|
12996
12996
|
else if (e === "document") r = (function(i) {
|
|
12997
|
-
const o = Kt(i), s =
|
|
12998
|
-
let c = -s.scrollLeft +
|
|
12997
|
+
const o = Kt(i), s = ea(i), a = i.ownerDocument.body, l = or(o.scrollWidth, o.clientWidth, a.scrollWidth, a.clientWidth), u = or(o.scrollHeight, o.clientHeight, a.scrollHeight, a.clientHeight);
|
|
12998
|
+
let c = -s.scrollLeft + Rs(i);
|
|
12999
12999
|
const d = -s.scrollTop;
|
|
13000
13000
|
return Ft(a).direction === "rtl" && (c += or(o.clientWidth, a.clientWidth) - l), { width: l, height: u, x: c, y: d };
|
|
13001
13001
|
})(Kt(t));
|
|
@@ -13007,7 +13007,7 @@ function wp(t, e, n) {
|
|
|
13007
13007
|
const i = U_(t);
|
|
13008
13008
|
r = { x: e.x - i.x, y: e.y - i.y, width: e.width, height: e.height };
|
|
13009
13009
|
}
|
|
13010
|
-
return
|
|
13010
|
+
return vs(r);
|
|
13011
13011
|
}
|
|
13012
13012
|
function j_(t, e) {
|
|
13013
13013
|
const n = bn(t);
|
|
@@ -13018,9 +13018,9 @@ function BD(t, e, n) {
|
|
|
13018
13018
|
let a = { scrollLeft: 0, scrollTop: 0 };
|
|
13019
13019
|
const l = Xt(0);
|
|
13020
13020
|
function u() {
|
|
13021
|
-
l.x =
|
|
13021
|
+
l.x = Rs(i);
|
|
13022
13022
|
}
|
|
13023
|
-
if (r || !r && !o) if ((ti(e) !== "body" || Ji(i)) && (a =
|
|
13023
|
+
if (r || !r && !o) if ((ti(e) !== "body" || Ji(i)) && (a = ea(e)), r) {
|
|
13024
13024
|
const d = hr(e, !0, o, e);
|
|
13025
13025
|
l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
|
|
13026
13026
|
} else i && u();
|
|
@@ -13039,7 +13039,7 @@ function kp(t, e) {
|
|
|
13039
13039
|
}
|
|
13040
13040
|
function Lp(t, e) {
|
|
13041
13041
|
const n = Tt(t);
|
|
13042
|
-
if (
|
|
13042
|
+
if (Ts(t)) return n;
|
|
13043
13043
|
if (!Jt(t)) {
|
|
13044
13044
|
let i = bn(t);
|
|
13045
13045
|
for (; i && !$r(i); ) {
|
|
@@ -13054,7 +13054,7 @@ function Lp(t, e) {
|
|
|
13054
13054
|
let o = bn(i);
|
|
13055
13055
|
for (; Jt(o) && !$r(o); ) {
|
|
13056
13056
|
if (sc(o)) return o;
|
|
13057
|
-
if (
|
|
13057
|
+
if (Ts(o)) return null;
|
|
13058
13058
|
o = bn(o);
|
|
13059
13059
|
}
|
|
13060
13060
|
return null;
|
|
@@ -13062,11 +13062,11 @@ function Lp(t, e) {
|
|
|
13062
13062
|
}
|
|
13063
13063
|
const jD = { convertOffsetParentRelativeRectToViewportRelativeRect: function(t) {
|
|
13064
13064
|
let { elements: e, rect: n, offsetParent: r, strategy: i } = t;
|
|
13065
|
-
const o = i === "fixed", s = Kt(r), a = !!e &&
|
|
13065
|
+
const o = i === "fixed", s = Kt(r), a = !!e && Ts(e.floating);
|
|
13066
13066
|
if (r === s || a && o) return n;
|
|
13067
13067
|
let l = { scrollLeft: 0, scrollTop: 0 }, u = Xt(1);
|
|
13068
13068
|
const c = Xt(0), d = Jt(r);
|
|
13069
|
-
if ((d || !d && !o) && ((ti(r) !== "body" || Ji(s)) && (l =
|
|
13069
|
+
if ((d || !d && !o) && ((ti(r) !== "body" || Ji(s)) && (l = ea(r)), Jt(r))) {
|
|
13070
13070
|
const f = hr(r);
|
|
13071
13071
|
u = Vr(r), c.x = f.x + r.clientLeft, c.y = f.y + r.clientTop;
|
|
13072
13072
|
}
|
|
@@ -13074,7 +13074,7 @@ const jD = { convertOffsetParentRelativeRectToViewportRelativeRect: function(t)
|
|
|
13074
13074
|
return { width: n.width * u.x, height: n.height * u.y, x: n.x * u.x - l.scrollLeft * u.x + c.x + h.x, y: n.y * u.y - l.scrollTop * u.y + c.y + h.y };
|
|
13075
13075
|
}, getDocumentElement: Kt, getClippingRect: function(t) {
|
|
13076
13076
|
let { element: e, boundary: n, rootBoundary: r, strategy: i } = t;
|
|
13077
|
-
const o = n === "clippingAncestors" ?
|
|
13077
|
+
const o = n === "clippingAncestors" ? Ts(e) ? [] : (function(u, c) {
|
|
13078
13078
|
const d = c.get(u);
|
|
13079
13079
|
if (d) return d;
|
|
13080
13080
|
let h = Zi(u, [], !1).filter((E) => xt(E) && ti(E) !== "body"), f = null;
|
|
@@ -13087,7 +13087,7 @@ const jD = { convertOffsetParentRelativeRectToViewportRelativeRect: function(t)
|
|
|
13087
13087
|
return c.set(u, h), h;
|
|
13088
13088
|
})(e, this._c) : [].concat(n), s = [...o, r], a = s[0], l = s.reduce((u, c) => {
|
|
13089
13089
|
const d = wp(e, c, i);
|
|
13090
|
-
return u.top = or(d.top, u.top), u.right =
|
|
13090
|
+
return u.top = or(d.top, u.top), u.right = Ss(d.right, u.right), u.bottom = Ss(d.bottom, u.bottom), u.left = or(d.left, u.left), u;
|
|
13091
13091
|
}, wp(e, a, i));
|
|
13092
13092
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
13093
13093
|
}, getOffsetParent: Lp, getElementRects: async function(t) {
|
|
@@ -13121,7 +13121,7 @@ function $_(t, e, n, r) {
|
|
|
13121
13121
|
R === void 0 && (R = !1), I === void 0 && (I = 1), v();
|
|
13122
13122
|
const g = E.getBoundingClientRect(), { left: D, top: C, width: N, height: k } = g;
|
|
13123
13123
|
if (R || _(), !N || !k) return;
|
|
13124
|
-
const b = { rootMargin: -
|
|
13124
|
+
const b = { rootMargin: -Po(C) + "px " + -Po(S.clientWidth - (D + N)) + "px " + -Po(S.clientHeight - (C + k)) + "px " + -Po(D) + "px", threshold: or(0, Ss(1, I)) || 1 };
|
|
13125
13125
|
let L = !0;
|
|
13126
13126
|
function x(P) {
|
|
13127
13127
|
const B = P[0].intersectionRatio;
|
|
@@ -13164,7 +13164,7 @@ const $D = function(t) {
|
|
|
13164
13164
|
return t === void 0 && (t = 0), { name: "offset", options: t, async fn(e) {
|
|
13165
13165
|
var n, r;
|
|
13166
13166
|
const { x: i, y: o, placement: s, middlewareData: a } = e, l = await (async function(u, c) {
|
|
13167
|
-
const { placement: d, platform: h, elements: f } = u, p = await (h.isRTL == null ? void 0 : h.isRTL(f.floating)), m = dr(d), E =
|
|
13167
|
+
const { placement: d, platform: h, elements: f } = u, p = await (h.isRTL == null ? void 0 : h.isRTL(f.floating)), m = dr(d), E = Zs(d), _ = Nn(d) === "y", A = ND.has(m) ? -1 : 1, O = p && _ ? -1 : 1, S = Eo(c, u);
|
|
13168
13168
|
let { mainAxis: v, crossAxis: T, alignmentAxis: R } = typeof S == "number" ? { mainAxis: S, crossAxis: 0, alignmentAxis: null } : { mainAxis: S.mainAxis || 0, crossAxis: S.crossAxis || 0, alignmentAxis: S.alignmentAxis };
|
|
13169
13169
|
return E && typeof R == "number" && (T = E === "end" ? -1 * R : R), _ ? { x: T * O, y: v * A } : { x: v * A, y: T * O };
|
|
13170
13170
|
})(e, t);
|
|
@@ -13175,7 +13175,7 @@ const $D = function(t) {
|
|
|
13175
13175
|
const { x: n, y: r, placement: i } = e, { mainAxis: o = !0, crossAxis: s = !1, limiter: a = { fn: (E) => {
|
|
13176
13176
|
let { x: _, y: A } = E;
|
|
13177
13177
|
return { x: _, y: A };
|
|
13178
|
-
} }, ...l } = Eo(t, e), u = { x: n, y: r }, c = await
|
|
13178
|
+
} }, ...l } = Eo(t, e), u = { x: n, y: r }, c = await Ds(e, l), d = Nn(dr(i)), h = M_(d);
|
|
13179
13179
|
let f = u[h], p = u[d];
|
|
13180
13180
|
if (o) {
|
|
13181
13181
|
const E = h === "y" ? "bottom" : "right";
|
|
@@ -13193,19 +13193,19 @@ const $D = function(t) {
|
|
|
13193
13193
|
var n, r;
|
|
13194
13194
|
const { placement: i, middlewareData: o, rects: s, initialPlacement: a, platform: l, elements: u } = e, { mainAxis: c = !0, crossAxis: d = !0, fallbackPlacements: h, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...E } = Eo(t, e);
|
|
13195
13195
|
if ((n = o.arrow) != null && n.alignmentOffset) return {};
|
|
13196
|
-
const _ = dr(i), A = Nn(a), O = dr(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), v = h || (O || !m ? [
|
|
13197
|
-
const L =
|
|
13196
|
+
const _ = dr(i), A = Nn(a), O = dr(a) === a, S = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), v = h || (O || !m ? [xo(a)] : (function(b) {
|
|
13197
|
+
const L = xo(b);
|
|
13198
13198
|
return [ic(b), L, ic(L)];
|
|
13199
13199
|
})(a)), T = p !== "none";
|
|
13200
13200
|
!h && T && v.push(...CD(a, m, p, S));
|
|
13201
|
-
const R = [a, ...v], I = await
|
|
13201
|
+
const R = [a, ...v], I = await Ds(e, E), g = [];
|
|
13202
13202
|
let D = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
13203
13203
|
if (c && g.push(I[_]), d) {
|
|
13204
13204
|
const b = (function(L, x, P) {
|
|
13205
13205
|
P === void 0 && (P = !1);
|
|
13206
|
-
const B =
|
|
13206
|
+
const B = Zs(L), V = x_(L), $ = P_(V);
|
|
13207
13207
|
let z = V === "x" ? B === (P ? "end" : "start") ? "right" : "left" : B === "start" ? "bottom" : "top";
|
|
13208
|
-
return x.reference[$] > x.floating[$] && (z =
|
|
13208
|
+
return x.reference[$] > x.floating[$] && (z = xo(z)), [z, xo(z)];
|
|
13209
13209
|
})(i, s, S);
|
|
13210
13210
|
g.push(I[b[0]], I[b[1]]);
|
|
13211
13211
|
}
|
|
@@ -13240,11 +13240,11 @@ const $D = function(t) {
|
|
|
13240
13240
|
const { rects: n } = e, { strategy: r = "referenceHidden", ...i } = Eo(t, e);
|
|
13241
13241
|
switch (r) {
|
|
13242
13242
|
case "referenceHidden": {
|
|
13243
|
-
const o = Np(await
|
|
13243
|
+
const o = Np(await Ds(e, { ...i, elementContext: "reference" }), n.reference);
|
|
13244
13244
|
return { data: { referenceHiddenOffsets: o, referenceHidden: bp(o) } };
|
|
13245
13245
|
}
|
|
13246
13246
|
case "escaped": {
|
|
13247
|
-
const o = Np(await
|
|
13247
|
+
const o = Np(await Ds(e, { ...i, altBoundary: !0 }), n.floating);
|
|
13248
13248
|
return { data: { escapedOffsets: o, escaped: bp(o) } };
|
|
13249
13249
|
}
|
|
13250
13250
|
default:
|
|
@@ -13263,9 +13263,9 @@ const $D = function(t) {
|
|
|
13263
13263
|
return { x: E, y: _, placement: A, strategy: c, middlewareData: O };
|
|
13264
13264
|
})(t, e, { ...i, platform: o });
|
|
13265
13265
|
};
|
|
13266
|
-
var
|
|
13266
|
+
var Ko = typeof document != "undefined" ? Xe : function() {
|
|
13267
13267
|
};
|
|
13268
|
-
function
|
|
13268
|
+
function ys(t, e) {
|
|
13269
13269
|
if (t === e) return !0;
|
|
13270
13270
|
if (typeof t != typeof e) return !1;
|
|
13271
13271
|
if (typeof t == "function" && t.toString() === e.toString()) return !0;
|
|
@@ -13273,14 +13273,14 @@ function Rs(t, e) {
|
|
|
13273
13273
|
if (t && e && typeof t == "object") {
|
|
13274
13274
|
if (Array.isArray(t)) {
|
|
13275
13275
|
if (n = t.length, n !== e.length) return !1;
|
|
13276
|
-
for (r = n; r-- !== 0; ) if (!
|
|
13276
|
+
for (r = n; r-- !== 0; ) if (!ys(t[r], e[r])) return !1;
|
|
13277
13277
|
return !0;
|
|
13278
13278
|
}
|
|
13279
13279
|
if (i = Object.keys(t), n = i.length, n !== Object.keys(e).length) return !1;
|
|
13280
13280
|
for (r = n; r-- !== 0; ) if (!{}.hasOwnProperty.call(e, i[r])) return !1;
|
|
13281
13281
|
for (r = n; r-- !== 0; ) {
|
|
13282
13282
|
const o = i[r];
|
|
13283
|
-
if ((o !== "_owner" || !t.$$typeof) && !
|
|
13283
|
+
if ((o !== "_owner" || !t.$$typeof) && !ys(t[o], e[o])) return !1;
|
|
13284
13284
|
}
|
|
13285
13285
|
return !0;
|
|
13286
13286
|
}
|
|
@@ -13295,14 +13295,14 @@ function Pp(t, e) {
|
|
|
13295
13295
|
}
|
|
13296
13296
|
function sl(t) {
|
|
13297
13297
|
const e = X(t);
|
|
13298
|
-
return
|
|
13298
|
+
return Ko(() => {
|
|
13299
13299
|
e.current = t;
|
|
13300
13300
|
}), e;
|
|
13301
13301
|
}
|
|
13302
13302
|
function z_(t) {
|
|
13303
13303
|
t === void 0 && (t = {});
|
|
13304
13304
|
const { placement: e = "bottom", strategy: n = "absolute", middleware: r = [], platform: i, elements: { reference: o, floating: s } = {}, transform: a = !0, whileElementsMounted: l, open: u } = t, [c, d] = ne({ x: 0, y: 0, strategy: n, placement: e, middlewareData: {}, isPositioned: !1 }), [h, f] = ne(r);
|
|
13305
|
-
|
|
13305
|
+
ys(h, r) || f(r);
|
|
13306
13306
|
const [p, m] = ne(null), [E, _] = ne(null), A = q((B) => {
|
|
13307
13307
|
B !== T.current && (T.current = B, m(B));
|
|
13308
13308
|
}, []), O = q((B) => {
|
|
@@ -13312,18 +13312,18 @@ function z_(t) {
|
|
|
13312
13312
|
const B = { placement: e, strategy: n, middleware: h };
|
|
13313
13313
|
C.current && (B.platform = C.current), GD(T.current, R.current, B).then((V) => {
|
|
13314
13314
|
const $ = { ...V, isPositioned: N.current !== !1 };
|
|
13315
|
-
b.current && !
|
|
13315
|
+
b.current && !ys(I.current, $) && (I.current = $, Ms(() => {
|
|
13316
13316
|
d($);
|
|
13317
13317
|
}));
|
|
13318
13318
|
});
|
|
13319
13319
|
}, [h, e, n, C, N]);
|
|
13320
|
-
|
|
13320
|
+
Ko(() => {
|
|
13321
13321
|
u === !1 && I.current.isPositioned && (I.current.isPositioned = !1, d((B) => ({ ...B, isPositioned: !1 })));
|
|
13322
13322
|
}, [u]);
|
|
13323
13323
|
const b = X(!1);
|
|
13324
|
-
|
|
13324
|
+
Ko(() => (b.current = !0, () => {
|
|
13325
13325
|
b.current = !1;
|
|
13326
|
-
}), []),
|
|
13326
|
+
}), []), Ko(() => {
|
|
13327
13327
|
if (S && (T.current = S), v && (R.current = v), S && v) {
|
|
13328
13328
|
if (D.current) return D.current(S, v, k);
|
|
13329
13329
|
k();
|
|
@@ -13338,8 +13338,8 @@ function z_(t) {
|
|
|
13338
13338
|
return te(() => ({ ...c, update: k, refs: L, elements: x, floatingStyles: P }), [c, k, L, x, P]);
|
|
13339
13339
|
}
|
|
13340
13340
|
const WD = (t, e) => ({ ...VD(t), options: [t, e] }), Y_ = (t, e) => ({ ...zD(t), options: [t, e] }), XD = (t, e) => ({ ...YD(t), options: [t, e] });
|
|
13341
|
-
var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"],
|
|
13342
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
13341
|
+
var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Is = G_.join(","), W_ = typeof Element == "undefined", pr = W_ ? function() {
|
|
13342
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, qo = !W_ && Element.prototype.getRootNode ? function(t) {
|
|
13343
13343
|
var e;
|
|
13344
13344
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
13345
13345
|
} : function(t) {
|
|
@@ -13351,19 +13351,19 @@ var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
13351
13351
|
return r === "" || r === "true" || e && t && Qi(t.parentNode);
|
|
13352
13352
|
}, X_ = function(t, e, n) {
|
|
13353
13353
|
if (Qi(t)) return [];
|
|
13354
|
-
var r = Array.prototype.slice.apply(t.querySelectorAll(
|
|
13355
|
-
return e && pr.call(t,
|
|
13356
|
-
},
|
|
13354
|
+
var r = Array.prototype.slice.apply(t.querySelectorAll(Is));
|
|
13355
|
+
return e && pr.call(t, Is) && r.unshift(t), r = r.filter(n);
|
|
13356
|
+
}, Cs = function(t, e, n) {
|
|
13357
13357
|
for (var r = [], i = Array.from(t); i.length; ) {
|
|
13358
13358
|
var o = i.shift();
|
|
13359
13359
|
if (!Qi(o, !1)) if (o.tagName === "SLOT") {
|
|
13360
|
-
var s = o.assignedElements(), a = s.length ? s : o.children, l =
|
|
13360
|
+
var s = o.assignedElements(), a = s.length ? s : o.children, l = Cs(a, !0, n);
|
|
13361
13361
|
n.flatten ? r.push.apply(r, l) : r.push({ scopeParent: o, candidates: l });
|
|
13362
13362
|
} else {
|
|
13363
|
-
pr.call(o,
|
|
13363
|
+
pr.call(o, Is) && n.filter(o) && (e || !t.includes(o)) && r.push(o);
|
|
13364
13364
|
var u = o.shadowRoot || typeof n.getShadowRoot == "function" && n.getShadowRoot(o), c = !Qi(u, !1) && (!n.shadowRootFilter || n.shadowRootFilter(o));
|
|
13365
13365
|
if (u && c) {
|
|
13366
|
-
var d =
|
|
13366
|
+
var d = Cs(u === !0 ? o.children : u.children, !0, n);
|
|
13367
13367
|
n.flatten ? r.push.apply(r, d) : r.push({ scopeParent: o, candidates: d });
|
|
13368
13368
|
} else i.unshift.apply(i, o.children);
|
|
13369
13369
|
}
|
|
@@ -13386,7 +13386,7 @@ var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
13386
13386
|
return q_(e) && e.type === "radio";
|
|
13387
13387
|
})(t) && !(function(e) {
|
|
13388
13388
|
if (!e.name) return !0;
|
|
13389
|
-
var n, r = e.form ||
|
|
13389
|
+
var n, r = e.form || qo(e), i = function(s) {
|
|
13390
13390
|
return r.querySelectorAll('input[type="radio"][name="' + s + '"]');
|
|
13391
13391
|
};
|
|
13392
13392
|
if (typeof window != "undefined" && window.CSS !== void 0 && typeof window.CSS.escape == "function") n = i(window.CSS.escape(e.name));
|
|
@@ -13414,24 +13414,24 @@ var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
13414
13414
|
} else {
|
|
13415
13415
|
if (typeof r == "function") {
|
|
13416
13416
|
for (var o = t; t; ) {
|
|
13417
|
-
var s = t.parentElement, a =
|
|
13417
|
+
var s = t.parentElement, a = qo(t);
|
|
13418
13418
|
if (s && !s.shadowRoot && r(s) === !0) return xp(t);
|
|
13419
13419
|
t = t.assignedSlot ? t.assignedSlot : s || a === t.ownerDocument ? s : a.host;
|
|
13420
13420
|
}
|
|
13421
13421
|
t = o;
|
|
13422
13422
|
}
|
|
13423
13423
|
if ((function(l) {
|
|
13424
|
-
var u, c, d, h, f = l &&
|
|
13424
|
+
var u, c, d, h, f = l && qo(l), p = (u = f) === null || u === void 0 ? void 0 : u.host, m = !1;
|
|
13425
13425
|
if (f && f !== l) for (m = !!((c = p) !== null && c !== void 0 && (d = c.ownerDocument) !== null && d !== void 0 && d.contains(p) || l != null && (h = l.ownerDocument) !== null && h !== void 0 && h.contains(l)); !m && p; ) {
|
|
13426
13426
|
var E, _, A;
|
|
13427
|
-
m = !((_ = p = (E = f =
|
|
13427
|
+
m = !((_ = p = (E = f = qo(p)) === null || E === void 0 ? void 0 : E.host) === null || _ === void 0 || (A = _.ownerDocument) === null || A === void 0 || !A.contains(p));
|
|
13428
13428
|
}
|
|
13429
13429
|
return m;
|
|
13430
13430
|
})(t)) return !t.getClientRects().length;
|
|
13431
13431
|
if (n !== "legacy-full") return !0;
|
|
13432
13432
|
}
|
|
13433
13433
|
return !1;
|
|
13434
|
-
},
|
|
13434
|
+
}, Ns = function(t, e) {
|
|
13435
13435
|
return !(e.disabled || Qi(e) || (function(n) {
|
|
13436
13436
|
return q_(n) && n.type === "hidden";
|
|
13437
13437
|
})(e) || JD(e, t) || (function(n) {
|
|
@@ -13452,7 +13452,7 @@ var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
13452
13452
|
return !1;
|
|
13453
13453
|
})(e));
|
|
13454
13454
|
}, lc = function(t, e) {
|
|
13455
|
-
return !(qD(e) || Rn(e) < 0 || !
|
|
13455
|
+
return !(qD(e) || Rn(e) < 0 || !Ns(t, e));
|
|
13456
13456
|
}, ZD = function(t) {
|
|
13457
13457
|
var e = parseInt(t.getAttribute("tabindex"), 10);
|
|
13458
13458
|
return !!(isNaN(e) || e >= 0);
|
|
@@ -13467,19 +13467,19 @@ var G_ = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
13467
13467
|
}), n.sort(KD).reduce(function(r, i) {
|
|
13468
13468
|
return i.isScope ? r.push.apply(r, i.content) : r.push(i.content), r;
|
|
13469
13469
|
}, []).concat(e);
|
|
13470
|
-
},
|
|
13470
|
+
}, ta = function(t, e) {
|
|
13471
13471
|
var n;
|
|
13472
|
-
return n = (e = e || {}).getShadowRoot ?
|
|
13472
|
+
return n = (e = e || {}).getShadowRoot ? Cs([t], e.includeContainer, { filter: lc.bind(null, e), flatten: !1, getShadowRoot: e.getShadowRoot, shadowRootFilter: ZD }) : X_(t, e.includeContainer, lc.bind(null, e)), J_(n);
|
|
13473
13473
|
}, du = function(t, e) {
|
|
13474
|
-
return (e = e || {}).getShadowRoot ?
|
|
13474
|
+
return (e = e || {}).getShadowRoot ? Cs([t], e.includeContainer, { filter: Ns.bind(null, e), flatten: !0, getShadowRoot: e.getShadowRoot }) : X_(t, e.includeContainer, Ns.bind(null, e));
|
|
13475
13475
|
}, Yn = function(t, e) {
|
|
13476
13476
|
if (e = e || {}, !t) throw new Error("No node provided");
|
|
13477
|
-
return pr.call(t,
|
|
13478
|
-
}, QD = G_.concat("iframe").join(","),
|
|
13477
|
+
return pr.call(t, Is) !== !1 && lc(e, t);
|
|
13478
|
+
}, QD = G_.concat("iframe").join(","), Jo = function(t, e) {
|
|
13479
13479
|
if (e = e || {}, !t) throw new Error("No node provided");
|
|
13480
|
-
return pr.call(t, QD) !== !1 &&
|
|
13480
|
+
return pr.call(t, QD) !== !1 && Ns(e, t);
|
|
13481
13481
|
};
|
|
13482
|
-
const eT = Object.freeze(Object.defineProperty({ __proto__: null, focusable: du, getTabIndex: Rn, isFocusable:
|
|
13482
|
+
const eT = Object.freeze(Object.defineProperty({ __proto__: null, focusable: du, getTabIndex: Rn, isFocusable: Jo, isTabbable: Yn, tabbable: ta }, Symbol.toStringTag, { value: "Module" }));
|
|
13483
13483
|
function cc(t) {
|
|
13484
13484
|
return (t == null ? void 0 : t.ownerDocument) || document;
|
|
13485
13485
|
}
|
|
@@ -13487,7 +13487,7 @@ var Li = typeof document != "undefined" ? Xe : function() {
|
|
|
13487
13487
|
};
|
|
13488
13488
|
const Z_ = () => ({ getShadowRoot: !0, displayCheck: typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none" });
|
|
13489
13489
|
function Fp(t, e) {
|
|
13490
|
-
const n =
|
|
13490
|
+
const n = ta(t, Z_()), r = n.length;
|
|
13491
13491
|
if (r === 0) return;
|
|
13492
13492
|
const i = (function(s) {
|
|
13493
13493
|
let a = s.activeElement;
|
|
@@ -13516,7 +13516,7 @@ function al(t, e) {
|
|
|
13516
13516
|
})(n, r);
|
|
13517
13517
|
}
|
|
13518
13518
|
function tT(t) {
|
|
13519
|
-
|
|
13519
|
+
ta(t, Z_()).forEach((e) => {
|
|
13520
13520
|
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
13521
13521
|
});
|
|
13522
13522
|
}
|
|
@@ -13599,7 +13599,7 @@ function oT(t) {
|
|
|
13599
13599
|
} })] });
|
|
13600
13600
|
}
|
|
13601
13601
|
const sT = () => Fn(tA);
|
|
13602
|
-
var
|
|
13602
|
+
var Fo = { exports: {} };
|
|
13603
13603
|
function uc(t, e) {
|
|
13604
13604
|
(e == null || e > t.length) && (e = t.length);
|
|
13605
13605
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
@@ -13716,7 +13716,7 @@ var cn = { getActiveTrap: function(t) {
|
|
|
13716
13716
|
}, Ei = function(t) {
|
|
13717
13717
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++) n[r - 1] = arguments[r];
|
|
13718
13718
|
return typeof t == "function" ? t.apply(void 0, n) : t;
|
|
13719
|
-
},
|
|
13719
|
+
}, Ho = function(t) {
|
|
13720
13720
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
13721
13721
|
}, dT = [];
|
|
13722
13722
|
const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTrap: function(t, e) {
|
|
@@ -13749,7 +13749,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13749
13749
|
}, c = function() {
|
|
13750
13750
|
var g = u("initialFocus", { hasFallback: !0 });
|
|
13751
13751
|
if (g === !1) return !1;
|
|
13752
|
-
if (g === void 0 || g && !
|
|
13752
|
+
if (g === void 0 || g && !Jo(g, o.tabbableOptions)) if (l(r.activeElement) >= 0) g = r.activeElement;
|
|
13753
13753
|
else {
|
|
13754
13754
|
var D = s.tabbableGroups[0];
|
|
13755
13755
|
g = D && D.firstTabbableNode || u("fallbackFocus");
|
|
@@ -13759,7 +13759,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13759
13759
|
return g;
|
|
13760
13760
|
}, d = function() {
|
|
13761
13761
|
if (s.containerGroups = s.containers.map(function(g) {
|
|
13762
|
-
var D =
|
|
13762
|
+
var D = ta(g, o.tabbableOptions), C = du(g, o.tabbableOptions), N = D.length > 0 ? D[0] : void 0, k = D.length > 0 ? D[D.length - 1] : void 0, b = C.find(function(P) {
|
|
13763
13763
|
return Yn(P);
|
|
13764
13764
|
}), L = C.slice().reverse().find(function(P) {
|
|
13765
13765
|
return Yn(P);
|
|
@@ -13792,7 +13792,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13792
13792
|
return D || D !== !1 && g;
|
|
13793
13793
|
}, m = function(g) {
|
|
13794
13794
|
var D = g.target, C = g.event, N = g.isBackward, k = N !== void 0 && N;
|
|
13795
|
-
D = D ||
|
|
13795
|
+
D = D || Ho(C), d();
|
|
13796
13796
|
var b = null;
|
|
13797
13797
|
if (s.tabbableGroups.length > 0) {
|
|
13798
13798
|
var L = l(D, C), x = L >= 0 ? s.containerGroups[L] : void 0;
|
|
@@ -13802,7 +13802,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13802
13802
|
var ue = le.firstTabbableNode;
|
|
13803
13803
|
return D === ue;
|
|
13804
13804
|
});
|
|
13805
|
-
if (P < 0 && (x.container === D ||
|
|
13805
|
+
if (P < 0 && (x.container === D || Jo(D, o.tabbableOptions) && !Yn(D, o.tabbableOptions) && !x.nextTabbableNode(D, !1)) && (P = L), P >= 0) {
|
|
13806
13806
|
var B = P === 0 ? s.tabbableGroups.length - 1 : P - 1, V = s.tabbableGroups[B];
|
|
13807
13807
|
b = Rn(D) >= 0 ? V.lastTabbableNode : V.lastDomTabbableNode;
|
|
13808
13808
|
} else Mi(C) || (b = x.nextTabbableNode(D, !1));
|
|
@@ -13811,7 +13811,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13811
13811
|
var ue = le.lastTabbableNode;
|
|
13812
13812
|
return D === ue;
|
|
13813
13813
|
});
|
|
13814
|
-
if ($ < 0 && (x.container === D ||
|
|
13814
|
+
if ($ < 0 && (x.container === D || Jo(D, o.tabbableOptions) && !Yn(D, o.tabbableOptions) && !x.nextTabbableNode(D)) && ($ = L), $ >= 0) {
|
|
13815
13815
|
var z = $ === s.tabbableGroups.length - 1 ? 0 : $ + 1, Ae = s.tabbableGroups[z];
|
|
13816
13816
|
b = Rn(D) >= 0 ? Ae.firstTabbableNode : Ae.firstDomTabbableNode;
|
|
13817
13817
|
} else Mi(C) || (b = x.nextTabbableNode(D));
|
|
@@ -13819,10 +13819,10 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13819
13819
|
} else b = u("fallbackFocus");
|
|
13820
13820
|
return b;
|
|
13821
13821
|
}, E = function(g) {
|
|
13822
|
-
var D =
|
|
13822
|
+
var D = Ho(g);
|
|
13823
13823
|
l(D, g) >= 0 || (Ei(o.clickOutsideDeactivates, g) ? n.deactivate({ returnFocus: o.returnFocusOnDeactivate }) : Ei(o.allowOutsideClick, g) || g.preventDefault());
|
|
13824
13824
|
}, _ = function(g) {
|
|
13825
|
-
var D =
|
|
13825
|
+
var D = Ho(g), C = l(D, g) >= 0;
|
|
13826
13826
|
if (C || D instanceof Document) C && (s.mostRecentlyFocusedNode = D);
|
|
13827
13827
|
else {
|
|
13828
13828
|
var N;
|
|
@@ -13857,7 +13857,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13857
13857
|
return (D == null ? void 0 : D.key) === "Escape" || (D == null ? void 0 : D.key) === "Esc" || (D == null ? void 0 : D.keyCode) === 27;
|
|
13858
13858
|
})(g) && Ei(o.escapeDeactivates, g) !== !1 && (g.preventDefault(), n.deactivate());
|
|
13859
13859
|
}, S = function(g) {
|
|
13860
|
-
var D =
|
|
13860
|
+
var D = Ho(g);
|
|
13861
13861
|
l(D, g) >= 0 || Ei(o.clickOutsideDeactivates, g) || Ei(o.allowOutsideClick, g) || (g.preventDefault(), g.stopImmediatePropagation());
|
|
13862
13862
|
}, v = function() {
|
|
13863
13863
|
if (s.active) return cn.activateTrap(i, n), s.delayInitialFocusTimer = o.delayInitialFocus ? Gp(function() {
|
|
@@ -13968,7 +13968,7 @@ const hT = Object.freeze(Object.defineProperty({ __proto__: null, createFocusTra
|
|
|
13968
13968
|
} } }), n.updateContainerElements(t), n;
|
|
13969
13969
|
} }, Symbol.toStringTag, { value: "Module" })), pT = Mc(hT), fT = Mc(eT);
|
|
13970
13970
|
var Wp, mT = (function() {
|
|
13971
|
-
if (Wp) return
|
|
13971
|
+
if (Wp) return Fo.exports;
|
|
13972
13972
|
function t(p) {
|
|
13973
13973
|
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(m) {
|
|
13974
13974
|
return typeof m;
|
|
@@ -14103,7 +14103,7 @@ var Wp, mT = (function() {
|
|
|
14103
14103
|
return null;
|
|
14104
14104
|
} }]);
|
|
14105
14105
|
})(u.Component);
|
|
14106
|
-
return f.defaultProps = { active: !0, paused: !1, focusTrapOptions: {}, _createFocusTrap: c },
|
|
14106
|
+
return f.defaultProps = { active: !0, paused: !1, focusTrapOptions: {}, _createFocusTrap: c }, Fo.exports = f, Fo.exports.FocusTrap = f, Fo.exports;
|
|
14107
14107
|
})();
|
|
14108
14108
|
function rA(t) {
|
|
14109
14109
|
var _, A;
|
|
@@ -14331,21 +14331,21 @@ function aA(t, e) {
|
|
|
14331
14331
|
return t.map((r) => (function(i, o) {
|
|
14332
14332
|
if (i.type === "text") return (function(s, a) {
|
|
14333
14333
|
const l = ou(a);
|
|
14334
|
-
return
|
|
14334
|
+
return Zo(s, l);
|
|
14335
14335
|
})(i.children, o);
|
|
14336
|
-
if (i.type === "file" && i.subtype === "video") return `🎥 ${
|
|
14337
|
-
if (i.type === "file" && i.subtype === "image") return `📷 ${
|
|
14338
|
-
if (i.type === "file" && i.subtype === "audio") return `🎧 ${
|
|
14336
|
+
if (i.type === "file" && i.subtype === "video") return `🎥 ${wo(i.url)}`;
|
|
14337
|
+
if (i.type === "file" && i.subtype === "image") return `📷 ${wo(i.url)}`;
|
|
14338
|
+
if (i.type === "file" && i.subtype === "audio") return `🎧 ${wo(i.url)}`;
|
|
14339
14339
|
if (i.type === "file" && i.subtype === "voice") {
|
|
14340
14340
|
const s = i.duration;
|
|
14341
14341
|
return s === void 0 ? "🎙️" : `🎙️ (${Math.floor(s / 60)}:${Math.floor(s % 60).toString().padStart(2, "0")})`;
|
|
14342
14342
|
}
|
|
14343
|
-
return i.type === "file" ? (i.subtype, `📎 ${
|
|
14343
|
+
return i.type === "file" ? (i.subtype, `📎 ${wo(i.url)}`) : i.type === "location" ? "📍" : "";
|
|
14344
14344
|
})(r, e)).join(`
|
|
14345
14345
|
|
|
14346
14346
|
`);
|
|
14347
14347
|
}
|
|
14348
|
-
function
|
|
14348
|
+
function Zo(t, e) {
|
|
14349
14349
|
return t.flatMap((n) => {
|
|
14350
14350
|
if (typeof n == "string") return n;
|
|
14351
14351
|
switch (n.type) {
|
|
@@ -14358,14 +14358,14 @@ function Jo(t, e) {
|
|
|
14358
14358
|
case "actionLink":
|
|
14359
14359
|
case "actionbutton":
|
|
14360
14360
|
case "actionButton":
|
|
14361
|
-
return
|
|
14361
|
+
return Zo(n.children, e);
|
|
14362
14362
|
case "bulletlist":
|
|
14363
14363
|
case "bulletList":
|
|
14364
14364
|
return `
|
|
14365
|
-
` +
|
|
14365
|
+
` + Zo(n.children, e);
|
|
14366
14366
|
case "bulletpoint":
|
|
14367
14367
|
case "bulletPoint":
|
|
14368
|
-
return "- " +
|
|
14368
|
+
return "- " + Zo(n.children, e) + `
|
|
14369
14369
|
`;
|
|
14370
14370
|
case "autolink":
|
|
14371
14371
|
case "autoLink":
|
|
@@ -14390,7 +14390,7 @@ function DT(t) {
|
|
|
14390
14390
|
G(() => {
|
|
14391
14391
|
typeof e == "string" && n.user(e).get().then(s);
|
|
14392
14392
|
}, [n, e]);
|
|
14393
|
-
const a = "virtual-message-" +
|
|
14393
|
+
const a = "virtual-message-" + Ls(), [l, u] = te(() => {
|
|
14394
14394
|
var m, E;
|
|
14395
14395
|
const p = (E = t.content) != null ? E : [{ type: "text", children: d_((m = t.text) != null ? m : "") }];
|
|
14396
14396
|
return [p, aA(p, {})];
|
|
@@ -14412,7 +14412,7 @@ function ni(t) {
|
|
|
14412
14412
|
return "data:image/svg+xml;base64," + QS.encode(i);
|
|
14413
14413
|
})(t.id, tO(t.name));
|
|
14414
14414
|
}
|
|
14415
|
-
function
|
|
14415
|
+
function na(t) {
|
|
14416
14416
|
return t < 1024 ? t + " B" : t < 1048576 ? Math.floor(t / 1024) + " KB" : t < 1073741824 ? Math.floor(t / 1048576) + " MB" : t < 1099511627776 ? Math.floor(t / 1073741824) + " GB" : Math.floor(t / 1099511627776) + " TB";
|
|
14417
14417
|
}
|
|
14418
14418
|
function lA({ latitude: t, longitude: e }) {
|
|
@@ -14488,7 +14488,7 @@ function H(t, ...e) {
|
|
|
14488
14488
|
const n = fv.bind(fe)(t, ...e);
|
|
14489
14489
|
return Array.isArray(n) ? fe(De, {}, ...n) : n;
|
|
14490
14490
|
}
|
|
14491
|
-
function
|
|
14491
|
+
function _o(t, e = 10) {
|
|
14492
14492
|
return iu(t, Math.min(e, 100));
|
|
14493
14493
|
}
|
|
14494
14494
|
function NT(t, e, n) {
|
|
@@ -15453,7 +15453,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15453
15453
|
return 0;
|
|
15454
15454
|
};
|
|
15455
15455
|
}])), nf.exports);
|
|
15456
|
-
const HT =
|
|
15456
|
+
const HT = $s(FT), dA = `"use client";
|
|
15457
15457
|
var Bt, It, Rt, Ot = { exports: {} };
|
|
15458
15458
|
Bt || (Bt = 1, It = Ot, typeof OpusMediaRecorder != "undefined" && OpusMediaRecorder, Rt = function() {
|
|
15459
15459
|
return function() {
|
|
@@ -16872,7 +16872,7 @@ function XT({ conversationId: t }) {
|
|
|
16872
16872
|
}
|
|
16873
16873
|
function KT({ item$: t }) {
|
|
16874
16874
|
const e = oe(), n = J(t), r = J(e.state$.editingMessageId);
|
|
16875
|
-
return n instanceof
|
|
16875
|
+
return n instanceof Vo ? y(VT, { timestamp: n.timestamp, isReadMarker: n.isReadMarker, isDayMarker: n.isDayMarker }) : r === n.id ? y($T, { message: n }) : y(zT, { message: n });
|
|
16876
16876
|
}
|
|
16877
16877
|
const qT = /* @__PURE__ */ new Set(["ByV39eoc", "B1FxElnd", "aW4c49tW", "qGfuGtx", "SbERe5ee", "ilaVEa15", "FOlWOSaH", "dao5gGmT", "DLUgAhzL", "fqXFumr6", "FtiWHMYT", "66iWOyWt", "1375amYi", "mWbJgzpt", "jO7GqAvL", "SkFIKxo5", "2z4ILc3y", "aDr8oPL1", "Hku1c4Pt"]);
|
|
16878
16878
|
function ia({ appId: t, chatboxState: e }) {
|
|
@@ -17198,12 +17198,12 @@ function cR({ appId: t, chatHeaderVisible: e, messageFieldVisible: n }) {
|
|
|
17198
17198
|
}, []), m = X(null);
|
|
17199
17199
|
return au(), i.type === "invisible-loading" ? y(De, {}) : i.type === "loading" ? y(pA, {}) : i.type === "inaccessible-conversation" ? y(JT, {}) : i.type === "unknown-user" || i.type === "auth-failed" || i.type === "wrong-app-id" || i.type === "server-error" || i.type === "unexpected-error" ? y(ia, { appId: t, chatboxState: i }) : i.type == "expired-token" ? y(fA, {}) : i.type === "loaded" ? i.conversationId === null ? y(lR, {}) : y("div", { className: "t-chatbox-content", onDragOver: d ? f : void 0, onDragLeave: d ? p : void 0, onDrop: d ? h : void 0, "t-menu-boundary": "root", ref: m, children: [e && y(oR, {}), y(sR, {}), y(XT, { conversationId: i.conversationId }), y(aR, {}), n && y(hA, { attachFile: o, shareLocation: s }), a && y(QT, { uploadState: a }), l && y(mA, { className: "t-drop-overlay", children: y(ie, { type: "attachment" }) }), y(EA, { containerRef: m })] }) : y(De, {});
|
|
17200
17200
|
}
|
|
17201
|
-
const
|
|
17201
|
+
const Uo = new Uint8Array(31);
|
|
17202
17202
|
function _A() {
|
|
17203
|
-
if (globalThis.crypto !== void 0) crypto.getRandomValues(
|
|
17204
|
-
else for (let e = 0; e <
|
|
17203
|
+
if (globalThis.crypto !== void 0) crypto.getRandomValues(Uo);
|
|
17204
|
+
else for (let e = 0; e < Uo.length; e++) Uo[e] = Math.floor(256 * Math.random());
|
|
17205
17205
|
let t = 0;
|
|
17206
|
-
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (+e ^
|
|
17206
|
+
return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (e) => (+e ^ Uo[t++] & 15 >> +e / 4).toString(16));
|
|
17207
17207
|
}
|
|
17208
17208
|
class uR {
|
|
17209
17209
|
constructor(e, n, r, i, o, s, a, l) {
|
|
@@ -17254,7 +17254,7 @@ class uR {
|
|
|
17254
17254
|
async focusMessage(e, n = !0) {
|
|
17255
17255
|
var a;
|
|
17256
17256
|
if (e == null) return this.store.focusedMessage$.set(null), null;
|
|
17257
|
-
if (await
|
|
17257
|
+
if (await Hs(() => this.store.state$.loadingConversationId.get() === this.store.renderedConversationId$.get()), this.store.state$.currentConversationId.peek() === null) return Ie.error("Cannot focus message because current conversation is `null`."), null;
|
|
17258
17258
|
const r = () => {
|
|
17259
17259
|
const l = this.store.state$.currentConversationId.peek();
|
|
17260
17260
|
return this.store.state$.messages.child(l).lookup.child(e).peek() || null;
|
|
@@ -17490,7 +17490,7 @@ async function af(t, e) {
|
|
|
17490
17490
|
var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
17491
17491
|
var n = "__lodash_hash_undefined__", r = 9007199254740991, i = "[object Arguments]", o = "[object Function]", s = "[object Object]", a = /^\[object .+?Constructor\]$/, l = /^(?:0|[1-9]\d*)$/, u = {};
|
|
17492
17492
|
u["[object Float32Array]"] = u["[object Float64Array]"] = u["[object Int8Array]"] = u["[object Int16Array]"] = u["[object Int32Array]"] = u["[object Uint8Array]"] = u["[object Uint8ClampedArray]"] = u["[object Uint16Array]"] = u["[object Uint32Array]"] = !0, u[i] = u["[object Array]"] = u["[object ArrayBuffer]"] = u["[object Boolean]"] = u["[object DataView]"] = u["[object Date]"] = u["[object Error]"] = u[o] = u["[object Map]"] = u["[object Number]"] = u[s] = u["[object RegExp]"] = u["[object Set]"] = u["[object String]"] = u["[object WeakMap]"] = !1;
|
|
17493
|
-
var c, d = typeof
|
|
17493
|
+
var c, d = typeof Io == "object" && Io && Io.Object === Object && Io, h = typeof self == "object" && self && self.Object === Object && self, f = d || h || Function("return this")(), p = e && !e.nodeType && e, m = p && t && !t.nodeType && t, E = m && m.exports === p, _ = E && d.process, A = (function() {
|
|
17494
17494
|
try {
|
|
17495
17495
|
var w = m && m.require && m.require("util").types;
|
|
17496
17496
|
return w || _ && _.binding && _.binding("util");
|
|
@@ -17551,14 +17551,14 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17551
17551
|
return nt;
|
|
17552
17552
|
}
|
|
17553
17553
|
function oa(w, M, U) {
|
|
17554
|
-
(U !== void 0 && !
|
|
17554
|
+
(U !== void 0 && !Oo(w[M], U) || U === void 0 && !(M in w)) && sa(w, M, U);
|
|
17555
17555
|
}
|
|
17556
17556
|
function yA(w, M, U) {
|
|
17557
17557
|
var Y = w[M];
|
|
17558
|
-
g.call(w, M) &&
|
|
17558
|
+
g.call(w, M) && Oo(Y, U) && (U !== void 0 || M in w) || sa(w, M, U);
|
|
17559
17559
|
}
|
|
17560
|
-
function
|
|
17561
|
-
for (var U = w.length; U--; ) if (
|
|
17560
|
+
function Ao(w, M) {
|
|
17561
|
+
for (var U = w.length; U--; ) if (Oo(w[U][0], M)) return U;
|
|
17562
17562
|
return -1;
|
|
17563
17563
|
}
|
|
17564
17564
|
function sa(w, M, U) {
|
|
@@ -17585,27 +17585,27 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17585
17585
|
}, nn.prototype.clear = function() {
|
|
17586
17586
|
this.__data__ = [], this.size = 0;
|
|
17587
17587
|
}, nn.prototype.delete = function(w) {
|
|
17588
|
-
var M = this.__data__, U =
|
|
17588
|
+
var M = this.__data__, U = Ao(M, w);
|
|
17589
17589
|
return !(U < 0 || (U == M.length - 1 ? M.pop() : Ae.call(M, U, 1), --this.size, 0));
|
|
17590
17590
|
}, nn.prototype.get = function(w) {
|
|
17591
|
-
var M = this.__data__, U =
|
|
17591
|
+
var M = this.__data__, U = Ao(M, w);
|
|
17592
17592
|
return U < 0 ? void 0 : M[U][1];
|
|
17593
17593
|
}, nn.prototype.has = function(w) {
|
|
17594
|
-
return
|
|
17594
|
+
return Ao(this.__data__, w) > -1;
|
|
17595
17595
|
}, nn.prototype.set = function(w, M) {
|
|
17596
|
-
var U = this.__data__, Y =
|
|
17596
|
+
var U = this.__data__, Y = Ao(U, w);
|
|
17597
17597
|
return Y < 0 ? (++this.size, U.push([w, M])) : U[Y][1] = M, this;
|
|
17598
17598
|
}, Or.prototype.clear = function() {
|
|
17599
17599
|
this.size = 0, this.__data__ = { hash: new Bn(), map: new (At || nn)(), string: new Bn() };
|
|
17600
17600
|
}, Or.prototype.delete = function(w) {
|
|
17601
|
-
var M =
|
|
17601
|
+
var M = So(this, w).delete(w);
|
|
17602
17602
|
return this.size -= M ? 1 : 0, M;
|
|
17603
17603
|
}, Or.prototype.get = function(w) {
|
|
17604
|
-
return
|
|
17604
|
+
return So(this, w).get(w);
|
|
17605
17605
|
}, Or.prototype.has = function(w) {
|
|
17606
|
-
return
|
|
17606
|
+
return So(this, w).has(w);
|
|
17607
17607
|
}, Or.prototype.set = function(w, M) {
|
|
17608
|
-
var U =
|
|
17608
|
+
var U = So(this, w), Y = U.size;
|
|
17609
17609
|
return U.set(w, M), this.size += U.size == Y ? 0 : 1, this;
|
|
17610
17610
|
}, vr.prototype.clear = function() {
|
|
17611
17611
|
this.__data__ = new nn(), this.size = 0;
|
|
@@ -17632,7 +17632,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17632
17632
|
}
|
|
17633
17633
|
return w;
|
|
17634
17634
|
};
|
|
17635
|
-
function
|
|
17635
|
+
function go(w) {
|
|
17636
17636
|
return w == null ? w === void 0 ? "[object Undefined]" : "[object Null]" : le && le in Object(w) ? (function(M) {
|
|
17637
17637
|
var U = g.call(M, le), Y = M[le];
|
|
17638
17638
|
try {
|
|
@@ -17647,7 +17647,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17647
17647
|
})(w);
|
|
17648
17648
|
}
|
|
17649
17649
|
function _u(w) {
|
|
17650
|
-
return li(w) &&
|
|
17650
|
+
return li(w) && go(w) == i;
|
|
17651
17651
|
}
|
|
17652
17652
|
function CA(w) {
|
|
17653
17653
|
return !(!jn(w) || (function(M) {
|
|
@@ -17693,7 +17693,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17693
17693
|
var rt, it, Lt = (rt = xe.buffer, it = new rt.constructor(rt.byteLength), new x(it).set(new x(rt)), it);
|
|
17694
17694
|
return new xe.constructor(Lt, xe.byteOffset, xe.length);
|
|
17695
17695
|
})(pt)) : gt = [] : (function(xe) {
|
|
17696
|
-
if (!li(xe) ||
|
|
17696
|
+
if (!li(xe) || go(xe) != s) return !1;
|
|
17697
17697
|
var rt = V(xe);
|
|
17698
17698
|
if (rt === null) return !0;
|
|
17699
17699
|
var it = g.call(rt, "constructor") && rt.constructor;
|
|
@@ -17703,8 +17703,8 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17703
17703
|
var MA = !Lt;
|
|
17704
17704
|
Lt || (Lt = {});
|
|
17705
17705
|
for (var Nu = -1, PA = it.length; ++Nu < PA; ) {
|
|
17706
|
-
var Ea = it[Nu],
|
|
17707
|
-
|
|
17706
|
+
var Ea = it[Nu], vo = void 0;
|
|
17707
|
+
vo === void 0 && (vo = rt[Ea]), MA ? sa(Lt, Ea, vo) : yA(Lt, Ea, vo);
|
|
17708
17708
|
}
|
|
17709
17709
|
return Lt;
|
|
17710
17710
|
})(xe, Tu(xe));
|
|
@@ -17749,7 +17749,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17749
17749
|
}), writable: !0 });
|
|
17750
17750
|
var U;
|
|
17751
17751
|
} : Ru;
|
|
17752
|
-
function
|
|
17752
|
+
function So(w, M) {
|
|
17753
17753
|
var U, Y, se = w.__data__;
|
|
17754
17754
|
return ((Y = typeof (U = M)) == "string" || Y == "number" || Y == "symbol" || Y == "boolean" ? U !== "__proto__" : U === null) ? se[typeof M == "string" ? "string" : "hash"] : se.map;
|
|
17755
17755
|
}
|
|
@@ -17780,7 +17780,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17780
17780
|
return w.apply(void 0, arguments);
|
|
17781
17781
|
};
|
|
17782
17782
|
})(wA);
|
|
17783
|
-
function
|
|
17783
|
+
function Oo(w, M) {
|
|
17784
17784
|
return w === M || w != w && M != M;
|
|
17785
17785
|
}
|
|
17786
17786
|
var ca = _u(/* @__PURE__ */ (function() {
|
|
@@ -17796,7 +17796,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17796
17796
|
};
|
|
17797
17797
|
function ha(w) {
|
|
17798
17798
|
if (!jn(w)) return !1;
|
|
17799
|
-
var M =
|
|
17799
|
+
var M = go(w);
|
|
17800
17800
|
return M == o || M == "[object GeneratorFunction]" || M == "[object AsyncFunction]" || M == "[object Proxy]";
|
|
17801
17801
|
}
|
|
17802
17802
|
function vu(w) {
|
|
@@ -17814,7 +17814,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17814
17814
|
return w(M);
|
|
17815
17815
|
};
|
|
17816
17816
|
})(O) : function(w) {
|
|
17817
|
-
return li(w) && vu(w.length) && !!u[
|
|
17817
|
+
return li(w) && vu(w.length) && !!u[go(w)];
|
|
17818
17818
|
};
|
|
17819
17819
|
function Tu(w) {
|
|
17820
17820
|
return da(w) ? RA(w) : NA(w);
|
|
@@ -17826,7 +17826,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17826
17826
|
for (se = pa.length > 3 && typeof se == "function" ? (Y--, se) : void 0, Te && (function(nt, dt, Re) {
|
|
17827
17827
|
if (!jn(Re)) return !1;
|
|
17828
17828
|
var $e = typeof dt;
|
|
17829
|
-
return !!($e == "number" ? da(Re) && gu(dt, Re.length) : $e == "string" && dt in Re) &&
|
|
17829
|
+
return !!($e == "number" ? da(Re) && gu(dt, Re.length) : $e == "string" && dt in Re) && Oo(Re[dt], nt);
|
|
17830
17830
|
})(M[0], M[1], Te) && (se = Y < 3 ? void 0 : se, Y = 1), w = Object(w); ++U < Y; ) {
|
|
17831
17831
|
var ge = M[U];
|
|
17832
17832
|
ge && pa(w, ge, U, se);
|
|
@@ -17838,7 +17838,7 @@ var lf, fl = { exports: {} }, pR = (lf || (lf = 1, (function(t, e) {
|
|
|
17838
17838
|
}
|
|
17839
17839
|
t.exports = LA;
|
|
17840
17840
|
})(fl, fl.exports)), fl.exports);
|
|
17841
|
-
const fR =
|
|
17841
|
+
const fR = $s(pR);
|
|
17842
17842
|
class mR {
|
|
17843
17843
|
constructor(e, n, r, i) {
|
|
17844
17844
|
this.backendRestClient = new hR(e, n, r, i);
|
|
@@ -18172,7 +18172,7 @@ const _R = _t(function(t, e) {
|
|
|
18172
18172
|
return le.controller = ue, Xe(() => {
|
|
18173
18173
|
let de = !0;
|
|
18174
18174
|
const Be = b.conversationId || null;
|
|
18175
|
-
return $.state$.loadingConversationId.set(Be), Be && Ae.subscribeConversation(Be), Ae.subscribeTypingAndPresence(Be),
|
|
18175
|
+
return $.state$.loadingConversationId.set(Be), Be && Ae.subscribeConversation(Be), Ae.subscribeTypingAndPresence(Be), Hs(() => $.canRenderUi(Be)).then(() => {
|
|
18176
18176
|
de && Pt(() => {
|
|
18177
18177
|
$.state$.currentConversationId.set(Be), $.state$.referencedMessageId.set(null), $.chatSearchState$.set("hidden");
|
|
18178
18178
|
});
|
|
@@ -18238,7 +18238,7 @@ const _R = _t(function(t, e) {
|
|
|
18238
18238
|
} });
|
|
18239
18239
|
}
|
|
18240
18240
|
n && (ld.replacer = n), r && (ld.reviver = r);
|
|
18241
|
-
})({ observableFunctions: { child: (t, e) =>
|
|
18241
|
+
})({ observableFunctions: { child: (t, e) => Bs.getProxy(t, e) } }), Ie.registerHandler(({ level: t, data: e }) => {
|
|
18242
18242
|
console[t]("[TalkJS]", ...e);
|
|
18243
18243
|
});
|
|
18244
18244
|
const vA = _t(function(t, e) {
|
|
@@ -18247,12 +18247,12 @@ const vA = _t(function(t, e) {
|
|
|
18247
18247
|
const { theme: i, ...o } = t, s = te(() => ({ ...hc, ...i != null ? i : {} }), [i]), a = `chatbox|${t.userId}|${t.appId}`;
|
|
18248
18248
|
return y(Mm.Provider, { value: r, children: fe(_R, { ...o, key: a, theme: s, ref: n }) });
|
|
18249
18249
|
});
|
|
18250
|
-
var zr, ve, qe,
|
|
18250
|
+
var zr, ve, qe, Qo;
|
|
18251
18251
|
class AR {
|
|
18252
18252
|
constructor(e) {
|
|
18253
18253
|
Tr(this, ve);
|
|
18254
18254
|
Tr(this, zr);
|
|
18255
|
-
|
|
18255
|
+
Do(this, zr, e);
|
|
18256
18256
|
}
|
|
18257
18257
|
deleteMessage(e) {
|
|
18258
18258
|
return Ee(this, ve, qe).deleteMessage(e);
|
|
@@ -18279,13 +18279,13 @@ class AR {
|
|
|
18279
18279
|
return Ee(this, ve, qe).toggleReaction(e, n, r);
|
|
18280
18280
|
}
|
|
18281
18281
|
getMessageFieldText() {
|
|
18282
|
-
return Ee(this, ve,
|
|
18282
|
+
return Ee(this, ve, Qo).getText();
|
|
18283
18283
|
}
|
|
18284
18284
|
setMessageFieldText(e) {
|
|
18285
|
-
Ee(this, ve,
|
|
18285
|
+
Ee(this, ve, Qo).setText(e);
|
|
18286
18286
|
}
|
|
18287
18287
|
focusMessageField() {
|
|
18288
|
-
Ee(this, ve,
|
|
18288
|
+
Ee(this, ve, Qo).focus();
|
|
18289
18289
|
}
|
|
18290
18290
|
toggleSearchBox(e) {
|
|
18291
18291
|
Ee(this, ve, qe).toggleSearchBox(e);
|
|
@@ -18311,7 +18311,7 @@ class AR {
|
|
|
18311
18311
|
}
|
|
18312
18312
|
zr = new WeakMap(), ve = new WeakSet(), qe = function() {
|
|
18313
18313
|
return Ee(this, zr).current.controller;
|
|
18314
|
-
},
|
|
18314
|
+
}, Qo = function() {
|
|
18315
18315
|
return Ee(this, zr).current.editorInternals;
|
|
18316
18316
|
};
|
|
18317
18317
|
function gR({ conversation: t }) {
|
|
@@ -18489,7 +18489,7 @@ var uf, df, yR = (df || (df = 1, uf = function t(e, n) {
|
|
|
18489
18489
|
}
|
|
18490
18490
|
return e != e && n != n;
|
|
18491
18491
|
}), uf);
|
|
18492
|
-
const IR =
|
|
18492
|
+
const IR = $s(yR);
|
|
18493
18493
|
function CR(t, e) {
|
|
18494
18494
|
G(t, (function(n) {
|
|
18495
18495
|
const r = X(void 0);
|
|
@@ -18531,18 +18531,18 @@ const NR = _t(function(t, e) {
|
|
|
18531
18531
|
const h = q(({ error: p }) => y(ia, { appId: t.appId, chatboxState: { type: "unexpected-error", error: p } }), [t.appId]), f = i ? null : y(vm, { fallbackRender: h, children: y(km.Provider, { value: a, children: y(Nm.Provider, { value: t.theme, children: y(Lm.Provider, { value: c, children: y(Pc.Provider, { value: l, children: y(vR, { appId: t.appId }) }) }) }) }) });
|
|
18532
18532
|
return n ? f : y("div", { className: "t-conversation-list" + (t.className ? ` ${t.className}` : ""), style: t.style, ref: o, children: f });
|
|
18533
18533
|
});
|
|
18534
|
-
var ro,
|
|
18534
|
+
var ro, ws, DA;
|
|
18535
18535
|
class bR {
|
|
18536
18536
|
constructor(e) {
|
|
18537
|
-
Tr(this,
|
|
18537
|
+
Tr(this, ws);
|
|
18538
18538
|
Tr(this, ro);
|
|
18539
|
-
|
|
18539
|
+
Do(this, ro, e);
|
|
18540
18540
|
}
|
|
18541
18541
|
selectConversation(e, n) {
|
|
18542
|
-
return Ee(this,
|
|
18542
|
+
return Ee(this, ws, DA).selectConversation(e, n);
|
|
18543
18543
|
}
|
|
18544
18544
|
}
|
|
18545
|
-
ro = new WeakMap(),
|
|
18545
|
+
ro = new WeakMap(), ws = new WeakSet(), DA = function() {
|
|
18546
18546
|
return Ee(this, ro).current.controller;
|
|
18547
18547
|
};
|
|
18548
18548
|
const TA = _t(function(t, e) {
|
|
@@ -18595,7 +18595,7 @@ var io;
|
|
|
18595
18595
|
class kR {
|
|
18596
18596
|
constructor(e) {
|
|
18597
18597
|
Tr(this, io);
|
|
18598
|
-
|
|
18598
|
+
Do(this, io, e);
|
|
18599
18599
|
}
|
|
18600
18600
|
get chatbox() {
|
|
18601
18601
|
return Ee(this, io).current;
|
|
@@ -18609,7 +18609,7 @@ const LR = _t(function(t, e) {
|
|
|
18609
18609
|
return y(wR, { style: f, className: h, selectedConversationId: C, focusedMessageId: D, chatboxProps: { appId: s, userId: a, theme: o, host: g, focusedMessageId: D, enterSendsMessage: p, chatHeaderVisible: d, messageFieldVisible: m, messageFieldSpellcheck: E, messageFieldPlaceholder: _, beforeBrowserPermissionPrompt: c, onDeleteMessage: A, onSendMessage: O, onMessageAction: S, onFocusMessage: v, onMissingBrowserPermission: T, themeCustom: I, ref: n }, conversationListProps: { appId: s, userId: a, theme: o, host: g, onSelectConversation: R, conversationFilter: N, themeCustom: I, ref: r }, mobileBreakPoint: k, __hostElement: l, __internalOnLoaded: u }, `inbox|${t.userId}|${t.appId}`);
|
|
18610
18610
|
});
|
|
18611
18611
|
function MR(t) {
|
|
18612
|
-
const { conversation: e, theme: n, t: r, chatbox: i, chatSearchState: o } = t.common, { ConversationImage: s, ChatSearchBox: a } = n, l =
|
|
18612
|
+
const { conversation: e, theme: n, t: r, chatbox: i, chatSearchState: o } = t.common, { ConversationImage: s, ChatSearchBox: a } = n, l = _o(e.id, 10);
|
|
18613
18613
|
return t.permissions.canSearch && o !== "hidden" ? H`
|
|
18614
18614
|
<div className="t-theme-chat-header">
|
|
18615
18615
|
<${a}
|
|
@@ -18629,6 +18629,7 @@ function MR(t) {
|
|
|
18629
18629
|
>
|
|
18630
18630
|
<${ie} type="chevronLeft" />
|
|
18631
18631
|
</button>
|
|
18632
|
+
|
|
18632
18633
|
<div className="t-image">
|
|
18633
18634
|
<${s}
|
|
18634
18635
|
conversation=${e}
|
|
@@ -18641,6 +18642,7 @@ function MR(t) {
|
|
|
18641
18642
|
<${PR} ...${t} />
|
|
18642
18643
|
</div>
|
|
18643
18644
|
</div>
|
|
18645
|
+
|
|
18644
18646
|
<div className="t-actions">
|
|
18645
18647
|
<button
|
|
18646
18648
|
className="t-action-button"
|
|
@@ -18662,31 +18664,36 @@ function PR(t) {
|
|
|
18662
18664
|
<div className="t-subtitle">
|
|
18663
18665
|
<${hf} ...${t} />
|
|
18664
18666
|
</div>
|
|
18665
|
-
` : H
|
|
18666
|
-
|
|
18667
|
-
|
|
18667
|
+
` : H`
|
|
18668
|
+
<div className="t-title">
|
|
18669
|
+
<${hf} ...${t} />
|
|
18670
|
+
</div>
|
|
18671
|
+
`;
|
|
18668
18672
|
}
|
|
18669
|
-
function hf(
|
|
18670
|
-
const {
|
|
18671
|
-
return
|
|
18673
|
+
function hf(t) {
|
|
18674
|
+
const { common: e, isUserConnected: n, permissions: r } = t, i = _o(e.conversation.id, 10), o = i.filter(({ user: a }) => a.id !== e.currentUser.id), s = o.length === 0 ? i : o;
|
|
18675
|
+
return r.showOnlineStatus ? H`
|
|
18672
18676
|
<span className="t-participants">
|
|
18673
|
-
${
|
|
18674
|
-
<span className="t-participant" key=${
|
|
18675
|
-
<span>${
|
|
18677
|
+
${s.map(({ user: a }) => H`
|
|
18678
|
+
<span className="t-participant" key=${a.id}>
|
|
18679
|
+
<span>${a.name}</span>
|
|
18680
|
+
|
|
18676
18681
|
<span
|
|
18677
18682
|
className="t-online-indicator"
|
|
18678
|
-
t-status=${
|
|
18679
|
-
|
|
18683
|
+
t-status=${n[a.id] ? "online" : "offline"}
|
|
18684
|
+
/>
|
|
18680
18685
|
</span>
|
|
18681
18686
|
`)}
|
|
18682
18687
|
</span>
|
|
18683
|
-
` : H
|
|
18688
|
+
` : H`
|
|
18689
|
+
<span className="t-participants">${s.map(({ user: a }) => a.name).join(", ")}</span>
|
|
18690
|
+
`;
|
|
18684
18691
|
}
|
|
18685
|
-
function xR(
|
|
18692
|
+
function xR(t) {
|
|
18686
18693
|
return null;
|
|
18687
18694
|
}
|
|
18688
18695
|
function FR(t) {
|
|
18689
|
-
const { message: e, messageStatus: n, permissions: r, common: i } = t, { currentUser: o, theme: s, conversation: a, conversationId: l, t: u, focusedMessage: c } = i, { Avatar: d, ReferencedMessage: h, TimeAgo: f, MessageActionMenu: p } = s, m =
|
|
18696
|
+
const { message: e, messageStatus: n, permissions: r, common: i } = t, { currentUser: o, theme: s, conversation: a, conversationId: l, t: u, focusedMessage: c } = i, { Avatar: d, ReferencedMessage: h, TimeAgo: f, MessageActionMenu: p } = s, m = _o(l, 3).length >= 3, E = e.sender, _ = (E == null ? void 0 : E.id) !== o.id && m, A = e.referencedMessage, O = r.canReplyToMessage || r.canDeleteMessage, S = r.canAddReaction && a.access === "ReadWrite";
|
|
18690
18697
|
let v;
|
|
18691
18698
|
v = E ? E.id === o.id ? "currentUser" : "other" : "system";
|
|
18692
18699
|
const T = e.id === (c == null ? void 0 : c.id);
|
|
@@ -18699,23 +18706,28 @@ function FR(t) {
|
|
|
18699
18706
|
t-focused=${T ? "" : void 0}
|
|
18700
18707
|
>
|
|
18701
18708
|
<div className="t-message-row">
|
|
18702
|
-
${E && H
|
|
18703
|
-
|
|
18704
|
-
|
|
18705
|
-
|
|
18709
|
+
${E && H`
|
|
18710
|
+
<${d}
|
|
18711
|
+
photoUrl=${ni(E)}
|
|
18712
|
+
common=${i}
|
|
18713
|
+
/>
|
|
18714
|
+
`}
|
|
18706
18715
|
|
|
18707
18716
|
<div className="t-message-body">
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18717
|
+
${E && _ && H`
|
|
18718
|
+
<div
|
|
18719
|
+
className="t-message-sender-name"
|
|
18720
|
+
style=${{ color: TT(E.id) }}
|
|
18721
|
+
>
|
|
18722
|
+
${E.name}
|
|
18723
|
+
</div>
|
|
18724
|
+
`}
|
|
18725
|
+
${A && H`
|
|
18726
|
+
<${h}
|
|
18727
|
+
referencedMessage=${A}
|
|
18728
|
+
common=${i}
|
|
18729
|
+
/>
|
|
18730
|
+
`}
|
|
18719
18731
|
|
|
18720
18732
|
<${bv}
|
|
18721
18733
|
common=${i}
|
|
@@ -18725,65 +18737,74 @@ function FR(t) {
|
|
|
18725
18737
|
|
|
18726
18738
|
<div className="t-message-status">
|
|
18727
18739
|
<${f} timestamp=${e.createdAt} common=${i} />
|
|
18728
|
-
${v == "currentUser" && H
|
|
18740
|
+
${v == "currentUser" && H`
|
|
18741
|
+
<${UR} ...${t} />
|
|
18742
|
+
`}
|
|
18729
18743
|
</div>
|
|
18730
18744
|
</div>
|
|
18731
18745
|
|
|
18732
|
-
${(O || S) && H
|
|
18733
|
-
|
|
18734
|
-
|
|
18735
|
-
|
|
18736
|
-
|
|
18737
|
-
|
|
18738
|
-
|
|
18739
|
-
|
|
18740
|
-
|
|
18741
|
-
|
|
18742
|
-
|
|
18743
|
-
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
|
|
18752
|
-
|
|
18753
|
-
|
|
18754
|
-
|
|
18746
|
+
${(O || S) && H`
|
|
18747
|
+
<div className="t-message-buttons">
|
|
18748
|
+
${O && H`
|
|
18749
|
+
<${Ti}
|
|
18750
|
+
type="menu"
|
|
18751
|
+
popoverComponent=${p}
|
|
18752
|
+
popoverProps=${{ message: e, permissions: r, common: i }}
|
|
18753
|
+
className="t-message-action-menu-button"
|
|
18754
|
+
aria-label=${u.ARIA_MORE_ACTIONS}
|
|
18755
|
+
>
|
|
18756
|
+
<${ie}
|
|
18757
|
+
className="t-action-menu-icon"
|
|
18758
|
+
type="horizontalDots"
|
|
18759
|
+
/>
|
|
18760
|
+
</${Ti}>
|
|
18761
|
+
`}
|
|
18762
|
+
${S && H`
|
|
18763
|
+
<${Ti}
|
|
18764
|
+
className="t-add-reaction-button"
|
|
18765
|
+
popoverComponent=${ED}
|
|
18766
|
+
popoverProps=${{ messageId: e.id, colorScheme: "light" }}
|
|
18767
|
+
aria-label=${u.ADD_REACTION}
|
|
18768
|
+
>
|
|
18769
|
+
<${ie} type="addEmoji" />
|
|
18770
|
+
</${Ti}>
|
|
18771
|
+
`}
|
|
18772
|
+
</div>
|
|
18773
|
+
`}
|
|
18755
18774
|
</div>
|
|
18756
18775
|
|
|
18757
18776
|
${e.reactions.length > 0 && H`
|
|
18758
18777
|
<div className="t-emoji-reactions">
|
|
18759
|
-
${e.reactions.map((R) => H
|
|
18778
|
+
${e.reactions.map((R) => H`
|
|
18779
|
+
<${HR}
|
|
18760
18780
|
key=${R.emoji}
|
|
18761
18781
|
summary=${R}
|
|
18762
18782
|
message=${e}
|
|
18763
18783
|
common=${i}
|
|
18764
18784
|
permissions=${r}
|
|
18765
|
-
|
|
18785
|
+
/>
|
|
18786
|
+
`)}
|
|
18766
18787
|
</div>
|
|
18767
18788
|
`}
|
|
18768
18789
|
</div>
|
|
18769
18790
|
`;
|
|
18770
18791
|
}
|
|
18771
|
-
function HR(
|
|
18772
|
-
const {
|
|
18773
|
-
return
|
|
18792
|
+
function HR(t) {
|
|
18793
|
+
const { summary: e, message: n, common: r, permissions: i } = t, { t: o, chatbox: s, conversationId: a } = r, { emoji: l, count: u, currentUserReacted: c } = e, [d, h] = NT(a, n.id, e.emoji), f = d.map((p) => p.user.name);
|
|
18794
|
+
return d.length && d.length < e.count && f.push("..."), H`
|
|
18774
18795
|
<button
|
|
18775
18796
|
className="t-reaction-button"
|
|
18776
|
-
t-active=${
|
|
18777
|
-
onClick=${() =>
|
|
18778
|
-
disabled=${!
|
|
18779
|
-
aria-label=${
|
|
18780
|
-
aria-pressed=${
|
|
18781
|
-
onMouseOver=${
|
|
18782
|
-
onTouchStart=${
|
|
18783
|
-
t-tooltip-text=${
|
|
18797
|
+
t-active=${c ? "true" : void 0}
|
|
18798
|
+
onClick=${() => s.toggleReaction(n.id, l)}
|
|
18799
|
+
disabled=${!i.canAddReaction}
|
|
18800
|
+
aria-label=${o.ARIA_REACTION_COUNT(u, l)}
|
|
18801
|
+
aria-pressed=${c}
|
|
18802
|
+
onMouseOver=${h}
|
|
18803
|
+
onTouchStart=${h}
|
|
18804
|
+
t-tooltip-text=${f.join(", ")}
|
|
18784
18805
|
>
|
|
18785
|
-
<span className="t-emoji">${
|
|
18786
|
-
<span className="t-num-reactions">${
|
|
18806
|
+
<span className="t-emoji">${l}</span>
|
|
18807
|
+
<span className="t-num-reactions">${u}</span>
|
|
18787
18808
|
</button>
|
|
18788
18809
|
`;
|
|
18789
18810
|
}
|
|
@@ -18792,27 +18813,42 @@ function UR({ messageStatus: t }) {
|
|
|
18792
18813
|
<span className="t-status-icon">
|
|
18793
18814
|
<${ie} type="spinner" className="t-message-loading-spinner" />
|
|
18794
18815
|
</span>
|
|
18795
|
-
` : t === "sent" ? H
|
|
18816
|
+
` : t === "sent" ? H`
|
|
18817
|
+
<span className="t-status-icon">✓</span>
|
|
18818
|
+
` : t === "everyoneRead" ? H`
|
|
18819
|
+
<span className="t-status-icon">✓✓</span>
|
|
18820
|
+
` : null;
|
|
18796
18821
|
}
|
|
18797
18822
|
function BR(t) {
|
|
18798
18823
|
const { message: e, permissions: n, common: r } = t, { chatbox: i, t: o } = r;
|
|
18799
|
-
return H`
|
|
18800
|
-
|
|
18801
|
-
|
|
18824
|
+
return H`
|
|
18825
|
+
<div className="t-theme-message-action-menu">
|
|
18826
|
+
${n.canReplyToMessage && H`
|
|
18827
|
+
<${Gn}
|
|
18828
|
+
className="t-menu-item"
|
|
18829
|
+
onSelect=${() => i.setReferencedMessage(e.id)}
|
|
18830
|
+
>
|
|
18802
18831
|
${o.REPLY_TO_MESSAGE}
|
|
18803
18832
|
</${Gn}>
|
|
18804
18833
|
`}
|
|
18805
|
-
|
|
18806
|
-
<${Gn}
|
|
18834
|
+
${n.canEditMessage && H`
|
|
18835
|
+
<${Gn}
|
|
18836
|
+
className="t-menu-item"
|
|
18837
|
+
onSelect=${() => i.setEditing(e.id)}
|
|
18838
|
+
>
|
|
18807
18839
|
${o.EDIT_MESSAGE}
|
|
18808
18840
|
</${Gn}>
|
|
18809
18841
|
`}
|
|
18810
|
-
|
|
18811
|
-
<${Gn}
|
|
18842
|
+
${n.canDeleteMessage && H`
|
|
18843
|
+
<${Gn}
|
|
18844
|
+
className="t-menu-item t-danger"
|
|
18845
|
+
onSelect=${() => i.deleteMessage(e.id)}
|
|
18846
|
+
>
|
|
18812
18847
|
${o.DELETE_MESSAGE}
|
|
18813
18848
|
</${Gn}>
|
|
18814
18849
|
`}
|
|
18815
|
-
|
|
18850
|
+
</div>
|
|
18851
|
+
`;
|
|
18816
18852
|
}
|
|
18817
18853
|
function jR(t) {
|
|
18818
18854
|
const { common: e, referencedMessage: n, editor: r, voiceRecorder: i, permissions: o, editMessageId: s } = t, { chatbox: a, device: l, conversation: u, t: c, theme: d } = e, { ReplyBar: h, VoiceRecorder: f, RecordingPreview: p } = d, m = s ? "edit" : "send", E = !r.atTextLimit && !r.isEmpty && u.access === "ReadWrite", _ = m === "send" && r.isEmpty && o.canShareLocation, A = m === "send" && r.isEmpty && o.canShareFile, O = m === "send" && l.supportsEmojiPicker && !l.isMobile, S = m === "send" && r.isEmpty && o.canSendVoiceMessage, v = !i && u.access === "ReadWrite";
|
|
@@ -18823,13 +18859,13 @@ function jR(t) {
|
|
|
18823
18859
|
<${I_} colorScheme="light" />
|
|
18824
18860
|
</div>
|
|
18825
18861
|
`}
|
|
18862
|
+
|
|
18826
18863
|
<${gD} />
|
|
18827
18864
|
<${ET} />
|
|
18828
18865
|
|
|
18829
|
-
${n && H
|
|
18830
|
-
common=${e}
|
|
18831
|
-
|
|
18832
|
-
/>`}
|
|
18866
|
+
${n && H`
|
|
18867
|
+
<${h} common=${e} referencedMessage=${n} />
|
|
18868
|
+
`}
|
|
18833
18869
|
|
|
18834
18870
|
<div className="t-wrapper">
|
|
18835
18871
|
${r.atTextLimit && H`
|
|
@@ -18856,60 +18892,70 @@ function jR(t) {
|
|
|
18856
18892
|
<${tv} placeholder=${c.ENTRYBOX_PLACEHOLDER} />
|
|
18857
18893
|
|
|
18858
18894
|
<div className="t-button-overlay">
|
|
18859
|
-
${_ && H
|
|
18860
|
-
|
|
18861
|
-
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
|
|
18869
|
-
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18885
|
-
|
|
18886
|
-
|
|
18887
|
-
|
|
18888
|
-
|
|
18895
|
+
${_ && H`
|
|
18896
|
+
<button
|
|
18897
|
+
className="t-location-button"
|
|
18898
|
+
t-kind="icon-button"
|
|
18899
|
+
aria-label=${c.UPLOAD_SHARE_LOCATION}
|
|
18900
|
+
title=${c.UPLOAD_SHARE_LOCATION}
|
|
18901
|
+
onClick=${() => r.shareLocation()}
|
|
18902
|
+
>
|
|
18903
|
+
<${ie} type="location" size="20px" />
|
|
18904
|
+
</button>
|
|
18905
|
+
`}
|
|
18906
|
+
${A && H`
|
|
18907
|
+
<button
|
|
18908
|
+
className="t-attachment-button"
|
|
18909
|
+
t-kind="icon-button"
|
|
18910
|
+
aria-label=${c.UPLOAD_SEND_FILE}
|
|
18911
|
+
title=${c.UPLOAD_SEND_FILE}
|
|
18912
|
+
onClick=${() => r.attachFile()}
|
|
18913
|
+
>
|
|
18914
|
+
<${ie} type="attachment" />
|
|
18915
|
+
</button>
|
|
18916
|
+
`}
|
|
18917
|
+
${O && H`
|
|
18918
|
+
<button
|
|
18919
|
+
className="t-emoji-button"
|
|
18920
|
+
t-kind="icon-button"
|
|
18921
|
+
aria-label=${c.ARIA_INSERT_EMOJI}
|
|
18922
|
+
title=${c.ARIA_INSERT_EMOJI}
|
|
18923
|
+
onClick=${() => r.toggleEmojiPicker()}
|
|
18924
|
+
>
|
|
18925
|
+
<${ie}
|
|
18926
|
+
type=${r.showEmojiPicker ? "close" : "emoji"}
|
|
18927
|
+
size=${r.showEmojiPicker ? "24px" : "20px"}
|
|
18928
|
+
/>
|
|
18929
|
+
</button>
|
|
18930
|
+
`}
|
|
18889
18931
|
</div>
|
|
18890
18932
|
</div>
|
|
18891
18933
|
`}
|
|
18892
18934
|
${m === "send" && v && H`
|
|
18893
18935
|
<div className="t-send-column">
|
|
18894
|
-
${S && H
|
|
18895
|
-
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18900
|
-
|
|
18901
|
-
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
18906
|
-
|
|
18907
|
-
|
|
18908
|
-
|
|
18909
|
-
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18936
|
+
${S && H`
|
|
18937
|
+
<button
|
|
18938
|
+
className="t-record-button"
|
|
18939
|
+
t-kind="icon-button"
|
|
18940
|
+
aria-label=${c.VOICE_MESSAGE}
|
|
18941
|
+
title=${c.VOICE_MESSAGE}
|
|
18942
|
+
onClick=${() => r.recordVoiceMessage()}
|
|
18943
|
+
>
|
|
18944
|
+
<${ie} type="microphone" size="20px" />
|
|
18945
|
+
</button>
|
|
18946
|
+
`}
|
|
18947
|
+
${!S && H`
|
|
18948
|
+
<button
|
|
18949
|
+
className="t-send-button"
|
|
18950
|
+
t-kind="icon-button"
|
|
18951
|
+
aria-label=${c.SEND_BUTTON_TEXT}
|
|
18952
|
+
title=${c.SEND_BUTTON_TEXT}
|
|
18953
|
+
onClick=${() => r.send()}
|
|
18954
|
+
disabled=${!E}
|
|
18955
|
+
>
|
|
18956
|
+
<${ie} type="arrowUp" size="20px" />
|
|
18957
|
+
</button>
|
|
18958
|
+
`}
|
|
18913
18959
|
</div>
|
|
18914
18960
|
`}
|
|
18915
18961
|
${m === "edit" && H`
|
|
@@ -18920,6 +18966,7 @@ function jR(t) {
|
|
|
18920
18966
|
>
|
|
18921
18967
|
${c.CANCEL}
|
|
18922
18968
|
</button>
|
|
18969
|
+
|
|
18923
18970
|
<button
|
|
18924
18971
|
t-action="save"
|
|
18925
18972
|
onClick=${() => r.send()}
|
|
@@ -18950,9 +18997,9 @@ function $R(t) {
|
|
|
18950
18997
|
|
|
18951
18998
|
<div className="t-textbox-column t-waveform-wrapper">
|
|
18952
18999
|
<${vT} className="t-waveform" voiceRecorder=${n} />
|
|
18953
|
-
<span className="t-duration"
|
|
18954
|
-
|
|
18955
|
-
>
|
|
19000
|
+
<span className="t-duration">
|
|
19001
|
+
${pu(n.duration)}
|
|
19002
|
+
</span>
|
|
18956
19003
|
</div>
|
|
18957
19004
|
|
|
18958
19005
|
<div className="t-send-column">
|
|
@@ -19017,11 +19064,14 @@ function zR(t) {
|
|
|
19017
19064
|
<div className="t-line" t-side="left">
|
|
19018
19065
|
<div className="t-line-segment" />
|
|
19019
19066
|
</div>
|
|
19067
|
+
|
|
19020
19068
|
${r && H`
|
|
19021
19069
|
<span className="t-day-marker">${yT(e, o)}</span>
|
|
19022
19070
|
`}
|
|
19071
|
+
|
|
19023
19072
|
<div className="t-line" t-side="right">
|
|
19024
19073
|
<div className="t-line-segment" />
|
|
19074
|
+
|
|
19025
19075
|
${n && H`
|
|
19026
19076
|
<span className="t-unread-marker">${o.MESSAGELIST_NEW_MARKER}</span>
|
|
19027
19077
|
`}
|
|
@@ -19029,49 +19079,64 @@ function zR(t) {
|
|
|
19029
19079
|
</div>
|
|
19030
19080
|
`;
|
|
19031
19081
|
}
|
|
19032
|
-
function YR(
|
|
19082
|
+
function YR(t) {
|
|
19033
19083
|
return null;
|
|
19034
19084
|
}
|
|
19035
19085
|
function GR({ common: t }) {
|
|
19036
19086
|
const e = t.conversation.welcomeMessages;
|
|
19037
19087
|
if (e.length === 0) return null;
|
|
19038
|
-
const n = e.map((r, i) => H
|
|
19039
|
-
|
|
19088
|
+
const n = e.map((r, i) => H`
|
|
19089
|
+
<${DT} key=${i} text=${r} />
|
|
19090
|
+
`);
|
|
19091
|
+
return H`
|
|
19092
|
+
<div className="t-message-group">${n.reverse()}</div>
|
|
19093
|
+
`;
|
|
19040
19094
|
}
|
|
19041
19095
|
function WR({ common: t }) {
|
|
19042
|
-
const { typing: e, theme: n } = t, { Avatar: r } = n
|
|
19043
|
-
if (!
|
|
19044
|
-
const
|
|
19045
|
-
|
|
19046
|
-
|
|
19047
|
-
|
|
19048
|
-
|
|
19096
|
+
const { typing: e, theme: n } = t, { Avatar: r } = n;
|
|
19097
|
+
if (!e.many && e.users.length === 0) return null;
|
|
19098
|
+
const i = e.many ? H`
|
|
19099
|
+
<div className="t-theme-avatar">5+</div>
|
|
19100
|
+
` : e.users.slice(0, 2).map((o) => H`
|
|
19101
|
+
<${r}
|
|
19102
|
+
key=${o.id}
|
|
19103
|
+
photoUrl=${ni(o)}
|
|
19104
|
+
common=${t}
|
|
19105
|
+
/>
|
|
19106
|
+
`);
|
|
19049
19107
|
return H`
|
|
19050
19108
|
<div
|
|
19051
19109
|
className="t-theme-after-messages"
|
|
19052
|
-
t-many=${String(
|
|
19053
|
-
aria-label
|
|
19054
|
-
|
|
19055
|
-
|
|
19110
|
+
t-many=${String(e.many)}
|
|
19111
|
+
aria-label=${(function(o) {
|
|
19112
|
+
if (o.many) return "Several people are typing";
|
|
19113
|
+
const { users: s } = o;
|
|
19114
|
+
return s.length === 1 ? `${s[0].name} is typing` : s.length === 2 ? `${s[0].name} and ${s[1].name} are typing` : `${s[0].name}, ${s[1].name}, and ${s.length - 2} others are typing`;
|
|
19115
|
+
})(e)}
|
|
19056
19116
|
>
|
|
19057
19117
|
<div className="t-typing-avatars" aria-hidden="true">
|
|
19058
|
-
${
|
|
19059
|
-
${!
|
|
19118
|
+
${i}
|
|
19119
|
+
${!e.many && e.users.length > 2 && H`
|
|
19120
|
+
<div className="t-theme-avatar">+${e.users.length - 2}</div>
|
|
19121
|
+
`}
|
|
19060
19122
|
</div>
|
|
19123
|
+
|
|
19061
19124
|
<div className="t-typing-bubble">
|
|
19062
19125
|
<div className="t-typing-animation">
|
|
19063
|
-
<span
|
|
19064
|
-
<span
|
|
19065
|
-
<span
|
|
19126
|
+
<span />
|
|
19127
|
+
<span />
|
|
19128
|
+
<span />
|
|
19066
19129
|
</div>
|
|
19067
19130
|
</div>
|
|
19068
19131
|
</div>
|
|
19069
19132
|
`;
|
|
19070
19133
|
}
|
|
19071
19134
|
function XR({ common: t }) {
|
|
19072
|
-
return H
|
|
19073
|
-
|
|
19074
|
-
|
|
19135
|
+
return H`
|
|
19136
|
+
<div className="t-theme-no-conversation-selected">
|
|
19137
|
+
${t.t.SELECT_CONVERSATION}
|
|
19138
|
+
</div>
|
|
19139
|
+
`;
|
|
19075
19140
|
}
|
|
19076
19141
|
function KR(t) {
|
|
19077
19142
|
return H`
|
|
@@ -19083,12 +19148,13 @@ function KR(t) {
|
|
|
19083
19148
|
function qR({ message: t, common: e }) {
|
|
19084
19149
|
var i;
|
|
19085
19150
|
const n = t.content[0], { t: r } = e;
|
|
19086
|
-
if (n.type === "text") return H
|
|
19087
|
-
block=${n}
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19151
|
+
if (n.type === "text") return H`
|
|
19152
|
+
<${R_} block=${n} message=${t} nonInteractive />
|
|
19153
|
+
`;
|
|
19154
|
+
if (n.type === "location") return H`
|
|
19155
|
+
<${ie} type="location" />
|
|
19156
|
+
${r.LOCATION}
|
|
19157
|
+
`;
|
|
19092
19158
|
if (n.type === "file") {
|
|
19093
19159
|
if (n.subtype === "image") return H`
|
|
19094
19160
|
<${ie} type="image" />
|
|
@@ -19133,9 +19199,10 @@ function JR(t) {
|
|
|
19133
19199
|
>
|
|
19134
19200
|
${i}
|
|
19135
19201
|
</label>
|
|
19202
|
+
|
|
19136
19203
|
<${iA}
|
|
19137
19204
|
id="t-search-input"
|
|
19138
|
-
autoFocus
|
|
19205
|
+
autoFocus=${!0}
|
|
19139
19206
|
className="t-search-input"
|
|
19140
19207
|
placeholder=${e.SEARCH_PLACEHOLDER_TEXT}
|
|
19141
19208
|
/>
|
|
@@ -19149,6 +19216,7 @@ function JR(t) {
|
|
|
19149
19216
|
>
|
|
19150
19217
|
<${ie} type="chevronUp" size="20px" />
|
|
19151
19218
|
</button>
|
|
19219
|
+
|
|
19152
19220
|
<button
|
|
19153
19221
|
className="t-button t-next-button"
|
|
19154
19222
|
aria-label=${e.ARIA_SEARCH_DOWN}
|
|
@@ -19160,32 +19228,44 @@ function JR(t) {
|
|
|
19160
19228
|
</div>
|
|
19161
19229
|
`;
|
|
19162
19230
|
}
|
|
19163
|
-
function ZR({ block: t, downloadUrl: e
|
|
19231
|
+
function ZR({ block: t, downloadUrl: e }) {
|
|
19164
19232
|
return H`
|
|
19165
19233
|
<div className="t-theme-audio-block">
|
|
19166
19234
|
<${ra} src=${t.url} filename=${t.filename} />
|
|
19167
19235
|
|
|
19168
|
-
<a
|
|
19236
|
+
<a
|
|
19237
|
+
className="t-body-text"
|
|
19238
|
+
href=${e}
|
|
19239
|
+
target="_blank"
|
|
19240
|
+
rel="noreferrer"
|
|
19241
|
+
>
|
|
19169
19242
|
<${ie} type="attachment" className="t-attachment-icon" />
|
|
19243
|
+
|
|
19170
19244
|
<${ei} text=${t.filename} />
|
|
19171
|
-
<span className="t-filesize">
|
|
19245
|
+
<span className="t-filesize">(${na(t.size)})</span>
|
|
19172
19246
|
</a>
|
|
19173
19247
|
</div>
|
|
19174
19248
|
`;
|
|
19175
19249
|
}
|
|
19176
|
-
function QR({ block: t, downloadUrl: e
|
|
19250
|
+
function QR({ block: t, downloadUrl: e }) {
|
|
19177
19251
|
return H`
|
|
19178
19252
|
<div className="t-theme-file-block">
|
|
19179
|
-
<a
|
|
19253
|
+
<a
|
|
19254
|
+
className="t-body-text"
|
|
19255
|
+
href=${e}
|
|
19256
|
+
target="_blank"
|
|
19257
|
+
rel="noreferrer"
|
|
19258
|
+
>
|
|
19180
19259
|
<${ie} type="attachment" className="t-attachment-icon" />
|
|
19260
|
+
|
|
19181
19261
|
<${ei} className="t-filename" text=${t.filename} />
|
|
19182
|
-
<span className="t-filesize">
|
|
19262
|
+
<span className="t-filesize">(${na(t.size)})</span>
|
|
19183
19263
|
</a>
|
|
19184
19264
|
</div>
|
|
19185
19265
|
`;
|
|
19186
19266
|
}
|
|
19187
|
-
function ey({ block: t, downloadUrl: e
|
|
19188
|
-
const
|
|
19267
|
+
function ey({ block: t, downloadUrl: e }) {
|
|
19268
|
+
const n = { "--img-w": t.width || 1, "--img-h": t.height || 1 };
|
|
19189
19269
|
return H`
|
|
19190
19270
|
<div className="t-theme-image-block">
|
|
19191
19271
|
<a
|
|
@@ -19194,15 +19274,21 @@ function ey({ block: t, downloadUrl: e, common: n }) {
|
|
|
19194
19274
|
target="_blank"
|
|
19195
19275
|
rel="noopener noreferrer"
|
|
19196
19276
|
>
|
|
19197
|
-
<div className="t-root" style=${
|
|
19277
|
+
<div className="t-root" style=${n}>
|
|
19198
19278
|
<img src=${t.url} className="t-image" />
|
|
19199
19279
|
</div>
|
|
19200
19280
|
</a>
|
|
19201
19281
|
|
|
19202
|
-
<a
|
|
19282
|
+
<a
|
|
19283
|
+
href=${e}
|
|
19284
|
+
className="t-body-text"
|
|
19285
|
+
target="_blank"
|
|
19286
|
+
rel="noreferrer"
|
|
19287
|
+
>
|
|
19203
19288
|
<${ie} className="download-icon" type="download" />
|
|
19289
|
+
|
|
19204
19290
|
<${ei} text=${t.filename} />
|
|
19205
|
-
<span className="t-filesize">
|
|
19291
|
+
<span className="t-filesize">(${na(t.size)})</span>
|
|
19206
19292
|
</a>
|
|
19207
19293
|
</div>
|
|
19208
19294
|
`;
|
|
@@ -19214,14 +19300,15 @@ function ty({ block: t }) {
|
|
|
19214
19300
|
<a
|
|
19215
19301
|
href=${n}
|
|
19216
19302
|
target="_blank"
|
|
19303
|
+
rel="noreferrer"
|
|
19217
19304
|
className="t-root"
|
|
19218
19305
|
style=${{ background: `${`url(${JSON.stringify(e)})`} center center / cover no-repeat` }}
|
|
19219
|
-
|
|
19306
|
+
/>
|
|
19220
19307
|
|
|
19221
19308
|
<span className="t-body-text">
|
|
19222
|
-
<a href=${n} target="_blank" rel="noopener noreferrer"
|
|
19223
|
-
|
|
19224
|
-
>
|
|
19309
|
+
<a href=${n} target="_blank" rel="noopener noreferrer">
|
|
19310
|
+
${n}
|
|
19311
|
+
</a>
|
|
19225
19312
|
</span>
|
|
19226
19313
|
</div>
|
|
19227
19314
|
`;
|
|
@@ -19233,37 +19320,43 @@ function ny({ block: t, message: e }) {
|
|
|
19233
19320
|
</div>
|
|
19234
19321
|
`;
|
|
19235
19322
|
}
|
|
19236
|
-
function ry({ block: t, downloadUrl: e
|
|
19323
|
+
function ry({ block: t, downloadUrl: e }) {
|
|
19237
19324
|
return H`
|
|
19238
19325
|
<div className="t-theme-video-block">
|
|
19239
19326
|
<div className="t-video-wrapper">
|
|
19240
19327
|
<div className="t-root" style=${{ "--video-w": t.width || 1, "--video-h": t.height || 1 }}>
|
|
19241
|
-
<!-- We are using media fragments in the src as a workaround to iOS Safari -->
|
|
19242
|
-
<!-- not showing the video preview properly. See: https://muffinman.io/blog/hack-for-ios-safari-to-display-html-video-thumbnail/ -->
|
|
19243
19328
|
<video
|
|
19244
19329
|
className="t-video"
|
|
19245
|
-
controls
|
|
19330
|
+
controls=${!0}
|
|
19246
19331
|
preload="metadata"
|
|
19247
19332
|
src=${`${t.url}#t=0.1`}
|
|
19248
|
-
playsInline
|
|
19249
|
-
|
|
19333
|
+
playsInline=${!0}
|
|
19334
|
+
/>
|
|
19250
19335
|
</div>
|
|
19251
19336
|
</div>
|
|
19252
19337
|
|
|
19253
|
-
<a
|
|
19338
|
+
<a
|
|
19339
|
+
href=${e}
|
|
19340
|
+
className="t-body-text"
|
|
19341
|
+
target="_blank"
|
|
19342
|
+
rel="noreferrer"
|
|
19343
|
+
>
|
|
19254
19344
|
<${ie} className="download-icon" type="download" />
|
|
19255
19345
|
<${ei} text=${t.filename} />
|
|
19256
|
-
|
|
19346
|
+
|
|
19347
|
+
<span className="t-filesize">(${na(t.size)})</span>
|
|
19257
19348
|
</a>
|
|
19258
19349
|
</div>
|
|
19259
19350
|
`;
|
|
19260
19351
|
}
|
|
19261
19352
|
function iy({ block: t }) {
|
|
19262
|
-
return H
|
|
19263
|
-
|
|
19264
|
-
|
|
19265
|
-
|
|
19266
|
-
|
|
19353
|
+
return H`
|
|
19354
|
+
<${ra}
|
|
19355
|
+
className="t-theme-voice-block"
|
|
19356
|
+
src=${t.url}
|
|
19357
|
+
filename=${t.filename}
|
|
19358
|
+
/>
|
|
19359
|
+
`;
|
|
19267
19360
|
}
|
|
19268
19361
|
function oy({ photoUrl: t }) {
|
|
19269
19362
|
return H`
|
|
@@ -19273,19 +19366,26 @@ function oy({ photoUrl: t }) {
|
|
|
19273
19366
|
/>
|
|
19274
19367
|
`;
|
|
19275
19368
|
}
|
|
19276
|
-
function sy(
|
|
19277
|
-
const {
|
|
19278
|
-
return
|
|
19279
|
-
photoUrl=${
|
|
19280
|
-
|
|
19281
|
-
|
|
19282
|
-
|
|
19283
|
-
|
|
19284
|
-
|
|
19285
|
-
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19369
|
+
function sy(t) {
|
|
19370
|
+
const { common: e, conversation: n, participants: r } = t, { currentUser: i, theme: o } = e, { Avatar: s, GroupChatImage: a } = o;
|
|
19371
|
+
return n.photoUrl ? H`
|
|
19372
|
+
<${s} photoUrl=${n.photoUrl} common=${e} />
|
|
19373
|
+
` : r.length === 0 ? null : r.length === 1 ? H`
|
|
19374
|
+
<${s}
|
|
19375
|
+
photoUrl=${ni(i)}
|
|
19376
|
+
common=${e}
|
|
19377
|
+
/>
|
|
19378
|
+
` : r.length === 2 ? H`
|
|
19379
|
+
<${s}
|
|
19380
|
+
photoUrl=${ni(r[0].user.id === i.id ? r[1].user : r[0].user)}
|
|
19381
|
+
common=${e}
|
|
19382
|
+
/>
|
|
19383
|
+
` : H`
|
|
19384
|
+
<${a}
|
|
19385
|
+
conversation=${n}
|
|
19386
|
+
participants=${r}
|
|
19387
|
+
common=${e}
|
|
19388
|
+
/>
|
|
19289
19389
|
`;
|
|
19290
19390
|
}
|
|
19291
19391
|
function ay({ participants: t }) {
|
|
@@ -19294,63 +19394,58 @@ function ay({ participants: t }) {
|
|
|
19294
19394
|
<div
|
|
19295
19395
|
className="t-mini-avatar"
|
|
19296
19396
|
style=${{ backgroundImage: `url("${ni(t[0].user)}")` }}
|
|
19297
|
-
|
|
19397
|
+
/>
|
|
19398
|
+
|
|
19298
19399
|
<div
|
|
19299
19400
|
className="t-mini-avatar"
|
|
19300
19401
|
style=${{ backgroundImage: `url("${ni(t[1].user)}")` }}
|
|
19301
|
-
|
|
19302
|
-
|
|
19303
|
-
|
|
19304
|
-
|
|
19305
|
-
|
|
19306
|
-
|
|
19307
|
-
|
|
19308
|
-
|
|
19309
|
-
|
|
19310
|
-
|
|
19311
|
-
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19315
|
-
|
|
19402
|
+
/>
|
|
19403
|
+
|
|
19404
|
+
${t.length > 2 && H`
|
|
19405
|
+
<svg
|
|
19406
|
+
className="t-counter"
|
|
19407
|
+
viewBox="0 0 22 22"
|
|
19408
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
19409
|
+
>
|
|
19410
|
+
<g className="t-group">
|
|
19411
|
+
<rect
|
|
19412
|
+
x="0"
|
|
19413
|
+
y="0"
|
|
19414
|
+
width=${22}
|
|
19415
|
+
height=${22}
|
|
19416
|
+
fill="currentColor"
|
|
19417
|
+
/>
|
|
19418
|
+
</g>
|
|
19419
|
+
|
|
19420
|
+
<text
|
|
19421
|
+
textAnchor="middle"
|
|
19422
|
+
x=${11}
|
|
19423
|
+
y=${Math.round(0.666 * 22)}
|
|
19316
19424
|
width=${22}
|
|
19317
19425
|
height=${22}
|
|
19426
|
+
fontSize=${t.length > 9 ? 10 : 12}
|
|
19318
19427
|
fill="currentColor"
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
we can get 2 different colours without fiddling with
|
|
19325
|
-
fills in css (which dont seem to work in these cases)
|
|
19326
|
-
-->
|
|
19327
|
-
<text
|
|
19328
|
-
textAnchor="middle"
|
|
19329
|
-
x=${11}
|
|
19330
|
-
y=${Math.round(0.666 * 22)}
|
|
19331
|
-
width=${22}
|
|
19332
|
-
height=${22}
|
|
19333
|
-
fontSize=${t.length > 9 ? 10 : 12}
|
|
19334
|
-
fill="currentColor"
|
|
19335
|
-
>
|
|
19336
|
-
${t.length > 9 ? "9+" : t.length}
|
|
19337
|
-
</text>
|
|
19338
|
-
</svg>`}
|
|
19428
|
+
>
|
|
19429
|
+
${t.length > 9 ? "9+" : t.length}
|
|
19430
|
+
</text>
|
|
19431
|
+
</svg>
|
|
19432
|
+
`}
|
|
19339
19433
|
</div>
|
|
19340
19434
|
`;
|
|
19341
19435
|
}
|
|
19342
|
-
function ly(
|
|
19343
|
-
const {
|
|
19436
|
+
function ly(t) {
|
|
19437
|
+
const { referencedMessage: e, common: n } = t, { theme: r, chatbox: i } = n, { CompactMessageContent: o } = r;
|
|
19344
19438
|
return H`
|
|
19345
19439
|
<div
|
|
19346
19440
|
className="t-theme-referenced-message"
|
|
19347
|
-
onClick=${() =>
|
|
19441
|
+
onClick=${() => i.focusMessage(e.id)}
|
|
19348
19442
|
>
|
|
19349
|
-
<div className="t-sender-name">${
|
|
19443
|
+
<div className="t-sender-name">${e.sender.name}</div>
|
|
19444
|
+
|
|
19350
19445
|
<div className="t-content">
|
|
19351
|
-
<${
|
|
19352
|
-
message=${
|
|
19353
|
-
common=${
|
|
19446
|
+
<${o}
|
|
19447
|
+
message=${e}
|
|
19448
|
+
common=${n}
|
|
19354
19449
|
/>
|
|
19355
19450
|
</div>
|
|
19356
19451
|
</div>
|
|
@@ -19387,7 +19482,9 @@ function cy(t) {
|
|
|
19387
19482
|
`;
|
|
19388
19483
|
}
|
|
19389
19484
|
function uy(t) {
|
|
19390
|
-
return t.timestamp === -1 ? null : H
|
|
19485
|
+
return t.timestamp === -1 ? null : H`
|
|
19486
|
+
<${dy} ...${t} />
|
|
19487
|
+
`;
|
|
19391
19488
|
}
|
|
19392
19489
|
function dy({ timestamp: t, common: e }) {
|
|
19393
19490
|
const { t: n } = e, r = new Date(t).toLocaleString(n.locale, { weekday: "short", year: "numeric", month: "long", day: "numeric", hour: "numeric", minute: "numeric", second: "numeric" }), i = RT(t, n);
|
|
@@ -19405,7 +19502,7 @@ function dy({ timestamp: t, common: e }) {
|
|
|
19405
19502
|
}
|
|
19406
19503
|
function hy(t) {
|
|
19407
19504
|
var A, O, S;
|
|
19408
|
-
const { common: e, conversation: n, isSelected: r } = t, { currentUser: i, theme: o, conversationList: s } = e, { TimeAgo: a, ConversationImage: l, CompactMessageContent: u } = o, { lastMessage: c } = n, d =
|
|
19505
|
+
const { common: e, conversation: n, isSelected: r } = t, { currentUser: i, theme: o, conversationList: s } = e, { TimeAgo: a, ConversationImage: l, CompactMessageContent: u } = o, { lastMessage: c } = n, d = _o(n.id, 10), h = d.length >= 3, f = (A = c == null ? void 0 : c.sender) == null ? void 0 : A.name, p = (O = c == null ? void 0 : c.editedAt) != null ? O : c == null ? void 0 : c.createdAt, m = d.filter((v) => v.user.id !== i.id), E = m.length ? m : d, _ = (S = n.subject) != null ? S : E.map((v) => v.user.name).join(", ");
|
|
19409
19506
|
return H`
|
|
19410
19507
|
<div
|
|
19411
19508
|
className="t-theme-conversation-list-item"
|
|
@@ -19433,7 +19530,9 @@ function hy(t) {
|
|
|
19433
19530
|
<div className="t-body">
|
|
19434
19531
|
${c && H`
|
|
19435
19532
|
<div className="t-message">
|
|
19436
|
-
${h && f && H
|
|
19533
|
+
${h && f && H`
|
|
19534
|
+
<span className="t-message-sender">${f}:</span>
|
|
19535
|
+
`}
|
|
19437
19536
|
|
|
19438
19537
|
<${u}
|
|
19439
19538
|
message=${c}
|
|
@@ -19450,19 +19549,17 @@ function hy(t) {
|
|
|
19450
19549
|
}
|
|
19451
19550
|
function py({ conversation: t }) {
|
|
19452
19551
|
const { isUnread: e, unreadMessageCount: n } = t;
|
|
19453
|
-
return e ? n === 0 ? H
|
|
19454
|
-
<div className="t-unread-dot"
|
|
19455
|
-
|
|
19456
|
-
|
|
19552
|
+
return e ? n === 0 ? H`
|
|
19553
|
+
<div className="t-unread-generic-dot" />
|
|
19554
|
+
` : n > 999 ? H`
|
|
19555
|
+
<div className="t-unread-dot"><span>999+</span></div>
|
|
19457
19556
|
` : H`
|
|
19458
|
-
<div className="t-unread-dot">
|
|
19459
|
-
<span>${n}</span>
|
|
19460
|
-
</div>
|
|
19557
|
+
<div className="t-unread-dot"><span>${n}</span></div>
|
|
19461
19558
|
` : null;
|
|
19462
19559
|
}
|
|
19463
19560
|
function fy(t) {
|
|
19464
19561
|
var A, O, S;
|
|
19465
|
-
const { common: e, conversation: n, message: r, isSelected: i } = t, { currentUser: o, theme: s, conversationList: a } = e, { TimeAgo: l, ConversationImage: u, CompactMessageContent: c } = s, d =
|
|
19562
|
+
const { common: e, conversation: n, message: r, isSelected: i } = t, { currentUser: o, theme: s, conversationList: a } = e, { TimeAgo: l, ConversationImage: u, CompactMessageContent: c } = s, d = _o(n.id, 10), h = d.length >= 3, f = (A = r == null ? void 0 : r.sender) == null ? void 0 : A.name, p = (O = r == null ? void 0 : r.editedAt) != null ? O : r == null ? void 0 : r.createdAt, m = d.filter((v) => v.user.id !== o.id), E = m.length ? m : d, _ = (S = n.subject) != null ? S : E.map((v) => v.user.name).join(", ");
|
|
19466
19563
|
return H`
|
|
19467
19564
|
<div
|
|
19468
19565
|
className="t-theme-global-search-result-item"
|
|
@@ -19493,9 +19590,13 @@ function fy(t) {
|
|
|
19493
19590
|
<div className="t-body">
|
|
19494
19591
|
${r && H`
|
|
19495
19592
|
<div className="t-message">
|
|
19496
|
-
${h && f && H
|
|
19497
|
-
|
|
19498
|
-
|
|
19593
|
+
${h && f && H`
|
|
19594
|
+
<span className="t-message-sender">
|
|
19595
|
+
<${ei} text=${f} />
|
|
19596
|
+
:
|
|
19597
|
+
</span>
|
|
19598
|
+
`}
|
|
19599
|
+
|
|
19499
19600
|
<${c} message=${r} common=${e} />
|
|
19500
19601
|
</div>
|
|
19501
19602
|
`}
|
|
@@ -19512,6 +19613,7 @@ function my(t) {
|
|
|
19512
19613
|
className="t-input"
|
|
19513
19614
|
placeholder=${i.SEARCH_PLACEHOLDER_TEXT}
|
|
19514
19615
|
/>
|
|
19616
|
+
|
|
19515
19617
|
${n.length > 0 && H`
|
|
19516
19618
|
<button
|
|
19517
19619
|
type="button"
|
|
@@ -19522,7 +19624,9 @@ function my(t) {
|
|
|
19522
19624
|
<${ie} type="close" size="20px" />
|
|
19523
19625
|
</button>
|
|
19524
19626
|
`}
|
|
19525
|
-
${n.length === 0 && H`
|
|
19627
|
+
${n.length === 0 && H`
|
|
19628
|
+
<${ie} className="t-submit" type="search" size="20px" />
|
|
19629
|
+
`}
|
|
19526
19630
|
</div>
|
|
19527
19631
|
`;
|
|
19528
19632
|
}
|
|
@@ -19531,6 +19635,7 @@ function Ey(t) {
|
|
|
19531
19635
|
return H`
|
|
19532
19636
|
<div className="t-theme-global-search-result-header">
|
|
19533
19637
|
<span className="t-title">${i === "messages" ? o.SEARCH_RESULTS_MESSAGES : o.SEARCH_RESULTS_CONVERSATIONS}</span>
|
|
19638
|
+
|
|
19534
19639
|
${n && H`
|
|
19535
19640
|
<button className="t-show-more" onClick=${r}>
|
|
19536
19641
|
${o.SEARCH_RESULTS_SHOW_MORE}
|
|
@@ -19591,7 +19696,7 @@ function mu(t, e, n, r) {
|
|
|
19591
19696
|
const A = [...Object.getOwnPropertyNames(_.current), ...Object.getOwnPropertyNames(Object.getPrototypeOf(_.current))];
|
|
19592
19697
|
for (const O of A) O !== "constructor" && (typeof _.current[O] == "function" ? this[O] = (...S) => (this._renderRequested && this.render(), _.current[O](...S)) : Object.defineProperty(this, O, { enumerable: !0, get: () => _.current[O] }));
|
|
19593
19698
|
}, E = t;
|
|
19594
|
-
|
|
19699
|
+
Ms(() => {
|
|
19595
19700
|
this._renderRoot.render(y(E, { ...p, ref: this._ref, __hostElement: this, __internalOnLoaded: () => {
|
|
19596
19701
|
m(this._ref);
|
|
19597
19702
|
} }));
|
|
@@ -19652,12 +19757,12 @@ export {
|
|
|
19652
19757
|
vT as Waveform,
|
|
19653
19758
|
Ty as defaultTheme,
|
|
19654
19759
|
pu as formatDuration,
|
|
19655
|
-
|
|
19760
|
+
na as formatFilesize,
|
|
19656
19761
|
lA as getGoogleMapsUrls,
|
|
19657
19762
|
ni as getPhotoUrlWithFallback,
|
|
19658
19763
|
TT as getRandomColor,
|
|
19659
19764
|
H as html,
|
|
19660
|
-
|
|
19765
|
+
_o as useParticipants,
|
|
19661
19766
|
NT as useReactions,
|
|
19662
19767
|
RT as useTimeAgo,
|
|
19663
19768
|
yT as userFriendlyDate
|