@clevertask/scribe 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Menu/BarMenu.js +119 -4
- package/dist/components/Menu/BubbleMenu.js +1 -1
- package/dist/components/Menu/Mobile/ListOptionBar.d.ts +6 -0
- package/dist/components/Menu/Mobile/ListOptionBar.js +40 -0
- package/dist/components/Scribe/extension/emoji/EmojiList.d.ts +1 -0
- package/dist/components/Scribe/extension/emoji/EmojiList.js +35 -0
- package/dist/components/Scribe/extension/emoji/suggest.d.ts +16 -0
- package/dist/components/Scribe/extension/emoji/suggest.js +40 -0
- package/dist/components/Scribe/extension/extension-link.js +221 -217
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/index.d.ts +1 -1
- package/dist/components/Scribe/extension/index.js +33 -28
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +8 -6
- package/dist/components/Scribe/extension/slashCommand/index.js +4 -153
- package/dist/components/Scribe/extension/slashCommand/renderItems.d.ts +1 -1
- package/dist/components/Scribe/extension/slashCommand/renderItems.js +14 -14
- package/dist/components/Scribe/index.d.ts +1 -0
- package/dist/components/Scribe/index.js +85 -61
- package/dist/index-B0pieAxt.js +160 -0
- package/dist/index-CCS9HOYd.js +51031 -0
- package/dist/{index-Gm-3o3nq.js → index-DoNRu1rY.js} +1654 -1553
- package/dist/index-VneQGVTd.js +2385 -0
- package/dist/main.css +64 -6
- package/dist/marked.esm-BS_MmRZC.js +1566 -0
- package/dist/purify.es-BGaRrCfO.js +553 -0
- package/dist/turndown.browser.es-RmA_HBaI.js +649 -0
- package/dist/utils/create-scribe-editor.js +7 -6
- package/dist/utils/html-to-markdown.js +7 -6
- package/dist/utils/markdown-to-html.js +4 -3
- package/package.json +44 -41
- package/dist/BarMenu-SiPgB2ow.js +0 -134
- package/dist/browser-DEobZXxB.js +0 -2099
- package/dist/components/Scribe/extension/math-extension.d.ts +0 -2
- package/dist/components/Scribe/extension/math-extension.js +0 -11770
- package/dist/index-C3_lI_rP.js +0 -2269
- package/dist/index-NRgJVTH-.js +0 -7576
- package/dist/turndown.browser.es-BSoGafvq.js +0 -1164
|
@@ -0,0 +1,2385 @@
|
|
|
1
|
+
import { b as Wr, P as kr, H as Fr, A as Ur, J as qr, a as zr } from "./index-DoNRu1rY.js";
|
|
2
|
+
import B, { forwardRef as Kr, useState as ur, useDebugValue as Gr, version as Pt, useLayoutEffect as Yr, useEffect as cr, useContext as fr, createContext as lr } from "react";
|
|
3
|
+
import Xr, { flushSync as Jr } from "react-dom";
|
|
4
|
+
var k = "top", G = "bottom", Y = "right", F = "left", Dt = "auto", Fe = [k, G, Y, F], De = "start", Ie = "end", Qr = "clippingParents", pr = "viewport", je = "popper", Zr = "reference", Bt = /* @__PURE__ */ Fe.reduce(function(e, t) {
|
|
5
|
+
return e.concat([t + "-" + De, t + "-" + Ie]);
|
|
6
|
+
}, []), dr = /* @__PURE__ */ [].concat(Fe, [Dt]).reduce(function(e, t) {
|
|
7
|
+
return e.concat([t, t + "-" + De, t + "-" + Ie]);
|
|
8
|
+
}, []), en = "beforeRead", tn = "read", rn = "afterRead", nn = "beforeMain", on = "main", an = "afterMain", sn = "beforeWrite", un = "write", cn = "afterWrite", fn = [en, tn, rn, nn, on, an, sn, un, cn];
|
|
9
|
+
function re(e) {
|
|
10
|
+
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
11
|
+
}
|
|
12
|
+
function q(e) {
|
|
13
|
+
if (e == null)
|
|
14
|
+
return window;
|
|
15
|
+
if (e.toString() !== "[object Window]") {
|
|
16
|
+
var t = e.ownerDocument;
|
|
17
|
+
return t && t.defaultView || window;
|
|
18
|
+
}
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
function ge(e) {
|
|
22
|
+
var t = q(e).Element;
|
|
23
|
+
return e instanceof t || e instanceof Element;
|
|
24
|
+
}
|
|
25
|
+
function K(e) {
|
|
26
|
+
var t = q(e).HTMLElement;
|
|
27
|
+
return e instanceof t || e instanceof HTMLElement;
|
|
28
|
+
}
|
|
29
|
+
function At(e) {
|
|
30
|
+
if (typeof ShadowRoot > "u")
|
|
31
|
+
return !1;
|
|
32
|
+
var t = q(e).ShadowRoot;
|
|
33
|
+
return e instanceof t || e instanceof ShadowRoot;
|
|
34
|
+
}
|
|
35
|
+
function ln(e) {
|
|
36
|
+
var t = e.state;
|
|
37
|
+
Object.keys(t.elements).forEach(function(r) {
|
|
38
|
+
var n = t.styles[r] || {}, o = t.attributes[r] || {}, a = t.elements[r];
|
|
39
|
+
!K(a) || !re(a) || (Object.assign(a.style, n), Object.keys(o).forEach(function(c) {
|
|
40
|
+
var u = o[c];
|
|
41
|
+
u === !1 ? a.removeAttribute(c) : a.setAttribute(c, u === !0 ? "" : u);
|
|
42
|
+
}));
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function pn(e) {
|
|
46
|
+
var t = e.state, r = {
|
|
47
|
+
popper: {
|
|
48
|
+
position: t.options.strategy,
|
|
49
|
+
left: "0",
|
|
50
|
+
top: "0",
|
|
51
|
+
margin: "0"
|
|
52
|
+
},
|
|
53
|
+
arrow: {
|
|
54
|
+
position: "absolute"
|
|
55
|
+
},
|
|
56
|
+
reference: {}
|
|
57
|
+
};
|
|
58
|
+
return Object.assign(t.elements.popper.style, r.popper), t.styles = r, t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), function() {
|
|
59
|
+
Object.keys(t.elements).forEach(function(n) {
|
|
60
|
+
var o = t.elements[n], a = t.attributes[n] || {}, c = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), u = c.reduce(function(s, d) {
|
|
61
|
+
return s[d] = "", s;
|
|
62
|
+
}, {});
|
|
63
|
+
!K(o) || !re(o) || (Object.assign(o.style, u), Object.keys(a).forEach(function(s) {
|
|
64
|
+
o.removeAttribute(s);
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
const vr = {
|
|
70
|
+
name: "applyStyles",
|
|
71
|
+
enabled: !0,
|
|
72
|
+
phase: "write",
|
|
73
|
+
fn: ln,
|
|
74
|
+
effect: pn,
|
|
75
|
+
requires: ["computeStyles"]
|
|
76
|
+
};
|
|
77
|
+
function te(e) {
|
|
78
|
+
return e.split("-")[0];
|
|
79
|
+
}
|
|
80
|
+
var ye = Math.max, at = Math.min, Ae = Math.round;
|
|
81
|
+
function bt() {
|
|
82
|
+
var e = navigator.userAgentData;
|
|
83
|
+
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
84
|
+
return t.brand + "/" + t.version;
|
|
85
|
+
}).join(" ") : navigator.userAgent;
|
|
86
|
+
}
|
|
87
|
+
function hr() {
|
|
88
|
+
return !/^((?!chrome|android).)*safari/i.test(bt());
|
|
89
|
+
}
|
|
90
|
+
function Ce(e, t, r) {
|
|
91
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
92
|
+
var n = e.getBoundingClientRect(), o = 1, a = 1;
|
|
93
|
+
t && K(e) && (o = e.offsetWidth > 0 && Ae(n.width) / e.offsetWidth || 1, a = e.offsetHeight > 0 && Ae(n.height) / e.offsetHeight || 1);
|
|
94
|
+
var c = ge(e) ? q(e) : window, u = c.visualViewport, s = !hr() && r, d = (n.left + (s && u ? u.offsetLeft : 0)) / o, l = (n.top + (s && u ? u.offsetTop : 0)) / a, v = n.width / o, y = n.height / a;
|
|
95
|
+
return {
|
|
96
|
+
width: v,
|
|
97
|
+
height: y,
|
|
98
|
+
top: l,
|
|
99
|
+
right: d + v,
|
|
100
|
+
bottom: l + y,
|
|
101
|
+
left: d,
|
|
102
|
+
x: d,
|
|
103
|
+
y: l
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function Ct(e) {
|
|
107
|
+
var t = Ce(e), r = e.offsetWidth, n = e.offsetHeight;
|
|
108
|
+
return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
109
|
+
x: e.offsetLeft,
|
|
110
|
+
y: e.offsetTop,
|
|
111
|
+
width: r,
|
|
112
|
+
height: n
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function mr(e, t) {
|
|
116
|
+
var r = t.getRootNode && t.getRootNode();
|
|
117
|
+
if (e.contains(t))
|
|
118
|
+
return !0;
|
|
119
|
+
if (r && At(r)) {
|
|
120
|
+
var n = t;
|
|
121
|
+
do {
|
|
122
|
+
if (n && e.isSameNode(n))
|
|
123
|
+
return !0;
|
|
124
|
+
n = n.parentNode || n.host;
|
|
125
|
+
} while (n);
|
|
126
|
+
}
|
|
127
|
+
return !1;
|
|
128
|
+
}
|
|
129
|
+
function ue(e) {
|
|
130
|
+
return q(e).getComputedStyle(e);
|
|
131
|
+
}
|
|
132
|
+
function dn(e) {
|
|
133
|
+
return ["table", "td", "th"].indexOf(re(e)) >= 0;
|
|
134
|
+
}
|
|
135
|
+
function le(e) {
|
|
136
|
+
return ((ge(e) ? e.ownerDocument : (
|
|
137
|
+
// $FlowFixMe[prop-missing]
|
|
138
|
+
e.document
|
|
139
|
+
)) || window.document).documentElement;
|
|
140
|
+
}
|
|
141
|
+
function ut(e) {
|
|
142
|
+
return re(e) === "html" ? e : (
|
|
143
|
+
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
144
|
+
// $FlowFixMe[incompatible-return]
|
|
145
|
+
// $FlowFixMe[prop-missing]
|
|
146
|
+
e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
147
|
+
e.parentNode || // DOM Element detected
|
|
148
|
+
(At(e) ? e.host : null) || // ShadowRoot detected
|
|
149
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
150
|
+
le(e)
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function Ht(e) {
|
|
154
|
+
return !K(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
155
|
+
ue(e).position === "fixed" ? null : e.offsetParent;
|
|
156
|
+
}
|
|
157
|
+
function vn(e) {
|
|
158
|
+
var t = /firefox/i.test(bt()), r = /Trident/i.test(bt());
|
|
159
|
+
if (r && K(e)) {
|
|
160
|
+
var n = ue(e);
|
|
161
|
+
if (n.position === "fixed")
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
var o = ut(e);
|
|
165
|
+
for (At(o) && (o = o.host); K(o) && ["html", "body"].indexOf(re(o)) < 0; ) {
|
|
166
|
+
var a = ue(o);
|
|
167
|
+
if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || t && a.willChange === "filter" || t && a.filter && a.filter !== "none")
|
|
168
|
+
return o;
|
|
169
|
+
o = o.parentNode;
|
|
170
|
+
}
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
function Ue(e) {
|
|
174
|
+
for (var t = q(e), r = Ht(e); r && dn(r) && ue(r).position === "static"; )
|
|
175
|
+
r = Ht(r);
|
|
176
|
+
return r && (re(r) === "html" || re(r) === "body" && ue(r).position === "static") ? t : r || vn(e) || t;
|
|
177
|
+
}
|
|
178
|
+
function _t(e) {
|
|
179
|
+
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
180
|
+
}
|
|
181
|
+
function Pe(e, t, r) {
|
|
182
|
+
return ye(e, at(t, r));
|
|
183
|
+
}
|
|
184
|
+
function hn(e, t, r) {
|
|
185
|
+
var n = Pe(e, t, r);
|
|
186
|
+
return n > r ? r : n;
|
|
187
|
+
}
|
|
188
|
+
function yr() {
|
|
189
|
+
return {
|
|
190
|
+
top: 0,
|
|
191
|
+
right: 0,
|
|
192
|
+
bottom: 0,
|
|
193
|
+
left: 0
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
function gr(e) {
|
|
197
|
+
return Object.assign({}, yr(), e);
|
|
198
|
+
}
|
|
199
|
+
function br(e, t) {
|
|
200
|
+
return t.reduce(function(r, n) {
|
|
201
|
+
return r[n] = e, r;
|
|
202
|
+
}, {});
|
|
203
|
+
}
|
|
204
|
+
var mn = function(t, r) {
|
|
205
|
+
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
|
206
|
+
placement: r.placement
|
|
207
|
+
})) : t, gr(typeof t != "number" ? t : br(t, Fe));
|
|
208
|
+
};
|
|
209
|
+
function yn(e) {
|
|
210
|
+
var t, r = e.state, n = e.name, o = e.options, a = r.elements.arrow, c = r.modifiersData.popperOffsets, u = te(r.placement), s = _t(u), d = [F, Y].indexOf(u) >= 0, l = d ? "height" : "width";
|
|
211
|
+
if (!(!a || !c)) {
|
|
212
|
+
var v = mn(o.padding, r), y = Ct(a), h = s === "y" ? k : F, b = s === "y" ? G : Y, m = r.rects.reference[l] + r.rects.reference[s] - c[s] - r.rects.popper[l], w = c[s] - r.rects.reference[s], T = Ue(a), D = T ? s === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, O = m / 2 - w / 2, i = v[h], E = D - y[l] - v[b], p = D / 2 - y[l] / 2 + O, x = Pe(i, p, E), _ = s;
|
|
213
|
+
r.modifiersData[n] = (t = {}, t[_] = x, t.centerOffset = x - p, t);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
function gn(e) {
|
|
217
|
+
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
218
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || mr(t.elements.popper, o) && (t.elements.arrow = o));
|
|
219
|
+
}
|
|
220
|
+
const bn = {
|
|
221
|
+
name: "arrow",
|
|
222
|
+
enabled: !0,
|
|
223
|
+
phase: "main",
|
|
224
|
+
fn: yn,
|
|
225
|
+
effect: gn,
|
|
226
|
+
requires: ["popperOffsets"],
|
|
227
|
+
requiresIfExists: ["preventOverflow"]
|
|
228
|
+
};
|
|
229
|
+
function _e(e) {
|
|
230
|
+
return e.split("-")[1];
|
|
231
|
+
}
|
|
232
|
+
var wn = {
|
|
233
|
+
top: "auto",
|
|
234
|
+
right: "auto",
|
|
235
|
+
bottom: "auto",
|
|
236
|
+
left: "auto"
|
|
237
|
+
};
|
|
238
|
+
function On(e, t) {
|
|
239
|
+
var r = e.x, n = e.y, o = t.devicePixelRatio || 1;
|
|
240
|
+
return {
|
|
241
|
+
x: Ae(r * o) / o || 0,
|
|
242
|
+
y: Ae(n * o) / o || 0
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
function It(e) {
|
|
246
|
+
var t, r = e.popper, n = e.popperRect, o = e.placement, a = e.variation, c = e.offsets, u = e.position, s = e.gpuAcceleration, d = e.adaptive, l = e.roundOffsets, v = e.isFixed, y = c.x, h = y === void 0 ? 0 : y, b = c.y, m = b === void 0 ? 0 : b, w = typeof l == "function" ? l({
|
|
247
|
+
x: h,
|
|
248
|
+
y: m
|
|
249
|
+
}) : {
|
|
250
|
+
x: h,
|
|
251
|
+
y: m
|
|
252
|
+
};
|
|
253
|
+
h = w.x, m = w.y;
|
|
254
|
+
var T = c.hasOwnProperty("x"), D = c.hasOwnProperty("y"), O = F, i = k, E = window;
|
|
255
|
+
if (d) {
|
|
256
|
+
var p = Ue(r), x = "clientHeight", _ = "clientWidth";
|
|
257
|
+
if (p === q(r) && (p = le(r), ue(p).position !== "static" && u === "absolute" && (x = "scrollHeight", _ = "scrollWidth")), p = p, o === k || (o === F || o === Y) && a === Ie) {
|
|
258
|
+
i = G;
|
|
259
|
+
var A = v && p === E && E.visualViewport ? E.visualViewport.height : (
|
|
260
|
+
// $FlowFixMe[prop-missing]
|
|
261
|
+
p[x]
|
|
262
|
+
);
|
|
263
|
+
m -= A - n.height, m *= s ? 1 : -1;
|
|
264
|
+
}
|
|
265
|
+
if (o === F || (o === k || o === G) && a === Ie) {
|
|
266
|
+
O = Y;
|
|
267
|
+
var R = v && p === E && E.visualViewport ? E.visualViewport.width : (
|
|
268
|
+
// $FlowFixMe[prop-missing]
|
|
269
|
+
p[_]
|
|
270
|
+
);
|
|
271
|
+
h -= R - n.width, h *= s ? 1 : -1;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
var N = Object.assign({
|
|
275
|
+
position: u
|
|
276
|
+
}, d && wn), M = l === !0 ? On({
|
|
277
|
+
x: h,
|
|
278
|
+
y: m
|
|
279
|
+
}, q(r)) : {
|
|
280
|
+
x: h,
|
|
281
|
+
y: m
|
|
282
|
+
};
|
|
283
|
+
if (h = M.x, m = M.y, s) {
|
|
284
|
+
var V;
|
|
285
|
+
return Object.assign({}, N, (V = {}, V[i] = D ? "0" : "", V[O] = T ? "0" : "", V.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", V));
|
|
286
|
+
}
|
|
287
|
+
return Object.assign({}, N, (t = {}, t[i] = D ? m + "px" : "", t[O] = T ? h + "px" : "", t.transform = "", t));
|
|
288
|
+
}
|
|
289
|
+
function En(e) {
|
|
290
|
+
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, a = r.adaptive, c = a === void 0 ? !0 : a, u = r.roundOffsets, s = u === void 0 ? !0 : u, d = {
|
|
291
|
+
placement: te(t.placement),
|
|
292
|
+
variation: _e(t.placement),
|
|
293
|
+
popper: t.elements.popper,
|
|
294
|
+
popperRect: t.rects.popper,
|
|
295
|
+
gpuAcceleration: o,
|
|
296
|
+
isFixed: t.options.strategy === "fixed"
|
|
297
|
+
};
|
|
298
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, It(Object.assign({}, d, {
|
|
299
|
+
offsets: t.modifiersData.popperOffsets,
|
|
300
|
+
position: t.options.strategy,
|
|
301
|
+
adaptive: c,
|
|
302
|
+
roundOffsets: s
|
|
303
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, It(Object.assign({}, d, {
|
|
304
|
+
offsets: t.modifiersData.arrow,
|
|
305
|
+
position: "absolute",
|
|
306
|
+
adaptive: !1,
|
|
307
|
+
roundOffsets: s
|
|
308
|
+
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
309
|
+
"data-popper-placement": t.placement
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
const Sn = {
|
|
313
|
+
name: "computeStyles",
|
|
314
|
+
enabled: !0,
|
|
315
|
+
phase: "beforeWrite",
|
|
316
|
+
fn: En,
|
|
317
|
+
data: {}
|
|
318
|
+
};
|
|
319
|
+
var nt = {
|
|
320
|
+
passive: !0
|
|
321
|
+
};
|
|
322
|
+
function xn(e) {
|
|
323
|
+
var t = e.state, r = e.instance, n = e.options, o = n.scroll, a = o === void 0 ? !0 : o, c = n.resize, u = c === void 0 ? !0 : c, s = q(t.elements.popper), d = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
324
|
+
return a && d.forEach(function(l) {
|
|
325
|
+
l.addEventListener("scroll", r.update, nt);
|
|
326
|
+
}), u && s.addEventListener("resize", r.update, nt), function() {
|
|
327
|
+
a && d.forEach(function(l) {
|
|
328
|
+
l.removeEventListener("scroll", r.update, nt);
|
|
329
|
+
}), u && s.removeEventListener("resize", r.update, nt);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
const Tn = {
|
|
333
|
+
name: "eventListeners",
|
|
334
|
+
enabled: !0,
|
|
335
|
+
phase: "write",
|
|
336
|
+
fn: function() {
|
|
337
|
+
},
|
|
338
|
+
effect: xn,
|
|
339
|
+
data: {}
|
|
340
|
+
};
|
|
341
|
+
var Dn = {
|
|
342
|
+
left: "right",
|
|
343
|
+
right: "left",
|
|
344
|
+
bottom: "top",
|
|
345
|
+
top: "bottom"
|
|
346
|
+
};
|
|
347
|
+
function ot(e) {
|
|
348
|
+
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
349
|
+
return Dn[t];
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
var An = {
|
|
353
|
+
start: "end",
|
|
354
|
+
end: "start"
|
|
355
|
+
};
|
|
356
|
+
function $t(e) {
|
|
357
|
+
return e.replace(/start|end/g, function(t) {
|
|
358
|
+
return An[t];
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
function Lt(e) {
|
|
362
|
+
var t = q(e), r = t.pageXOffset, n = t.pageYOffset;
|
|
363
|
+
return {
|
|
364
|
+
scrollLeft: r,
|
|
365
|
+
scrollTop: n
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
function Rt(e) {
|
|
369
|
+
return Ce(le(e)).left + Lt(e).scrollLeft;
|
|
370
|
+
}
|
|
371
|
+
function Cn(e, t) {
|
|
372
|
+
var r = q(e), n = le(e), o = r.visualViewport, a = n.clientWidth, c = n.clientHeight, u = 0, s = 0;
|
|
373
|
+
if (o) {
|
|
374
|
+
a = o.width, c = o.height;
|
|
375
|
+
var d = hr();
|
|
376
|
+
(d || !d && t === "fixed") && (u = o.offsetLeft, s = o.offsetTop);
|
|
377
|
+
}
|
|
378
|
+
return {
|
|
379
|
+
width: a,
|
|
380
|
+
height: c,
|
|
381
|
+
x: u + Rt(e),
|
|
382
|
+
y: s
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
function _n(e) {
|
|
386
|
+
var t, r = le(e), n = Lt(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, a = ye(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), c = ye(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), u = -n.scrollLeft + Rt(e), s = -n.scrollTop;
|
|
387
|
+
return ue(o || r).direction === "rtl" && (u += ye(r.clientWidth, o ? o.clientWidth : 0) - a), {
|
|
388
|
+
width: a,
|
|
389
|
+
height: c,
|
|
390
|
+
x: u,
|
|
391
|
+
y: s
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
function Mt(e) {
|
|
395
|
+
var t = ue(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
396
|
+
return /auto|scroll|overlay|hidden/.test(r + o + n);
|
|
397
|
+
}
|
|
398
|
+
function wr(e) {
|
|
399
|
+
return ["html", "body", "#document"].indexOf(re(e)) >= 0 ? e.ownerDocument.body : K(e) && Mt(e) ? e : wr(ut(e));
|
|
400
|
+
}
|
|
401
|
+
function Be(e, t) {
|
|
402
|
+
var r;
|
|
403
|
+
t === void 0 && (t = []);
|
|
404
|
+
var n = wr(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), a = q(n), c = o ? [a].concat(a.visualViewport || [], Mt(n) ? n : []) : n, u = t.concat(c);
|
|
405
|
+
return o ? u : (
|
|
406
|
+
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
407
|
+
u.concat(Be(ut(c)))
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
function wt(e) {
|
|
411
|
+
return Object.assign({}, e, {
|
|
412
|
+
left: e.x,
|
|
413
|
+
top: e.y,
|
|
414
|
+
right: e.x + e.width,
|
|
415
|
+
bottom: e.y + e.height
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
function Ln(e, t) {
|
|
419
|
+
var r = Ce(e, !1, t === "fixed");
|
|
420
|
+
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
421
|
+
}
|
|
422
|
+
function Wt(e, t, r) {
|
|
423
|
+
return t === pr ? wt(Cn(e, r)) : ge(t) ? Ln(t, r) : wt(_n(le(e)));
|
|
424
|
+
}
|
|
425
|
+
function Rn(e) {
|
|
426
|
+
var t = Be(ut(e)), r = ["absolute", "fixed"].indexOf(ue(e).position) >= 0, n = r && K(e) ? Ue(e) : e;
|
|
427
|
+
return ge(n) ? t.filter(function(o) {
|
|
428
|
+
return ge(o) && mr(o, n) && re(o) !== "body";
|
|
429
|
+
}) : [];
|
|
430
|
+
}
|
|
431
|
+
function Mn(e, t, r, n) {
|
|
432
|
+
var o = t === "clippingParents" ? Rn(e) : [].concat(t), a = [].concat(o, [r]), c = a[0], u = a.reduce(function(s, d) {
|
|
433
|
+
var l = Wt(e, d, n);
|
|
434
|
+
return s.top = ye(l.top, s.top), s.right = at(l.right, s.right), s.bottom = at(l.bottom, s.bottom), s.left = ye(l.left, s.left), s;
|
|
435
|
+
}, Wt(e, c, n));
|
|
436
|
+
return u.width = u.right - u.left, u.height = u.bottom - u.top, u.x = u.left, u.y = u.top, u;
|
|
437
|
+
}
|
|
438
|
+
function Or(e) {
|
|
439
|
+
var t = e.reference, r = e.element, n = e.placement, o = n ? te(n) : null, a = n ? _e(n) : null, c = t.x + t.width / 2 - r.width / 2, u = t.y + t.height / 2 - r.height / 2, s;
|
|
440
|
+
switch (o) {
|
|
441
|
+
case k:
|
|
442
|
+
s = {
|
|
443
|
+
x: c,
|
|
444
|
+
y: t.y - r.height
|
|
445
|
+
};
|
|
446
|
+
break;
|
|
447
|
+
case G:
|
|
448
|
+
s = {
|
|
449
|
+
x: c,
|
|
450
|
+
y: t.y + t.height
|
|
451
|
+
};
|
|
452
|
+
break;
|
|
453
|
+
case Y:
|
|
454
|
+
s = {
|
|
455
|
+
x: t.x + t.width,
|
|
456
|
+
y: u
|
|
457
|
+
};
|
|
458
|
+
break;
|
|
459
|
+
case F:
|
|
460
|
+
s = {
|
|
461
|
+
x: t.x - r.width,
|
|
462
|
+
y: u
|
|
463
|
+
};
|
|
464
|
+
break;
|
|
465
|
+
default:
|
|
466
|
+
s = {
|
|
467
|
+
x: t.x,
|
|
468
|
+
y: t.y
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
var d = o ? _t(o) : null;
|
|
472
|
+
if (d != null) {
|
|
473
|
+
var l = d === "y" ? "height" : "width";
|
|
474
|
+
switch (a) {
|
|
475
|
+
case De:
|
|
476
|
+
s[d] = s[d] - (t[l] / 2 - r[l] / 2);
|
|
477
|
+
break;
|
|
478
|
+
case Ie:
|
|
479
|
+
s[d] = s[d] + (t[l] / 2 - r[l] / 2);
|
|
480
|
+
break;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return s;
|
|
484
|
+
}
|
|
485
|
+
function $e(e, t) {
|
|
486
|
+
t === void 0 && (t = {});
|
|
487
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, a = r.strategy, c = a === void 0 ? e.strategy : a, u = r.boundary, s = u === void 0 ? Qr : u, d = r.rootBoundary, l = d === void 0 ? pr : d, v = r.elementContext, y = v === void 0 ? je : v, h = r.altBoundary, b = h === void 0 ? !1 : h, m = r.padding, w = m === void 0 ? 0 : m, T = gr(typeof w != "number" ? w : br(w, Fe)), D = y === je ? Zr : je, O = e.rects.popper, i = e.elements[b ? D : y], E = Mn(ge(i) ? i : i.contextElement || le(e.elements.popper), s, l, c), p = Ce(e.elements.reference), x = Or({
|
|
488
|
+
reference: p,
|
|
489
|
+
element: O,
|
|
490
|
+
placement: o
|
|
491
|
+
}), _ = wt(Object.assign({}, O, x)), A = y === je ? _ : p, R = {
|
|
492
|
+
top: E.top - A.top + T.top,
|
|
493
|
+
bottom: A.bottom - E.bottom + T.bottom,
|
|
494
|
+
left: E.left - A.left + T.left,
|
|
495
|
+
right: A.right - E.right + T.right
|
|
496
|
+
}, N = e.modifiersData.offset;
|
|
497
|
+
if (y === je && N) {
|
|
498
|
+
var M = N[o];
|
|
499
|
+
Object.keys(R).forEach(function(V) {
|
|
500
|
+
var H = [Y, G].indexOf(V) >= 0 ? 1 : -1, $ = [k, G].indexOf(V) >= 0 ? "y" : "x";
|
|
501
|
+
R[V] += M[$] * H;
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
return R;
|
|
505
|
+
}
|
|
506
|
+
function Vn(e, t) {
|
|
507
|
+
t === void 0 && (t = {});
|
|
508
|
+
var r = t, n = r.placement, o = r.boundary, a = r.rootBoundary, c = r.padding, u = r.flipVariations, s = r.allowedAutoPlacements, d = s === void 0 ? dr : s, l = _e(n), v = l ? u ? Bt : Bt.filter(function(b) {
|
|
509
|
+
return _e(b) === l;
|
|
510
|
+
}) : Fe, y = v.filter(function(b) {
|
|
511
|
+
return d.indexOf(b) >= 0;
|
|
512
|
+
});
|
|
513
|
+
y.length === 0 && (y = v);
|
|
514
|
+
var h = y.reduce(function(b, m) {
|
|
515
|
+
return b[m] = $e(e, {
|
|
516
|
+
placement: m,
|
|
517
|
+
boundary: o,
|
|
518
|
+
rootBoundary: a,
|
|
519
|
+
padding: c
|
|
520
|
+
})[te(m)], b;
|
|
521
|
+
}, {});
|
|
522
|
+
return Object.keys(h).sort(function(b, m) {
|
|
523
|
+
return h[b] - h[m];
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
function Nn(e) {
|
|
527
|
+
if (te(e) === Dt)
|
|
528
|
+
return [];
|
|
529
|
+
var t = ot(e);
|
|
530
|
+
return [$t(e), t, $t(t)];
|
|
531
|
+
}
|
|
532
|
+
function jn(e) {
|
|
533
|
+
var t = e.state, r = e.options, n = e.name;
|
|
534
|
+
if (!t.modifiersData[n]._skip) {
|
|
535
|
+
for (var o = r.mainAxis, a = o === void 0 ? !0 : o, c = r.altAxis, u = c === void 0 ? !0 : c, s = r.fallbackPlacements, d = r.padding, l = r.boundary, v = r.rootBoundary, y = r.altBoundary, h = r.flipVariations, b = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, w = t.options.placement, T = te(w), D = T === w, O = s || (D || !b ? [ot(w)] : Nn(w)), i = [w].concat(O).reduce(function(ne, X) {
|
|
536
|
+
return ne.concat(te(X) === Dt ? Vn(t, {
|
|
537
|
+
placement: X,
|
|
538
|
+
boundary: l,
|
|
539
|
+
rootBoundary: v,
|
|
540
|
+
padding: d,
|
|
541
|
+
flipVariations: b,
|
|
542
|
+
allowedAutoPlacements: m
|
|
543
|
+
}) : X);
|
|
544
|
+
}, []), E = t.rects.reference, p = t.rects.popper, x = /* @__PURE__ */ new Map(), _ = !0, A = i[0], R = 0; R < i.length; R++) {
|
|
545
|
+
var N = i[R], M = te(N), V = _e(N) === De, H = [k, G].indexOf(M) >= 0, $ = H ? "width" : "height", j = $e(t, {
|
|
546
|
+
placement: N,
|
|
547
|
+
boundary: l,
|
|
548
|
+
rootBoundary: v,
|
|
549
|
+
altBoundary: y,
|
|
550
|
+
padding: d
|
|
551
|
+
}), P = H ? V ? Y : F : V ? G : k;
|
|
552
|
+
E[$] > p[$] && (P = ot(P));
|
|
553
|
+
var I = ot(P), J = [];
|
|
554
|
+
if (a && J.push(j[M] <= 0), u && J.push(j[P] <= 0, j[I] <= 0), J.every(function(ne) {
|
|
555
|
+
return ne;
|
|
556
|
+
})) {
|
|
557
|
+
A = N, _ = !1;
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
x.set(N, J);
|
|
561
|
+
}
|
|
562
|
+
if (_)
|
|
563
|
+
for (var Q = b ? 3 : 1, pe = function(X) {
|
|
564
|
+
var ie = i.find(function(be) {
|
|
565
|
+
var oe = x.get(be);
|
|
566
|
+
if (oe)
|
|
567
|
+
return oe.slice(0, X).every(function(we) {
|
|
568
|
+
return we;
|
|
569
|
+
});
|
|
570
|
+
});
|
|
571
|
+
if (ie)
|
|
572
|
+
return A = ie, "break";
|
|
573
|
+
}, Z = Q; Z > 0; Z--) {
|
|
574
|
+
var de = pe(Z);
|
|
575
|
+
if (de === "break") break;
|
|
576
|
+
}
|
|
577
|
+
t.placement !== A && (t.modifiersData[n]._skip = !0, t.placement = A, t.reset = !0);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
const Pn = {
|
|
581
|
+
name: "flip",
|
|
582
|
+
enabled: !0,
|
|
583
|
+
phase: "main",
|
|
584
|
+
fn: jn,
|
|
585
|
+
requiresIfExists: ["offset"],
|
|
586
|
+
data: {
|
|
587
|
+
_skip: !1
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
function kt(e, t, r) {
|
|
591
|
+
return r === void 0 && (r = {
|
|
592
|
+
x: 0,
|
|
593
|
+
y: 0
|
|
594
|
+
}), {
|
|
595
|
+
top: e.top - t.height - r.y,
|
|
596
|
+
right: e.right - t.width + r.x,
|
|
597
|
+
bottom: e.bottom - t.height + r.y,
|
|
598
|
+
left: e.left - t.width - r.x
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
function Ft(e) {
|
|
602
|
+
return [k, Y, G, F].some(function(t) {
|
|
603
|
+
return e[t] >= 0;
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
function Bn(e) {
|
|
607
|
+
var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, a = t.modifiersData.preventOverflow, c = $e(t, {
|
|
608
|
+
elementContext: "reference"
|
|
609
|
+
}), u = $e(t, {
|
|
610
|
+
altBoundary: !0
|
|
611
|
+
}), s = kt(c, n), d = kt(u, o, a), l = Ft(s), v = Ft(d);
|
|
612
|
+
t.modifiersData[r] = {
|
|
613
|
+
referenceClippingOffsets: s,
|
|
614
|
+
popperEscapeOffsets: d,
|
|
615
|
+
isReferenceHidden: l,
|
|
616
|
+
hasPopperEscaped: v
|
|
617
|
+
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
|
618
|
+
"data-popper-reference-hidden": l,
|
|
619
|
+
"data-popper-escaped": v
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
const Hn = {
|
|
623
|
+
name: "hide",
|
|
624
|
+
enabled: !0,
|
|
625
|
+
phase: "main",
|
|
626
|
+
requiresIfExists: ["preventOverflow"],
|
|
627
|
+
fn: Bn
|
|
628
|
+
};
|
|
629
|
+
function In(e, t, r) {
|
|
630
|
+
var n = te(e), o = [F, k].indexOf(n) >= 0 ? -1 : 1, a = typeof r == "function" ? r(Object.assign({}, t, {
|
|
631
|
+
placement: e
|
|
632
|
+
})) : r, c = a[0], u = a[1];
|
|
633
|
+
return c = c || 0, u = (u || 0) * o, [F, Y].indexOf(n) >= 0 ? {
|
|
634
|
+
x: u,
|
|
635
|
+
y: c
|
|
636
|
+
} : {
|
|
637
|
+
x: c,
|
|
638
|
+
y: u
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
function $n(e) {
|
|
642
|
+
var t = e.state, r = e.options, n = e.name, o = r.offset, a = o === void 0 ? [0, 0] : o, c = dr.reduce(function(l, v) {
|
|
643
|
+
return l[v] = In(v, t.rects, a), l;
|
|
644
|
+
}, {}), u = c[t.placement], s = u.x, d = u.y;
|
|
645
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += d), t.modifiersData[n] = c;
|
|
646
|
+
}
|
|
647
|
+
const Wn = {
|
|
648
|
+
name: "offset",
|
|
649
|
+
enabled: !0,
|
|
650
|
+
phase: "main",
|
|
651
|
+
requires: ["popperOffsets"],
|
|
652
|
+
fn: $n
|
|
653
|
+
};
|
|
654
|
+
function kn(e) {
|
|
655
|
+
var t = e.state, r = e.name;
|
|
656
|
+
t.modifiersData[r] = Or({
|
|
657
|
+
reference: t.rects.reference,
|
|
658
|
+
element: t.rects.popper,
|
|
659
|
+
placement: t.placement
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
const Fn = {
|
|
663
|
+
name: "popperOffsets",
|
|
664
|
+
enabled: !0,
|
|
665
|
+
phase: "read",
|
|
666
|
+
fn: kn,
|
|
667
|
+
data: {}
|
|
668
|
+
};
|
|
669
|
+
function Un(e) {
|
|
670
|
+
return e === "x" ? "y" : "x";
|
|
671
|
+
}
|
|
672
|
+
function qn(e) {
|
|
673
|
+
var t = e.state, r = e.options, n = e.name, o = r.mainAxis, a = o === void 0 ? !0 : o, c = r.altAxis, u = c === void 0 ? !1 : c, s = r.boundary, d = r.rootBoundary, l = r.altBoundary, v = r.padding, y = r.tether, h = y === void 0 ? !0 : y, b = r.tetherOffset, m = b === void 0 ? 0 : b, w = $e(t, {
|
|
674
|
+
boundary: s,
|
|
675
|
+
rootBoundary: d,
|
|
676
|
+
padding: v,
|
|
677
|
+
altBoundary: l
|
|
678
|
+
}), T = te(t.placement), D = _e(t.placement), O = !D, i = _t(T), E = Un(i), p = t.modifiersData.popperOffsets, x = t.rects.reference, _ = t.rects.popper, A = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
679
|
+
placement: t.placement
|
|
680
|
+
})) : m, R = typeof A == "number" ? {
|
|
681
|
+
mainAxis: A,
|
|
682
|
+
altAxis: A
|
|
683
|
+
} : Object.assign({
|
|
684
|
+
mainAxis: 0,
|
|
685
|
+
altAxis: 0
|
|
686
|
+
}, A), N = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
|
|
687
|
+
x: 0,
|
|
688
|
+
y: 0
|
|
689
|
+
};
|
|
690
|
+
if (p) {
|
|
691
|
+
if (a) {
|
|
692
|
+
var V, H = i === "y" ? k : F, $ = i === "y" ? G : Y, j = i === "y" ? "height" : "width", P = p[i], I = P + w[H], J = P - w[$], Q = h ? -_[j] / 2 : 0, pe = D === De ? x[j] : _[j], Z = D === De ? -_[j] : -x[j], de = t.elements.arrow, ne = h && de ? Ct(de) : {
|
|
693
|
+
width: 0,
|
|
694
|
+
height: 0
|
|
695
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : yr(), ie = X[H], be = X[$], oe = Pe(0, x[j], ne[j]), we = O ? x[j] / 2 - Q - oe - ie - R.mainAxis : pe - oe - ie - R.mainAxis, ce = O ? -x[j] / 2 + Q + oe + be + R.mainAxis : Z + oe + be + R.mainAxis, Oe = t.elements.arrow && Ue(t.elements.arrow), ze = Oe ? i === "y" ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0, Le = (V = N == null ? void 0 : N[i]) != null ? V : 0, Ke = P + we - Le - ze, Ge = P + ce - Le, Re = Pe(h ? at(I, Ke) : I, P, h ? ye(J, Ge) : J);
|
|
696
|
+
p[i] = Re, M[i] = Re - P;
|
|
697
|
+
}
|
|
698
|
+
if (u) {
|
|
699
|
+
var Me, Ye = i === "x" ? k : F, Xe = i === "x" ? G : Y, ae = p[E], fe = E === "y" ? "height" : "width", Ve = ae + w[Ye], ve = ae - w[Xe], Ne = [k, F].indexOf(T) !== -1, Je = (Me = N == null ? void 0 : N[E]) != null ? Me : 0, Qe = Ne ? Ve : ae - x[fe] - _[fe] - Je + R.altAxis, Ze = Ne ? ae + x[fe] + _[fe] - Je - R.altAxis : ve, et = h && Ne ? hn(Qe, ae, Ze) : Pe(h ? Qe : Ve, ae, h ? Ze : ve);
|
|
700
|
+
p[E] = et, M[E] = et - ae;
|
|
701
|
+
}
|
|
702
|
+
t.modifiersData[n] = M;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
const zn = {
|
|
706
|
+
name: "preventOverflow",
|
|
707
|
+
enabled: !0,
|
|
708
|
+
phase: "main",
|
|
709
|
+
fn: qn,
|
|
710
|
+
requiresIfExists: ["offset"]
|
|
711
|
+
};
|
|
712
|
+
function Kn(e) {
|
|
713
|
+
return {
|
|
714
|
+
scrollLeft: e.scrollLeft,
|
|
715
|
+
scrollTop: e.scrollTop
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
function Gn(e) {
|
|
719
|
+
return e === q(e) || !K(e) ? Lt(e) : Kn(e);
|
|
720
|
+
}
|
|
721
|
+
function Yn(e) {
|
|
722
|
+
var t = e.getBoundingClientRect(), r = Ae(t.width) / e.offsetWidth || 1, n = Ae(t.height) / e.offsetHeight || 1;
|
|
723
|
+
return r !== 1 || n !== 1;
|
|
724
|
+
}
|
|
725
|
+
function Xn(e, t, r) {
|
|
726
|
+
r === void 0 && (r = !1);
|
|
727
|
+
var n = K(t), o = K(t) && Yn(t), a = le(t), c = Ce(e, o, r), u = {
|
|
728
|
+
scrollLeft: 0,
|
|
729
|
+
scrollTop: 0
|
|
730
|
+
}, s = {
|
|
731
|
+
x: 0,
|
|
732
|
+
y: 0
|
|
733
|
+
};
|
|
734
|
+
return (n || !n && !r) && ((re(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
735
|
+
Mt(a)) && (u = Gn(t)), K(t) ? (s = Ce(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : a && (s.x = Rt(a))), {
|
|
736
|
+
x: c.left + u.scrollLeft - s.x,
|
|
737
|
+
y: c.top + u.scrollTop - s.y,
|
|
738
|
+
width: c.width,
|
|
739
|
+
height: c.height
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function Jn(e) {
|
|
743
|
+
var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
|
|
744
|
+
e.forEach(function(a) {
|
|
745
|
+
t.set(a.name, a);
|
|
746
|
+
});
|
|
747
|
+
function o(a) {
|
|
748
|
+
r.add(a.name);
|
|
749
|
+
var c = [].concat(a.requires || [], a.requiresIfExists || []);
|
|
750
|
+
c.forEach(function(u) {
|
|
751
|
+
if (!r.has(u)) {
|
|
752
|
+
var s = t.get(u);
|
|
753
|
+
s && o(s);
|
|
754
|
+
}
|
|
755
|
+
}), n.push(a);
|
|
756
|
+
}
|
|
757
|
+
return e.forEach(function(a) {
|
|
758
|
+
r.has(a.name) || o(a);
|
|
759
|
+
}), n;
|
|
760
|
+
}
|
|
761
|
+
function Qn(e) {
|
|
762
|
+
var t = Jn(e);
|
|
763
|
+
return fn.reduce(function(r, n) {
|
|
764
|
+
return r.concat(t.filter(function(o) {
|
|
765
|
+
return o.phase === n;
|
|
766
|
+
}));
|
|
767
|
+
}, []);
|
|
768
|
+
}
|
|
769
|
+
function Zn(e) {
|
|
770
|
+
var t;
|
|
771
|
+
return function() {
|
|
772
|
+
return t || (t = new Promise(function(r) {
|
|
773
|
+
Promise.resolve().then(function() {
|
|
774
|
+
t = void 0, r(e());
|
|
775
|
+
});
|
|
776
|
+
})), t;
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
function ei(e) {
|
|
780
|
+
var t = e.reduce(function(r, n) {
|
|
781
|
+
var o = r[n.name];
|
|
782
|
+
return r[n.name] = o ? Object.assign({}, o, n, {
|
|
783
|
+
options: Object.assign({}, o.options, n.options),
|
|
784
|
+
data: Object.assign({}, o.data, n.data)
|
|
785
|
+
}) : n, r;
|
|
786
|
+
}, {});
|
|
787
|
+
return Object.keys(t).map(function(r) {
|
|
788
|
+
return t[r];
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
var Ut = {
|
|
792
|
+
placement: "bottom",
|
|
793
|
+
modifiers: [],
|
|
794
|
+
strategy: "absolute"
|
|
795
|
+
};
|
|
796
|
+
function qt() {
|
|
797
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
798
|
+
t[r] = arguments[r];
|
|
799
|
+
return !t.some(function(n) {
|
|
800
|
+
return !(n && typeof n.getBoundingClientRect == "function");
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
function ti(e) {
|
|
804
|
+
e === void 0 && (e = {});
|
|
805
|
+
var t = e, r = t.defaultModifiers, n = r === void 0 ? [] : r, o = t.defaultOptions, a = o === void 0 ? Ut : o;
|
|
806
|
+
return function(u, s, d) {
|
|
807
|
+
d === void 0 && (d = a);
|
|
808
|
+
var l = {
|
|
809
|
+
placement: "bottom",
|
|
810
|
+
orderedModifiers: [],
|
|
811
|
+
options: Object.assign({}, Ut, a),
|
|
812
|
+
modifiersData: {},
|
|
813
|
+
elements: {
|
|
814
|
+
reference: u,
|
|
815
|
+
popper: s
|
|
816
|
+
},
|
|
817
|
+
attributes: {},
|
|
818
|
+
styles: {}
|
|
819
|
+
}, v = [], y = !1, h = {
|
|
820
|
+
state: l,
|
|
821
|
+
setOptions: function(T) {
|
|
822
|
+
var D = typeof T == "function" ? T(l.options) : T;
|
|
823
|
+
m(), l.options = Object.assign({}, a, l.options, D), l.scrollParents = {
|
|
824
|
+
reference: ge(u) ? Be(u) : u.contextElement ? Be(u.contextElement) : [],
|
|
825
|
+
popper: Be(s)
|
|
826
|
+
};
|
|
827
|
+
var O = Qn(ei([].concat(n, l.options.modifiers)));
|
|
828
|
+
return l.orderedModifiers = O.filter(function(i) {
|
|
829
|
+
return i.enabled;
|
|
830
|
+
}), b(), h.update();
|
|
831
|
+
},
|
|
832
|
+
// Sync update – it will always be executed, even if not necessary. This
|
|
833
|
+
// is useful for low frequency updates where sync behavior simplifies the
|
|
834
|
+
// logic.
|
|
835
|
+
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
836
|
+
// prefer the async Popper#update method
|
|
837
|
+
forceUpdate: function() {
|
|
838
|
+
if (!y) {
|
|
839
|
+
var T = l.elements, D = T.reference, O = T.popper;
|
|
840
|
+
if (qt(D, O)) {
|
|
841
|
+
l.rects = {
|
|
842
|
+
reference: Xn(D, Ue(O), l.options.strategy === "fixed"),
|
|
843
|
+
popper: Ct(O)
|
|
844
|
+
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(R) {
|
|
845
|
+
return l.modifiersData[R.name] = Object.assign({}, R.data);
|
|
846
|
+
});
|
|
847
|
+
for (var i = 0; i < l.orderedModifiers.length; i++) {
|
|
848
|
+
if (l.reset === !0) {
|
|
849
|
+
l.reset = !1, i = -1;
|
|
850
|
+
continue;
|
|
851
|
+
}
|
|
852
|
+
var E = l.orderedModifiers[i], p = E.fn, x = E.options, _ = x === void 0 ? {} : x, A = E.name;
|
|
853
|
+
typeof p == "function" && (l = p({
|
|
854
|
+
state: l,
|
|
855
|
+
options: _,
|
|
856
|
+
name: A,
|
|
857
|
+
instance: h
|
|
858
|
+
}) || l);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
// Async and optimistically optimized update – it will not be executed if
|
|
864
|
+
// not necessary (debounced to run at most once-per-tick)
|
|
865
|
+
update: Zn(function() {
|
|
866
|
+
return new Promise(function(w) {
|
|
867
|
+
h.forceUpdate(), w(l);
|
|
868
|
+
});
|
|
869
|
+
}),
|
|
870
|
+
destroy: function() {
|
|
871
|
+
m(), y = !0;
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
if (!qt(u, s))
|
|
875
|
+
return h;
|
|
876
|
+
h.setOptions(d).then(function(w) {
|
|
877
|
+
!y && d.onFirstUpdate && d.onFirstUpdate(w);
|
|
878
|
+
});
|
|
879
|
+
function b() {
|
|
880
|
+
l.orderedModifiers.forEach(function(w) {
|
|
881
|
+
var T = w.name, D = w.options, O = D === void 0 ? {} : D, i = w.effect;
|
|
882
|
+
if (typeof i == "function") {
|
|
883
|
+
var E = i({
|
|
884
|
+
state: l,
|
|
885
|
+
name: T,
|
|
886
|
+
instance: h,
|
|
887
|
+
options: O
|
|
888
|
+
}), p = function() {
|
|
889
|
+
};
|
|
890
|
+
v.push(E || p);
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
function m() {
|
|
895
|
+
v.forEach(function(w) {
|
|
896
|
+
return w();
|
|
897
|
+
}), v = [];
|
|
898
|
+
}
|
|
899
|
+
return h;
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
var ri = [Tn, Fn, Sn, vr, Wn, Pn, zn, bn, Hn], ni = /* @__PURE__ */ ti({
|
|
903
|
+
defaultModifiers: ri
|
|
904
|
+
}), ii = "tippy-box", Er = "tippy-content", oi = "tippy-backdrop", Sr = "tippy-arrow", xr = "tippy-svg-arrow", me = {
|
|
905
|
+
passive: !0,
|
|
906
|
+
capture: !0
|
|
907
|
+
}, Tr = function() {
|
|
908
|
+
return document.body;
|
|
909
|
+
};
|
|
910
|
+
function ai(e, t) {
|
|
911
|
+
return {}.hasOwnProperty.call(e, t);
|
|
912
|
+
}
|
|
913
|
+
function lt(e, t, r) {
|
|
914
|
+
if (Array.isArray(e)) {
|
|
915
|
+
var n = e[t];
|
|
916
|
+
return n ?? (Array.isArray(r) ? r[t] : r);
|
|
917
|
+
}
|
|
918
|
+
return e;
|
|
919
|
+
}
|
|
920
|
+
function Vt(e, t) {
|
|
921
|
+
var r = {}.toString.call(e);
|
|
922
|
+
return r.indexOf("[object") === 0 && r.indexOf(t + "]") > -1;
|
|
923
|
+
}
|
|
924
|
+
function Dr(e, t) {
|
|
925
|
+
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
926
|
+
}
|
|
927
|
+
function zt(e, t) {
|
|
928
|
+
if (t === 0)
|
|
929
|
+
return e;
|
|
930
|
+
var r;
|
|
931
|
+
return function(n) {
|
|
932
|
+
clearTimeout(r), r = setTimeout(function() {
|
|
933
|
+
e(n);
|
|
934
|
+
}, t);
|
|
935
|
+
};
|
|
936
|
+
}
|
|
937
|
+
function si(e, t) {
|
|
938
|
+
var r = Object.assign({}, e);
|
|
939
|
+
return t.forEach(function(n) {
|
|
940
|
+
delete r[n];
|
|
941
|
+
}), r;
|
|
942
|
+
}
|
|
943
|
+
function ui(e) {
|
|
944
|
+
return e.split(/\s+/).filter(Boolean);
|
|
945
|
+
}
|
|
946
|
+
function Te(e) {
|
|
947
|
+
return [].concat(e);
|
|
948
|
+
}
|
|
949
|
+
function Kt(e, t) {
|
|
950
|
+
e.indexOf(t) === -1 && e.push(t);
|
|
951
|
+
}
|
|
952
|
+
function ci(e) {
|
|
953
|
+
return e.filter(function(t, r) {
|
|
954
|
+
return e.indexOf(t) === r;
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
function fi(e) {
|
|
958
|
+
return e.split("-")[0];
|
|
959
|
+
}
|
|
960
|
+
function st(e) {
|
|
961
|
+
return [].slice.call(e);
|
|
962
|
+
}
|
|
963
|
+
function Gt(e) {
|
|
964
|
+
return Object.keys(e).reduce(function(t, r) {
|
|
965
|
+
return e[r] !== void 0 && (t[r] = e[r]), t;
|
|
966
|
+
}, {});
|
|
967
|
+
}
|
|
968
|
+
function He() {
|
|
969
|
+
return document.createElement("div");
|
|
970
|
+
}
|
|
971
|
+
function We(e) {
|
|
972
|
+
return ["Element", "Fragment"].some(function(t) {
|
|
973
|
+
return Vt(e, t);
|
|
974
|
+
});
|
|
975
|
+
}
|
|
976
|
+
function li(e) {
|
|
977
|
+
return Vt(e, "NodeList");
|
|
978
|
+
}
|
|
979
|
+
function pi(e) {
|
|
980
|
+
return Vt(e, "MouseEvent");
|
|
981
|
+
}
|
|
982
|
+
function di(e) {
|
|
983
|
+
return !!(e && e._tippy && e._tippy.reference === e);
|
|
984
|
+
}
|
|
985
|
+
function vi(e) {
|
|
986
|
+
return We(e) ? [e] : li(e) ? st(e) : Array.isArray(e) ? e : st(document.querySelectorAll(e));
|
|
987
|
+
}
|
|
988
|
+
function pt(e, t) {
|
|
989
|
+
e.forEach(function(r) {
|
|
990
|
+
r && (r.style.transitionDuration = t + "ms");
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
function Yt(e, t) {
|
|
994
|
+
e.forEach(function(r) {
|
|
995
|
+
r && r.setAttribute("data-state", t);
|
|
996
|
+
});
|
|
997
|
+
}
|
|
998
|
+
function hi(e) {
|
|
999
|
+
var t, r = Te(e), n = r[0];
|
|
1000
|
+
return n != null && (t = n.ownerDocument) != null && t.body ? n.ownerDocument : document;
|
|
1001
|
+
}
|
|
1002
|
+
function mi(e, t) {
|
|
1003
|
+
var r = t.clientX, n = t.clientY;
|
|
1004
|
+
return e.every(function(o) {
|
|
1005
|
+
var a = o.popperRect, c = o.popperState, u = o.props, s = u.interactiveBorder, d = fi(c.placement), l = c.modifiersData.offset;
|
|
1006
|
+
if (!l)
|
|
1007
|
+
return !0;
|
|
1008
|
+
var v = d === "bottom" ? l.top.y : 0, y = d === "top" ? l.bottom.y : 0, h = d === "right" ? l.left.x : 0, b = d === "left" ? l.right.x : 0, m = a.top - n + v > s, w = n - a.bottom - y > s, T = a.left - r + h > s, D = r - a.right - b > s;
|
|
1009
|
+
return m || w || T || D;
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
function dt(e, t, r) {
|
|
1013
|
+
var n = t + "EventListener";
|
|
1014
|
+
["transitionend", "webkitTransitionEnd"].forEach(function(o) {
|
|
1015
|
+
e[n](o, r);
|
|
1016
|
+
});
|
|
1017
|
+
}
|
|
1018
|
+
function Xt(e, t) {
|
|
1019
|
+
for (var r = t; r; ) {
|
|
1020
|
+
var n;
|
|
1021
|
+
if (e.contains(r))
|
|
1022
|
+
return !0;
|
|
1023
|
+
r = r.getRootNode == null || (n = r.getRootNode()) == null ? void 0 : n.host;
|
|
1024
|
+
}
|
|
1025
|
+
return !1;
|
|
1026
|
+
}
|
|
1027
|
+
var ee = {
|
|
1028
|
+
isTouch: !1
|
|
1029
|
+
}, Jt = 0;
|
|
1030
|
+
function yi() {
|
|
1031
|
+
ee.isTouch || (ee.isTouch = !0, window.performance && document.addEventListener("mousemove", Ar));
|
|
1032
|
+
}
|
|
1033
|
+
function Ar() {
|
|
1034
|
+
var e = performance.now();
|
|
1035
|
+
e - Jt < 20 && (ee.isTouch = !1, document.removeEventListener("mousemove", Ar)), Jt = e;
|
|
1036
|
+
}
|
|
1037
|
+
function gi() {
|
|
1038
|
+
var e = document.activeElement;
|
|
1039
|
+
if (di(e)) {
|
|
1040
|
+
var t = e._tippy;
|
|
1041
|
+
e.blur && !t.state.isVisible && e.blur();
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
function bi() {
|
|
1045
|
+
document.addEventListener("touchstart", yi, me), window.addEventListener("blur", gi);
|
|
1046
|
+
}
|
|
1047
|
+
var wi = typeof window < "u" && typeof document < "u", Oi = wi ? (
|
|
1048
|
+
// @ts-ignore
|
|
1049
|
+
!!window.msCrypto
|
|
1050
|
+
) : !1;
|
|
1051
|
+
function xe(e) {
|
|
1052
|
+
var t = e === "destroy" ? "n already-" : " ";
|
|
1053
|
+
return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
1054
|
+
}
|
|
1055
|
+
function Qt(e) {
|
|
1056
|
+
var t = /[ \t]{2,}/g, r = /^[ \t]*/gm;
|
|
1057
|
+
return e.replace(t, " ").replace(r, "").trim();
|
|
1058
|
+
}
|
|
1059
|
+
function Ei(e) {
|
|
1060
|
+
return Qt(`
|
|
1061
|
+
%ctippy.js
|
|
1062
|
+
|
|
1063
|
+
%c` + Qt(e) + `
|
|
1064
|
+
|
|
1065
|
+
%c👷 This is a development-only message. It will be removed in production.
|
|
1066
|
+
`);
|
|
1067
|
+
}
|
|
1068
|
+
function Cr(e) {
|
|
1069
|
+
return [
|
|
1070
|
+
Ei(e),
|
|
1071
|
+
// title
|
|
1072
|
+
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
1073
|
+
// message
|
|
1074
|
+
"line-height: 1.5",
|
|
1075
|
+
// footer
|
|
1076
|
+
"color: #a6a095;"
|
|
1077
|
+
];
|
|
1078
|
+
}
|
|
1079
|
+
var ke;
|
|
1080
|
+
process.env.NODE_ENV !== "production" && Si();
|
|
1081
|
+
function Si() {
|
|
1082
|
+
ke = /* @__PURE__ */ new Set();
|
|
1083
|
+
}
|
|
1084
|
+
function se(e, t) {
|
|
1085
|
+
if (e && !ke.has(t)) {
|
|
1086
|
+
var r;
|
|
1087
|
+
ke.add(t), (r = console).warn.apply(r, Cr(t));
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function Ot(e, t) {
|
|
1091
|
+
if (e && !ke.has(t)) {
|
|
1092
|
+
var r;
|
|
1093
|
+
ke.add(t), (r = console).error.apply(r, Cr(t));
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
function xi(e) {
|
|
1097
|
+
var t = !e, r = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
1098
|
+
Ot(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ot(r, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1099
|
+
}
|
|
1100
|
+
var _r = {
|
|
1101
|
+
animateFill: !1,
|
|
1102
|
+
followCursor: !1,
|
|
1103
|
+
inlinePositioning: !1,
|
|
1104
|
+
sticky: !1
|
|
1105
|
+
}, Ti = {
|
|
1106
|
+
allowHTML: !1,
|
|
1107
|
+
animation: "fade",
|
|
1108
|
+
arrow: !0,
|
|
1109
|
+
content: "",
|
|
1110
|
+
inertia: !1,
|
|
1111
|
+
maxWidth: 350,
|
|
1112
|
+
role: "tooltip",
|
|
1113
|
+
theme: "",
|
|
1114
|
+
zIndex: 9999
|
|
1115
|
+
}, U = Object.assign({
|
|
1116
|
+
appendTo: Tr,
|
|
1117
|
+
aria: {
|
|
1118
|
+
content: "auto",
|
|
1119
|
+
expanded: "auto"
|
|
1120
|
+
},
|
|
1121
|
+
delay: 0,
|
|
1122
|
+
duration: [300, 250],
|
|
1123
|
+
getReferenceClientRect: null,
|
|
1124
|
+
hideOnClick: !0,
|
|
1125
|
+
ignoreAttributes: !1,
|
|
1126
|
+
interactive: !1,
|
|
1127
|
+
interactiveBorder: 2,
|
|
1128
|
+
interactiveDebounce: 0,
|
|
1129
|
+
moveTransition: "",
|
|
1130
|
+
offset: [0, 10],
|
|
1131
|
+
onAfterUpdate: function() {
|
|
1132
|
+
},
|
|
1133
|
+
onBeforeUpdate: function() {
|
|
1134
|
+
},
|
|
1135
|
+
onCreate: function() {
|
|
1136
|
+
},
|
|
1137
|
+
onDestroy: function() {
|
|
1138
|
+
},
|
|
1139
|
+
onHidden: function() {
|
|
1140
|
+
},
|
|
1141
|
+
onHide: function() {
|
|
1142
|
+
},
|
|
1143
|
+
onMount: function() {
|
|
1144
|
+
},
|
|
1145
|
+
onShow: function() {
|
|
1146
|
+
},
|
|
1147
|
+
onShown: function() {
|
|
1148
|
+
},
|
|
1149
|
+
onTrigger: function() {
|
|
1150
|
+
},
|
|
1151
|
+
onUntrigger: function() {
|
|
1152
|
+
},
|
|
1153
|
+
onClickOutside: function() {
|
|
1154
|
+
},
|
|
1155
|
+
placement: "top",
|
|
1156
|
+
plugins: [],
|
|
1157
|
+
popperOptions: {},
|
|
1158
|
+
render: null,
|
|
1159
|
+
showOnCreate: !1,
|
|
1160
|
+
touch: !0,
|
|
1161
|
+
trigger: "mouseenter focus",
|
|
1162
|
+
triggerTarget: null
|
|
1163
|
+
}, _r, Ti), Di = Object.keys(U), Ai = function(t) {
|
|
1164
|
+
process.env.NODE_ENV !== "production" && Rr(t, []);
|
|
1165
|
+
var r = Object.keys(t);
|
|
1166
|
+
r.forEach(function(n) {
|
|
1167
|
+
U[n] = t[n];
|
|
1168
|
+
});
|
|
1169
|
+
};
|
|
1170
|
+
function Lr(e) {
|
|
1171
|
+
var t = e.plugins || [], r = t.reduce(function(n, o) {
|
|
1172
|
+
var a = o.name, c = o.defaultValue;
|
|
1173
|
+
if (a) {
|
|
1174
|
+
var u;
|
|
1175
|
+
n[a] = e[a] !== void 0 ? e[a] : (u = U[a]) != null ? u : c;
|
|
1176
|
+
}
|
|
1177
|
+
return n;
|
|
1178
|
+
}, {});
|
|
1179
|
+
return Object.assign({}, e, r);
|
|
1180
|
+
}
|
|
1181
|
+
function Ci(e, t) {
|
|
1182
|
+
var r = t ? Object.keys(Lr(Object.assign({}, U, {
|
|
1183
|
+
plugins: t
|
|
1184
|
+
}))) : Di, n = r.reduce(function(o, a) {
|
|
1185
|
+
var c = (e.getAttribute("data-tippy-" + a) || "").trim();
|
|
1186
|
+
if (!c)
|
|
1187
|
+
return o;
|
|
1188
|
+
if (a === "content")
|
|
1189
|
+
o[a] = c;
|
|
1190
|
+
else
|
|
1191
|
+
try {
|
|
1192
|
+
o[a] = JSON.parse(c);
|
|
1193
|
+
} catch {
|
|
1194
|
+
o[a] = c;
|
|
1195
|
+
}
|
|
1196
|
+
return o;
|
|
1197
|
+
}, {});
|
|
1198
|
+
return n;
|
|
1199
|
+
}
|
|
1200
|
+
function Zt(e, t) {
|
|
1201
|
+
var r = Object.assign({}, t, {
|
|
1202
|
+
content: Dr(t.content, [e])
|
|
1203
|
+
}, t.ignoreAttributes ? {} : Ci(e, t.plugins));
|
|
1204
|
+
return r.aria = Object.assign({}, U.aria, r.aria), r.aria = {
|
|
1205
|
+
expanded: r.aria.expanded === "auto" ? t.interactive : r.aria.expanded,
|
|
1206
|
+
content: r.aria.content === "auto" ? t.interactive ? null : "describedby" : r.aria.content
|
|
1207
|
+
}, r;
|
|
1208
|
+
}
|
|
1209
|
+
function Rr(e, t) {
|
|
1210
|
+
e === void 0 && (e = {}), t === void 0 && (t = []);
|
|
1211
|
+
var r = Object.keys(e);
|
|
1212
|
+
r.forEach(function(n) {
|
|
1213
|
+
var o = si(U, Object.keys(_r)), a = !ai(o, n);
|
|
1214
|
+
a && (a = t.filter(function(c) {
|
|
1215
|
+
return c.name === n;
|
|
1216
|
+
}).length === 0), se(a, ["`" + n + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
1217
|
+
|
|
1218
|
+
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
1219
|
+
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
var _i = function() {
|
|
1223
|
+
return "innerHTML";
|
|
1224
|
+
};
|
|
1225
|
+
function Et(e, t) {
|
|
1226
|
+
e[_i()] = t;
|
|
1227
|
+
}
|
|
1228
|
+
function er(e) {
|
|
1229
|
+
var t = He();
|
|
1230
|
+
return e === !0 ? t.className = Sr : (t.className = xr, We(e) ? t.appendChild(e) : Et(t, e)), t;
|
|
1231
|
+
}
|
|
1232
|
+
function tr(e, t) {
|
|
1233
|
+
We(t.content) ? (Et(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? Et(e, t.content) : e.textContent = t.content);
|
|
1234
|
+
}
|
|
1235
|
+
function St(e) {
|
|
1236
|
+
var t = e.firstElementChild, r = st(t.children);
|
|
1237
|
+
return {
|
|
1238
|
+
box: t,
|
|
1239
|
+
content: r.find(function(n) {
|
|
1240
|
+
return n.classList.contains(Er);
|
|
1241
|
+
}),
|
|
1242
|
+
arrow: r.find(function(n) {
|
|
1243
|
+
return n.classList.contains(Sr) || n.classList.contains(xr);
|
|
1244
|
+
}),
|
|
1245
|
+
backdrop: r.find(function(n) {
|
|
1246
|
+
return n.classList.contains(oi);
|
|
1247
|
+
})
|
|
1248
|
+
};
|
|
1249
|
+
}
|
|
1250
|
+
function Mr(e) {
|
|
1251
|
+
var t = He(), r = He();
|
|
1252
|
+
r.className = ii, r.setAttribute("data-state", "hidden"), r.setAttribute("tabindex", "-1");
|
|
1253
|
+
var n = He();
|
|
1254
|
+
n.className = Er, n.setAttribute("data-state", "hidden"), tr(n, e.props), t.appendChild(r), r.appendChild(n), o(e.props, e.props);
|
|
1255
|
+
function o(a, c) {
|
|
1256
|
+
var u = St(t), s = u.box, d = u.content, l = u.arrow;
|
|
1257
|
+
c.theme ? s.setAttribute("data-theme", c.theme) : s.removeAttribute("data-theme"), typeof c.animation == "string" ? s.setAttribute("data-animation", c.animation) : s.removeAttribute("data-animation"), c.inertia ? s.setAttribute("data-inertia", "") : s.removeAttribute("data-inertia"), s.style.maxWidth = typeof c.maxWidth == "number" ? c.maxWidth + "px" : c.maxWidth, c.role ? s.setAttribute("role", c.role) : s.removeAttribute("role"), (a.content !== c.content || a.allowHTML !== c.allowHTML) && tr(d, e.props), c.arrow ? l ? a.arrow !== c.arrow && (s.removeChild(l), s.appendChild(er(c.arrow))) : s.appendChild(er(c.arrow)) : l && s.removeChild(l);
|
|
1258
|
+
}
|
|
1259
|
+
return {
|
|
1260
|
+
popper: t,
|
|
1261
|
+
onUpdate: o
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
Mr.$$tippy = !0;
|
|
1265
|
+
var Li = 1, it = [], vt = [];
|
|
1266
|
+
function Ri(e, t) {
|
|
1267
|
+
var r = Zt(e, Object.assign({}, U, Lr(Gt(t)))), n, o, a, c = !1, u = !1, s = !1, d = !1, l, v, y, h = [], b = zt(Ke, r.interactiveDebounce), m, w = Li++, T = null, D = ci(r.plugins), O = {
|
|
1268
|
+
// Is the instance currently enabled?
|
|
1269
|
+
isEnabled: !0,
|
|
1270
|
+
// Is the tippy currently showing and not transitioning out?
|
|
1271
|
+
isVisible: !1,
|
|
1272
|
+
// Has the instance been destroyed?
|
|
1273
|
+
isDestroyed: !1,
|
|
1274
|
+
// Is the tippy currently mounted to the DOM?
|
|
1275
|
+
isMounted: !1,
|
|
1276
|
+
// Has the tippy finished transitioning in?
|
|
1277
|
+
isShown: !1
|
|
1278
|
+
}, i = {
|
|
1279
|
+
// properties
|
|
1280
|
+
id: w,
|
|
1281
|
+
reference: e,
|
|
1282
|
+
popper: He(),
|
|
1283
|
+
popperInstance: T,
|
|
1284
|
+
props: r,
|
|
1285
|
+
state: O,
|
|
1286
|
+
plugins: D,
|
|
1287
|
+
// methods
|
|
1288
|
+
clearDelayTimeouts: Qe,
|
|
1289
|
+
setProps: Ze,
|
|
1290
|
+
setContent: et,
|
|
1291
|
+
show: jr,
|
|
1292
|
+
hide: Pr,
|
|
1293
|
+
hideWithInteractivity: Br,
|
|
1294
|
+
enable: Ne,
|
|
1295
|
+
disable: Je,
|
|
1296
|
+
unmount: Hr,
|
|
1297
|
+
destroy: Ir
|
|
1298
|
+
};
|
|
1299
|
+
if (!r.render)
|
|
1300
|
+
return process.env.NODE_ENV !== "production" && Ot(!0, "render() function has not been supplied."), i;
|
|
1301
|
+
var E = r.render(i), p = E.popper, x = E.onUpdate;
|
|
1302
|
+
p.setAttribute("data-tippy-root", ""), p.id = "tippy-" + i.id, i.popper = p, e._tippy = i, p._tippy = i;
|
|
1303
|
+
var _ = D.map(function(f) {
|
|
1304
|
+
return f.fn(i);
|
|
1305
|
+
}), A = e.hasAttribute("aria-expanded");
|
|
1306
|
+
return Oe(), Q(), P(), I("onCreate", [i]), r.showOnCreate && Ve(), p.addEventListener("mouseenter", function() {
|
|
1307
|
+
i.props.interactive && i.state.isVisible && i.clearDelayTimeouts();
|
|
1308
|
+
}), p.addEventListener("mouseleave", function() {
|
|
1309
|
+
i.props.interactive && i.props.trigger.indexOf("mouseenter") >= 0 && H().addEventListener("mousemove", b);
|
|
1310
|
+
}), i;
|
|
1311
|
+
function R() {
|
|
1312
|
+
var f = i.props.touch;
|
|
1313
|
+
return Array.isArray(f) ? f : [f, 0];
|
|
1314
|
+
}
|
|
1315
|
+
function N() {
|
|
1316
|
+
return R()[0] === "hold";
|
|
1317
|
+
}
|
|
1318
|
+
function M() {
|
|
1319
|
+
var f;
|
|
1320
|
+
return !!((f = i.props.render) != null && f.$$tippy);
|
|
1321
|
+
}
|
|
1322
|
+
function V() {
|
|
1323
|
+
return m || e;
|
|
1324
|
+
}
|
|
1325
|
+
function H() {
|
|
1326
|
+
var f = V().parentNode;
|
|
1327
|
+
return f ? hi(f) : document;
|
|
1328
|
+
}
|
|
1329
|
+
function $() {
|
|
1330
|
+
return St(p);
|
|
1331
|
+
}
|
|
1332
|
+
function j(f) {
|
|
1333
|
+
return i.state.isMounted && !i.state.isVisible || ee.isTouch || l && l.type === "focus" ? 0 : lt(i.props.delay, f ? 0 : 1, U.delay);
|
|
1334
|
+
}
|
|
1335
|
+
function P(f) {
|
|
1336
|
+
f === void 0 && (f = !1), p.style.pointerEvents = i.props.interactive && !f ? "" : "none", p.style.zIndex = "" + i.props.zIndex;
|
|
1337
|
+
}
|
|
1338
|
+
function I(f, g, S) {
|
|
1339
|
+
if (S === void 0 && (S = !0), _.forEach(function(C) {
|
|
1340
|
+
C[f] && C[f].apply(C, g);
|
|
1341
|
+
}), S) {
|
|
1342
|
+
var L;
|
|
1343
|
+
(L = i.props)[f].apply(L, g);
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
function J() {
|
|
1347
|
+
var f = i.props.aria;
|
|
1348
|
+
if (f.content) {
|
|
1349
|
+
var g = "aria-" + f.content, S = p.id, L = Te(i.props.triggerTarget || e);
|
|
1350
|
+
L.forEach(function(C) {
|
|
1351
|
+
var W = C.getAttribute(g);
|
|
1352
|
+
if (i.state.isVisible)
|
|
1353
|
+
C.setAttribute(g, W ? W + " " + S : S);
|
|
1354
|
+
else {
|
|
1355
|
+
var z = W && W.replace(S, "").trim();
|
|
1356
|
+
z ? C.setAttribute(g, z) : C.removeAttribute(g);
|
|
1357
|
+
}
|
|
1358
|
+
});
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
function Q() {
|
|
1362
|
+
if (!(A || !i.props.aria.expanded)) {
|
|
1363
|
+
var f = Te(i.props.triggerTarget || e);
|
|
1364
|
+
f.forEach(function(g) {
|
|
1365
|
+
i.props.interactive ? g.setAttribute("aria-expanded", i.state.isVisible && g === V() ? "true" : "false") : g.removeAttribute("aria-expanded");
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
function pe() {
|
|
1370
|
+
H().removeEventListener("mousemove", b), it = it.filter(function(f) {
|
|
1371
|
+
return f !== b;
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1374
|
+
function Z(f) {
|
|
1375
|
+
if (!(ee.isTouch && (s || f.type === "mousedown"))) {
|
|
1376
|
+
var g = f.composedPath && f.composedPath()[0] || f.target;
|
|
1377
|
+
if (!(i.props.interactive && Xt(p, g))) {
|
|
1378
|
+
if (Te(i.props.triggerTarget || e).some(function(S) {
|
|
1379
|
+
return Xt(S, g);
|
|
1380
|
+
})) {
|
|
1381
|
+
if (ee.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
|
|
1382
|
+
return;
|
|
1383
|
+
} else
|
|
1384
|
+
I("onClickOutside", [i, f]);
|
|
1385
|
+
i.props.hideOnClick === !0 && (i.clearDelayTimeouts(), i.hide(), u = !0, setTimeout(function() {
|
|
1386
|
+
u = !1;
|
|
1387
|
+
}), i.state.isMounted || ie());
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
function de() {
|
|
1392
|
+
s = !0;
|
|
1393
|
+
}
|
|
1394
|
+
function ne() {
|
|
1395
|
+
s = !1;
|
|
1396
|
+
}
|
|
1397
|
+
function X() {
|
|
1398
|
+
var f = H();
|
|
1399
|
+
f.addEventListener("mousedown", Z, !0), f.addEventListener("touchend", Z, me), f.addEventListener("touchstart", ne, me), f.addEventListener("touchmove", de, me);
|
|
1400
|
+
}
|
|
1401
|
+
function ie() {
|
|
1402
|
+
var f = H();
|
|
1403
|
+
f.removeEventListener("mousedown", Z, !0), f.removeEventListener("touchend", Z, me), f.removeEventListener("touchstart", ne, me), f.removeEventListener("touchmove", de, me);
|
|
1404
|
+
}
|
|
1405
|
+
function be(f, g) {
|
|
1406
|
+
we(f, function() {
|
|
1407
|
+
!i.state.isVisible && p.parentNode && p.parentNode.contains(p) && g();
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
function oe(f, g) {
|
|
1411
|
+
we(f, g);
|
|
1412
|
+
}
|
|
1413
|
+
function we(f, g) {
|
|
1414
|
+
var S = $().box;
|
|
1415
|
+
function L(C) {
|
|
1416
|
+
C.target === S && (dt(S, "remove", L), g());
|
|
1417
|
+
}
|
|
1418
|
+
if (f === 0)
|
|
1419
|
+
return g();
|
|
1420
|
+
dt(S, "remove", v), dt(S, "add", L), v = L;
|
|
1421
|
+
}
|
|
1422
|
+
function ce(f, g, S) {
|
|
1423
|
+
S === void 0 && (S = !1);
|
|
1424
|
+
var L = Te(i.props.triggerTarget || e);
|
|
1425
|
+
L.forEach(function(C) {
|
|
1426
|
+
C.addEventListener(f, g, S), h.push({
|
|
1427
|
+
node: C,
|
|
1428
|
+
eventType: f,
|
|
1429
|
+
handler: g,
|
|
1430
|
+
options: S
|
|
1431
|
+
});
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
function Oe() {
|
|
1435
|
+
N() && (ce("touchstart", Le, {
|
|
1436
|
+
passive: !0
|
|
1437
|
+
}), ce("touchend", Ge, {
|
|
1438
|
+
passive: !0
|
|
1439
|
+
})), ui(i.props.trigger).forEach(function(f) {
|
|
1440
|
+
if (f !== "manual")
|
|
1441
|
+
switch (ce(f, Le), f) {
|
|
1442
|
+
case "mouseenter":
|
|
1443
|
+
ce("mouseleave", Ge);
|
|
1444
|
+
break;
|
|
1445
|
+
case "focus":
|
|
1446
|
+
ce(Oi ? "focusout" : "blur", Re);
|
|
1447
|
+
break;
|
|
1448
|
+
case "focusin":
|
|
1449
|
+
ce("focusout", Re);
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
function ze() {
|
|
1455
|
+
h.forEach(function(f) {
|
|
1456
|
+
var g = f.node, S = f.eventType, L = f.handler, C = f.options;
|
|
1457
|
+
g.removeEventListener(S, L, C);
|
|
1458
|
+
}), h = [];
|
|
1459
|
+
}
|
|
1460
|
+
function Le(f) {
|
|
1461
|
+
var g, S = !1;
|
|
1462
|
+
if (!(!i.state.isEnabled || Me(f) || u)) {
|
|
1463
|
+
var L = ((g = l) == null ? void 0 : g.type) === "focus";
|
|
1464
|
+
l = f, m = f.currentTarget, Q(), !i.state.isVisible && pi(f) && it.forEach(function(C) {
|
|
1465
|
+
return C(f);
|
|
1466
|
+
}), f.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || c) && i.props.hideOnClick !== !1 && i.state.isVisible ? S = !0 : Ve(f), f.type === "click" && (c = !S), S && !L && ve(f);
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
function Ke(f) {
|
|
1470
|
+
var g = f.target, S = V().contains(g) || p.contains(g);
|
|
1471
|
+
if (!(f.type === "mousemove" && S)) {
|
|
1472
|
+
var L = fe().concat(p).map(function(C) {
|
|
1473
|
+
var W, z = C._tippy, Ee = (W = z.popperInstance) == null ? void 0 : W.state;
|
|
1474
|
+
return Ee ? {
|
|
1475
|
+
popperRect: C.getBoundingClientRect(),
|
|
1476
|
+
popperState: Ee,
|
|
1477
|
+
props: r
|
|
1478
|
+
} : null;
|
|
1479
|
+
}).filter(Boolean);
|
|
1480
|
+
mi(L, f) && (pe(), ve(f));
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
function Ge(f) {
|
|
1484
|
+
var g = Me(f) || i.props.trigger.indexOf("click") >= 0 && c;
|
|
1485
|
+
if (!g) {
|
|
1486
|
+
if (i.props.interactive) {
|
|
1487
|
+
i.hideWithInteractivity(f);
|
|
1488
|
+
return;
|
|
1489
|
+
}
|
|
1490
|
+
ve(f);
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
function Re(f) {
|
|
1494
|
+
i.props.trigger.indexOf("focusin") < 0 && f.target !== V() || i.props.interactive && f.relatedTarget && p.contains(f.relatedTarget) || ve(f);
|
|
1495
|
+
}
|
|
1496
|
+
function Me(f) {
|
|
1497
|
+
return ee.isTouch ? N() !== f.type.indexOf("touch") >= 0 : !1;
|
|
1498
|
+
}
|
|
1499
|
+
function Ye() {
|
|
1500
|
+
Xe();
|
|
1501
|
+
var f = i.props, g = f.popperOptions, S = f.placement, L = f.offset, C = f.getReferenceClientRect, W = f.moveTransition, z = M() ? St(p).arrow : null, Ee = C ? {
|
|
1502
|
+
getBoundingClientRect: C,
|
|
1503
|
+
contextElement: C.contextElement || V()
|
|
1504
|
+
} : e, jt = {
|
|
1505
|
+
name: "$$tippy",
|
|
1506
|
+
enabled: !0,
|
|
1507
|
+
phase: "beforeWrite",
|
|
1508
|
+
requires: ["computeStyles"],
|
|
1509
|
+
fn: function(tt) {
|
|
1510
|
+
var Se = tt.state;
|
|
1511
|
+
if (M()) {
|
|
1512
|
+
var $r = $(), ft = $r.box;
|
|
1513
|
+
["placement", "reference-hidden", "escaped"].forEach(function(rt) {
|
|
1514
|
+
rt === "placement" ? ft.setAttribute("data-placement", Se.placement) : Se.attributes.popper["data-popper-" + rt] ? ft.setAttribute("data-" + rt, "") : ft.removeAttribute("data-" + rt);
|
|
1515
|
+
}), Se.attributes.popper = {};
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
}, he = [{
|
|
1519
|
+
name: "offset",
|
|
1520
|
+
options: {
|
|
1521
|
+
offset: L
|
|
1522
|
+
}
|
|
1523
|
+
}, {
|
|
1524
|
+
name: "preventOverflow",
|
|
1525
|
+
options: {
|
|
1526
|
+
padding: {
|
|
1527
|
+
top: 2,
|
|
1528
|
+
bottom: 2,
|
|
1529
|
+
left: 5,
|
|
1530
|
+
right: 5
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
}, {
|
|
1534
|
+
name: "flip",
|
|
1535
|
+
options: {
|
|
1536
|
+
padding: 5
|
|
1537
|
+
}
|
|
1538
|
+
}, {
|
|
1539
|
+
name: "computeStyles",
|
|
1540
|
+
options: {
|
|
1541
|
+
adaptive: !W
|
|
1542
|
+
}
|
|
1543
|
+
}, jt];
|
|
1544
|
+
M() && z && he.push({
|
|
1545
|
+
name: "arrow",
|
|
1546
|
+
options: {
|
|
1547
|
+
element: z,
|
|
1548
|
+
padding: 3
|
|
1549
|
+
}
|
|
1550
|
+
}), he.push.apply(he, (g == null ? void 0 : g.modifiers) || []), i.popperInstance = ni(Ee, p, Object.assign({}, g, {
|
|
1551
|
+
placement: S,
|
|
1552
|
+
onFirstUpdate: y,
|
|
1553
|
+
modifiers: he
|
|
1554
|
+
}));
|
|
1555
|
+
}
|
|
1556
|
+
function Xe() {
|
|
1557
|
+
i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
|
|
1558
|
+
}
|
|
1559
|
+
function ae() {
|
|
1560
|
+
var f = i.props.appendTo, g, S = V();
|
|
1561
|
+
i.props.interactive && f === Tr || f === "parent" ? g = S.parentNode : g = Dr(f, [S]), g.contains(p) || g.appendChild(p), i.state.isMounted = !0, Ye(), process.env.NODE_ENV !== "production" && se(i.props.interactive && f === U.appendTo && S.nextElementSibling !== p, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
1562
|
+
|
|
1563
|
+
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
1564
|
+
|
|
1565
|
+
`, "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", `
|
|
1566
|
+
|
|
1567
|
+
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
1568
|
+
}
|
|
1569
|
+
function fe() {
|
|
1570
|
+
return st(p.querySelectorAll("[data-tippy-root]"));
|
|
1571
|
+
}
|
|
1572
|
+
function Ve(f) {
|
|
1573
|
+
i.clearDelayTimeouts(), f && I("onTrigger", [i, f]), X();
|
|
1574
|
+
var g = j(!0), S = R(), L = S[0], C = S[1];
|
|
1575
|
+
ee.isTouch && L === "hold" && C && (g = C), g ? n = setTimeout(function() {
|
|
1576
|
+
i.show();
|
|
1577
|
+
}, g) : i.show();
|
|
1578
|
+
}
|
|
1579
|
+
function ve(f) {
|
|
1580
|
+
if (i.clearDelayTimeouts(), I("onUntrigger", [i, f]), !i.state.isVisible) {
|
|
1581
|
+
ie();
|
|
1582
|
+
return;
|
|
1583
|
+
}
|
|
1584
|
+
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(f.type) >= 0 && c)) {
|
|
1585
|
+
var g = j(!1);
|
|
1586
|
+
g ? o = setTimeout(function() {
|
|
1587
|
+
i.state.isVisible && i.hide();
|
|
1588
|
+
}, g) : a = requestAnimationFrame(function() {
|
|
1589
|
+
i.hide();
|
|
1590
|
+
});
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
function Ne() {
|
|
1594
|
+
i.state.isEnabled = !0;
|
|
1595
|
+
}
|
|
1596
|
+
function Je() {
|
|
1597
|
+
i.hide(), i.state.isEnabled = !1;
|
|
1598
|
+
}
|
|
1599
|
+
function Qe() {
|
|
1600
|
+
clearTimeout(n), clearTimeout(o), cancelAnimationFrame(a);
|
|
1601
|
+
}
|
|
1602
|
+
function Ze(f) {
|
|
1603
|
+
if (process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("setProps")), !i.state.isDestroyed) {
|
|
1604
|
+
I("onBeforeUpdate", [i, f]), ze();
|
|
1605
|
+
var g = i.props, S = Zt(e, Object.assign({}, g, Gt(f), {
|
|
1606
|
+
ignoreAttributes: !0
|
|
1607
|
+
}));
|
|
1608
|
+
i.props = S, Oe(), g.interactiveDebounce !== S.interactiveDebounce && (pe(), b = zt(Ke, S.interactiveDebounce)), g.triggerTarget && !S.triggerTarget ? Te(g.triggerTarget).forEach(function(L) {
|
|
1609
|
+
L.removeAttribute("aria-expanded");
|
|
1610
|
+
}) : S.triggerTarget && e.removeAttribute("aria-expanded"), Q(), P(), x && x(g, S), i.popperInstance && (Ye(), fe().forEach(function(L) {
|
|
1611
|
+
requestAnimationFrame(L._tippy.popperInstance.forceUpdate);
|
|
1612
|
+
})), I("onAfterUpdate", [i, f]);
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
function et(f) {
|
|
1616
|
+
i.setProps({
|
|
1617
|
+
content: f
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1620
|
+
function jr() {
|
|
1621
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("show"));
|
|
1622
|
+
var f = i.state.isVisible, g = i.state.isDestroyed, S = !i.state.isEnabled, L = ee.isTouch && !i.props.touch, C = lt(i.props.duration, 0, U.duration);
|
|
1623
|
+
if (!(f || g || S || L) && !V().hasAttribute("disabled") && (I("onShow", [i], !1), i.props.onShow(i) !== !1)) {
|
|
1624
|
+
if (i.state.isVisible = !0, M() && (p.style.visibility = "visible"), P(), X(), i.state.isMounted || (p.style.transition = "none"), M()) {
|
|
1625
|
+
var W = $(), z = W.box, Ee = W.content;
|
|
1626
|
+
pt([z, Ee], 0);
|
|
1627
|
+
}
|
|
1628
|
+
y = function() {
|
|
1629
|
+
var he;
|
|
1630
|
+
if (!(!i.state.isVisible || d)) {
|
|
1631
|
+
if (d = !0, p.offsetHeight, p.style.transition = i.props.moveTransition, M() && i.props.animation) {
|
|
1632
|
+
var ct = $(), tt = ct.box, Se = ct.content;
|
|
1633
|
+
pt([tt, Se], C), Yt([tt, Se], "visible");
|
|
1634
|
+
}
|
|
1635
|
+
J(), Q(), Kt(vt, i), (he = i.popperInstance) == null || he.forceUpdate(), I("onMount", [i]), i.props.animation && M() && oe(C, function() {
|
|
1636
|
+
i.state.isShown = !0, I("onShown", [i]);
|
|
1637
|
+
});
|
|
1638
|
+
}
|
|
1639
|
+
}, ae();
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
function Pr() {
|
|
1643
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("hide"));
|
|
1644
|
+
var f = !i.state.isVisible, g = i.state.isDestroyed, S = !i.state.isEnabled, L = lt(i.props.duration, 1, U.duration);
|
|
1645
|
+
if (!(f || g || S) && (I("onHide", [i], !1), i.props.onHide(i) !== !1)) {
|
|
1646
|
+
if (i.state.isVisible = !1, i.state.isShown = !1, d = !1, c = !1, M() && (p.style.visibility = "hidden"), pe(), ie(), P(!0), M()) {
|
|
1647
|
+
var C = $(), W = C.box, z = C.content;
|
|
1648
|
+
i.props.animation && (pt([W, z], L), Yt([W, z], "hidden"));
|
|
1649
|
+
}
|
|
1650
|
+
J(), Q(), i.props.animation ? M() && be(L, i.unmount) : i.unmount();
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
function Br(f) {
|
|
1654
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("hideWithInteractivity")), H().addEventListener("mousemove", b), Kt(it, b), b(f);
|
|
1655
|
+
}
|
|
1656
|
+
function Hr() {
|
|
1657
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Xe(), fe().forEach(function(f) {
|
|
1658
|
+
f._tippy.unmount();
|
|
1659
|
+
}), p.parentNode && p.parentNode.removeChild(p), vt = vt.filter(function(f) {
|
|
1660
|
+
return f !== i;
|
|
1661
|
+
}), i.state.isMounted = !1, I("onHidden", [i]));
|
|
1662
|
+
}
|
|
1663
|
+
function Ir() {
|
|
1664
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("destroy")), !i.state.isDestroyed && (i.clearDelayTimeouts(), i.unmount(), ze(), delete e._tippy, i.state.isDestroyed = !0, I("onDestroy", [i]));
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
function qe(e, t) {
|
|
1668
|
+
t === void 0 && (t = {});
|
|
1669
|
+
var r = U.plugins.concat(t.plugins || []);
|
|
1670
|
+
process.env.NODE_ENV !== "production" && (xi(e), Rr(t, r)), bi();
|
|
1671
|
+
var n = Object.assign({}, t, {
|
|
1672
|
+
plugins: r
|
|
1673
|
+
}), o = vi(e);
|
|
1674
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1675
|
+
var a = We(n.content), c = o.length > 1;
|
|
1676
|
+
se(a && c, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
1677
|
+
|
|
1678
|
+
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
1679
|
+
|
|
1680
|
+
`, `1) content: element.innerHTML
|
|
1681
|
+
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
1682
|
+
}
|
|
1683
|
+
var u = o.reduce(function(s, d) {
|
|
1684
|
+
var l = d && Ri(d, n);
|
|
1685
|
+
return l && s.push(l), s;
|
|
1686
|
+
}, []);
|
|
1687
|
+
return We(e) ? u[0] : u;
|
|
1688
|
+
}
|
|
1689
|
+
qe.defaultProps = U;
|
|
1690
|
+
qe.setDefaultProps = Ai;
|
|
1691
|
+
qe.currentInput = ee;
|
|
1692
|
+
Object.assign({}, vr, {
|
|
1693
|
+
effect: function(t) {
|
|
1694
|
+
var r = t.state, n = {
|
|
1695
|
+
popper: {
|
|
1696
|
+
position: r.options.strategy,
|
|
1697
|
+
left: "0",
|
|
1698
|
+
top: "0",
|
|
1699
|
+
margin: "0"
|
|
1700
|
+
},
|
|
1701
|
+
arrow: {
|
|
1702
|
+
position: "absolute"
|
|
1703
|
+
},
|
|
1704
|
+
reference: {}
|
|
1705
|
+
};
|
|
1706
|
+
Object.assign(r.elements.popper.style, n.popper), r.styles = n, r.elements.arrow && Object.assign(r.elements.arrow.style, n.arrow);
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
qe.setDefaultProps({
|
|
1710
|
+
render: Mr
|
|
1711
|
+
});
|
|
1712
|
+
class Mi {
|
|
1713
|
+
constructor({ editor: t, element: r, view: n, tippyOptions: o = {}, updateDelay: a = 250, shouldShow: c }) {
|
|
1714
|
+
this.preventHide = !1, this.shouldShow = ({ view: u, state: s, from: d, to: l }) => {
|
|
1715
|
+
const { doc: v, selection: y } = s, { empty: h } = y, b = !v.textBetween(d, l).length && Fr(s.selection), m = this.element.contains(document.activeElement);
|
|
1716
|
+
return !(!(u.hasFocus() || m) || h || b || !this.editor.isEditable);
|
|
1717
|
+
}, this.mousedownHandler = () => {
|
|
1718
|
+
this.preventHide = !0;
|
|
1719
|
+
}, this.dragstartHandler = () => {
|
|
1720
|
+
this.hide();
|
|
1721
|
+
}, this.focusHandler = () => {
|
|
1722
|
+
setTimeout(() => this.update(this.editor.view));
|
|
1723
|
+
}, this.blurHandler = ({ event: u }) => {
|
|
1724
|
+
var s;
|
|
1725
|
+
if (this.preventHide) {
|
|
1726
|
+
this.preventHide = !1;
|
|
1727
|
+
return;
|
|
1728
|
+
}
|
|
1729
|
+
u != null && u.relatedTarget && (!((s = this.element.parentNode) === null || s === void 0) && s.contains(u.relatedTarget)) || (u == null ? void 0 : u.relatedTarget) !== this.editor.view.dom && this.hide();
|
|
1730
|
+
}, this.tippyBlurHandler = (u) => {
|
|
1731
|
+
this.blurHandler({ event: u });
|
|
1732
|
+
}, this.handleDebouncedUpdate = (u, s) => {
|
|
1733
|
+
const d = !(s != null && s.selection.eq(u.state.selection)), l = !(s != null && s.doc.eq(u.state.doc));
|
|
1734
|
+
!d && !l || (this.updateDebounceTimer && clearTimeout(this.updateDebounceTimer), this.updateDebounceTimer = window.setTimeout(() => {
|
|
1735
|
+
this.updateHandler(u, d, l, s);
|
|
1736
|
+
}, this.updateDelay));
|
|
1737
|
+
}, this.updateHandler = (u, s, d, l) => {
|
|
1738
|
+
var v, y, h;
|
|
1739
|
+
const { state: b, composing: m } = u, { selection: w } = b;
|
|
1740
|
+
if (m || !s && !d)
|
|
1741
|
+
return;
|
|
1742
|
+
this.createTooltip();
|
|
1743
|
+
const { ranges: D } = w, O = Math.min(...D.map((p) => p.$from.pos)), i = Math.max(...D.map((p) => p.$to.pos));
|
|
1744
|
+
if (!((v = this.shouldShow) === null || v === void 0 ? void 0 : v.call(this, {
|
|
1745
|
+
editor: this.editor,
|
|
1746
|
+
element: this.element,
|
|
1747
|
+
view: u,
|
|
1748
|
+
state: b,
|
|
1749
|
+
oldState: l,
|
|
1750
|
+
from: O,
|
|
1751
|
+
to: i
|
|
1752
|
+
}))) {
|
|
1753
|
+
this.hide();
|
|
1754
|
+
return;
|
|
1755
|
+
}
|
|
1756
|
+
(y = this.tippy) === null || y === void 0 || y.setProps({
|
|
1757
|
+
getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
|
|
1758
|
+
if (Ur(b.selection)) {
|
|
1759
|
+
let p = u.nodeDOM(O);
|
|
1760
|
+
if (p) {
|
|
1761
|
+
const x = p.dataset.nodeViewWrapper ? p : p.querySelector("[data-node-view-wrapper]");
|
|
1762
|
+
if (x && (p = x.firstChild), p)
|
|
1763
|
+
return p.getBoundingClientRect();
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
return qr(u, O, i);
|
|
1767
|
+
})
|
|
1768
|
+
}), this.show();
|
|
1769
|
+
}, this.editor = t, this.element = r, this.view = n, this.updateDelay = a, c && (this.shouldShow = c), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = o, this.element.remove(), this.element.style.visibility = "visible";
|
|
1770
|
+
}
|
|
1771
|
+
createTooltip() {
|
|
1772
|
+
const { element: t } = this.editor.options, r = !!t.parentElement;
|
|
1773
|
+
this.element.tabIndex = 0, !(this.tippy || !r) && (this.tippy = qe(t, {
|
|
1774
|
+
duration: 0,
|
|
1775
|
+
getReferenceClientRect: null,
|
|
1776
|
+
content: this.element,
|
|
1777
|
+
interactive: !0,
|
|
1778
|
+
trigger: "manual",
|
|
1779
|
+
placement: "top",
|
|
1780
|
+
hideOnClick: "toggle",
|
|
1781
|
+
...this.tippyOptions
|
|
1782
|
+
}), this.tippy.popper.firstChild && this.tippy.popper.firstChild.addEventListener("blur", this.tippyBlurHandler));
|
|
1783
|
+
}
|
|
1784
|
+
update(t, r) {
|
|
1785
|
+
const { state: n } = t, o = n.selection.from !== n.selection.to;
|
|
1786
|
+
if (this.updateDelay > 0 && o) {
|
|
1787
|
+
this.handleDebouncedUpdate(t, r);
|
|
1788
|
+
return;
|
|
1789
|
+
}
|
|
1790
|
+
const a = !(r != null && r.selection.eq(t.state.selection)), c = !(r != null && r.doc.eq(t.state.doc));
|
|
1791
|
+
this.updateHandler(t, a, c, r);
|
|
1792
|
+
}
|
|
1793
|
+
show() {
|
|
1794
|
+
var t;
|
|
1795
|
+
(t = this.tippy) === null || t === void 0 || t.show();
|
|
1796
|
+
}
|
|
1797
|
+
hide() {
|
|
1798
|
+
var t;
|
|
1799
|
+
(t = this.tippy) === null || t === void 0 || t.hide();
|
|
1800
|
+
}
|
|
1801
|
+
destroy() {
|
|
1802
|
+
var t, r;
|
|
1803
|
+
!((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (r = this.tippy) === null || r === void 0 || r.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
const Vr = (e) => new Wr({
|
|
1807
|
+
key: typeof e.pluginKey == "string" ? new kr(e.pluginKey) : e.pluginKey,
|
|
1808
|
+
view: (t) => new Mi({ view: t, ...e })
|
|
1809
|
+
});
|
|
1810
|
+
zr.create({
|
|
1811
|
+
name: "bubbleMenu",
|
|
1812
|
+
addOptions() {
|
|
1813
|
+
return {
|
|
1814
|
+
element: null,
|
|
1815
|
+
tippyOptions: {},
|
|
1816
|
+
pluginKey: "bubbleMenu",
|
|
1817
|
+
updateDelay: void 0,
|
|
1818
|
+
shouldShow: null
|
|
1819
|
+
};
|
|
1820
|
+
},
|
|
1821
|
+
addProseMirrorPlugins() {
|
|
1822
|
+
return this.options.element ? [
|
|
1823
|
+
Vr({
|
|
1824
|
+
pluginKey: this.options.pluginKey,
|
|
1825
|
+
editor: this.editor,
|
|
1826
|
+
element: this.options.element,
|
|
1827
|
+
tippyOptions: this.options.tippyOptions,
|
|
1828
|
+
updateDelay: this.options.updateDelay,
|
|
1829
|
+
shouldShow: this.options.shouldShow
|
|
1830
|
+
})
|
|
1831
|
+
] : [];
|
|
1832
|
+
}
|
|
1833
|
+
});
|
|
1834
|
+
function Vi(e) {
|
|
1835
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1836
|
+
}
|
|
1837
|
+
var xt = { exports: {} }, ht = {};
|
|
1838
|
+
/**
|
|
1839
|
+
* @license React
|
|
1840
|
+
* use-sync-external-store-shim.production.min.js
|
|
1841
|
+
*
|
|
1842
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1843
|
+
*
|
|
1844
|
+
* This source code is licensed under the MIT license found in the
|
|
1845
|
+
* LICENSE file in the root directory of this source tree.
|
|
1846
|
+
*/
|
|
1847
|
+
var rr;
|
|
1848
|
+
function Ni() {
|
|
1849
|
+
if (rr) return ht;
|
|
1850
|
+
rr = 1;
|
|
1851
|
+
var e = B;
|
|
1852
|
+
function t(v, y) {
|
|
1853
|
+
return v === y && (v !== 0 || 1 / v === 1 / y) || v !== v && y !== y;
|
|
1854
|
+
}
|
|
1855
|
+
var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, o = e.useEffect, a = e.useLayoutEffect, c = e.useDebugValue;
|
|
1856
|
+
function u(v, y) {
|
|
1857
|
+
var h = y(), b = n({ inst: { value: h, getSnapshot: y } }), m = b[0].inst, w = b[1];
|
|
1858
|
+
return a(function() {
|
|
1859
|
+
m.value = h, m.getSnapshot = y, s(m) && w({ inst: m });
|
|
1860
|
+
}, [v, h, y]), o(function() {
|
|
1861
|
+
return s(m) && w({ inst: m }), v(function() {
|
|
1862
|
+
s(m) && w({ inst: m });
|
|
1863
|
+
});
|
|
1864
|
+
}, [v]), c(h), h;
|
|
1865
|
+
}
|
|
1866
|
+
function s(v) {
|
|
1867
|
+
var y = v.getSnapshot;
|
|
1868
|
+
v = v.value;
|
|
1869
|
+
try {
|
|
1870
|
+
var h = y();
|
|
1871
|
+
return !r(v, h);
|
|
1872
|
+
} catch {
|
|
1873
|
+
return !0;
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
function d(v, y) {
|
|
1877
|
+
return y();
|
|
1878
|
+
}
|
|
1879
|
+
var l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : u;
|
|
1880
|
+
return ht.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : l, ht;
|
|
1881
|
+
}
|
|
1882
|
+
var mt = {};
|
|
1883
|
+
/**
|
|
1884
|
+
* @license React
|
|
1885
|
+
* use-sync-external-store-shim.development.js
|
|
1886
|
+
*
|
|
1887
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1888
|
+
*
|
|
1889
|
+
* This source code is licensed under the MIT license found in the
|
|
1890
|
+
* LICENSE file in the root directory of this source tree.
|
|
1891
|
+
*/
|
|
1892
|
+
var nr;
|
|
1893
|
+
function ji() {
|
|
1894
|
+
return nr || (nr = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
1895
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1896
|
+
var e = B, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1897
|
+
function r(O) {
|
|
1898
|
+
{
|
|
1899
|
+
for (var i = arguments.length, E = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
1900
|
+
E[p - 1] = arguments[p];
|
|
1901
|
+
n("error", O, E);
|
|
1902
|
+
}
|
|
1903
|
+
}
|
|
1904
|
+
function n(O, i, E) {
|
|
1905
|
+
{
|
|
1906
|
+
var p = t.ReactDebugCurrentFrame, x = p.getStackAddendum();
|
|
1907
|
+
x !== "" && (i += "%s", E = E.concat([x]));
|
|
1908
|
+
var _ = E.map(function(A) {
|
|
1909
|
+
return String(A);
|
|
1910
|
+
});
|
|
1911
|
+
_.unshift("Warning: " + i), Function.prototype.apply.call(console[O], console, _);
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
function o(O, i) {
|
|
1915
|
+
return O === i && (O !== 0 || 1 / O === 1 / i) || O !== O && i !== i;
|
|
1916
|
+
}
|
|
1917
|
+
var a = typeof Object.is == "function" ? Object.is : o, c = e.useState, u = e.useEffect, s = e.useLayoutEffect, d = e.useDebugValue, l = !1, v = !1;
|
|
1918
|
+
function y(O, i, E) {
|
|
1919
|
+
l || e.startTransition !== void 0 && (l = !0, r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
1920
|
+
var p = i();
|
|
1921
|
+
if (!v) {
|
|
1922
|
+
var x = i();
|
|
1923
|
+
a(p, x) || (r("The result of getSnapshot should be cached to avoid an infinite loop"), v = !0);
|
|
1924
|
+
}
|
|
1925
|
+
var _ = c({
|
|
1926
|
+
inst: {
|
|
1927
|
+
value: p,
|
|
1928
|
+
getSnapshot: i
|
|
1929
|
+
}
|
|
1930
|
+
}), A = _[0].inst, R = _[1];
|
|
1931
|
+
return s(function() {
|
|
1932
|
+
A.value = p, A.getSnapshot = i, h(A) && R({
|
|
1933
|
+
inst: A
|
|
1934
|
+
});
|
|
1935
|
+
}, [O, p, i]), u(function() {
|
|
1936
|
+
h(A) && R({
|
|
1937
|
+
inst: A
|
|
1938
|
+
});
|
|
1939
|
+
var N = function() {
|
|
1940
|
+
h(A) && R({
|
|
1941
|
+
inst: A
|
|
1942
|
+
});
|
|
1943
|
+
};
|
|
1944
|
+
return O(N);
|
|
1945
|
+
}, [O]), d(p), p;
|
|
1946
|
+
}
|
|
1947
|
+
function h(O) {
|
|
1948
|
+
var i = O.getSnapshot, E = O.value;
|
|
1949
|
+
try {
|
|
1950
|
+
var p = i();
|
|
1951
|
+
return !a(E, p);
|
|
1952
|
+
} catch {
|
|
1953
|
+
return !0;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
function b(O, i, E) {
|
|
1957
|
+
return i();
|
|
1958
|
+
}
|
|
1959
|
+
var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", w = !m, T = w ? b : y, D = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : T;
|
|
1960
|
+
mt.useSyncExternalStore = D, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1961
|
+
})()), mt;
|
|
1962
|
+
}
|
|
1963
|
+
process.env.NODE_ENV === "production" ? xt.exports = Ni() : xt.exports = ji();
|
|
1964
|
+
var Nt = xt.exports;
|
|
1965
|
+
const Pi = (...e) => (t) => {
|
|
1966
|
+
e.forEach((r) => {
|
|
1967
|
+
typeof r == "function" ? r(t) : r && (r.current = t);
|
|
1968
|
+
});
|
|
1969
|
+
}, Bi = ({ contentComponent: e }) => {
|
|
1970
|
+
const t = Nt.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
|
|
1971
|
+
return B.createElement(B.Fragment, null, Object.values(t));
|
|
1972
|
+
};
|
|
1973
|
+
function Hi() {
|
|
1974
|
+
const e = /* @__PURE__ */ new Set();
|
|
1975
|
+
let t = {};
|
|
1976
|
+
return {
|
|
1977
|
+
/**
|
|
1978
|
+
* Subscribe to the editor instance's changes.
|
|
1979
|
+
*/
|
|
1980
|
+
subscribe(r) {
|
|
1981
|
+
return e.add(r), () => {
|
|
1982
|
+
e.delete(r);
|
|
1983
|
+
};
|
|
1984
|
+
},
|
|
1985
|
+
getSnapshot() {
|
|
1986
|
+
return t;
|
|
1987
|
+
},
|
|
1988
|
+
getServerSnapshot() {
|
|
1989
|
+
return t;
|
|
1990
|
+
},
|
|
1991
|
+
/**
|
|
1992
|
+
* Adds a new NodeView Renderer to the editor.
|
|
1993
|
+
*/
|
|
1994
|
+
setRenderer(r, n) {
|
|
1995
|
+
t = {
|
|
1996
|
+
...t,
|
|
1997
|
+
[r]: Xr.createPortal(n.reactElement, n.element, r)
|
|
1998
|
+
}, e.forEach((o) => o());
|
|
1999
|
+
},
|
|
2000
|
+
/**
|
|
2001
|
+
* Removes a NodeView Renderer from the editor.
|
|
2002
|
+
*/
|
|
2003
|
+
removeRenderer(r) {
|
|
2004
|
+
const n = { ...t };
|
|
2005
|
+
delete n[r], t = n, e.forEach((o) => o());
|
|
2006
|
+
}
|
|
2007
|
+
};
|
|
2008
|
+
}
|
|
2009
|
+
class Ii extends B.Component {
|
|
2010
|
+
constructor(t) {
|
|
2011
|
+
var r;
|
|
2012
|
+
super(t), this.editorContentRef = B.createRef(), this.initialized = !1, this.state = {
|
|
2013
|
+
hasContentComponentInitialized: !!(!((r = t.editor) === null || r === void 0) && r.contentComponent)
|
|
2014
|
+
};
|
|
2015
|
+
}
|
|
2016
|
+
componentDidMount() {
|
|
2017
|
+
this.init();
|
|
2018
|
+
}
|
|
2019
|
+
componentDidUpdate() {
|
|
2020
|
+
this.init();
|
|
2021
|
+
}
|
|
2022
|
+
init() {
|
|
2023
|
+
const t = this.props.editor;
|
|
2024
|
+
if (t && !t.isDestroyed && t.options.element) {
|
|
2025
|
+
if (t.contentComponent)
|
|
2026
|
+
return;
|
|
2027
|
+
const r = this.editorContentRef.current;
|
|
2028
|
+
r.append(...t.options.element.childNodes), t.setOptions({
|
|
2029
|
+
element: r
|
|
2030
|
+
}), t.contentComponent = Hi(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = t.contentComponent.subscribe(() => {
|
|
2031
|
+
this.setState((n) => n.hasContentComponentInitialized ? n : {
|
|
2032
|
+
hasContentComponentInitialized: !0
|
|
2033
|
+
}), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
|
|
2034
|
+
})), t.createNodeViews(), this.initialized = !0;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
componentWillUnmount() {
|
|
2038
|
+
const t = this.props.editor;
|
|
2039
|
+
if (!t || (this.initialized = !1, t.isDestroyed || t.view.setProps({
|
|
2040
|
+
nodeViews: {}
|
|
2041
|
+
}), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent(), t.contentComponent = null, !t.options.element.firstChild))
|
|
2042
|
+
return;
|
|
2043
|
+
const r = document.createElement("div");
|
|
2044
|
+
r.append(...t.options.element.childNodes), t.setOptions({
|
|
2045
|
+
element: r
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
render() {
|
|
2049
|
+
const { editor: t, innerRef: r, ...n } = this.props;
|
|
2050
|
+
return B.createElement(
|
|
2051
|
+
B.Fragment,
|
|
2052
|
+
null,
|
|
2053
|
+
B.createElement("div", { ref: Pi(r, this.editorContentRef), ...n }),
|
|
2054
|
+
(t == null ? void 0 : t.contentComponent) && B.createElement(Bi, { contentComponent: t.contentComponent })
|
|
2055
|
+
);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
const $i = Kr((e, t) => {
|
|
2059
|
+
const r = B.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
|
|
2060
|
+
return B.createElement(Ii, {
|
|
2061
|
+
key: r,
|
|
2062
|
+
innerRef: t,
|
|
2063
|
+
...e
|
|
2064
|
+
});
|
|
2065
|
+
}), no = B.memo($i);
|
|
2066
|
+
var Wi = function e(t, r) {
|
|
2067
|
+
if (t === r) return !0;
|
|
2068
|
+
if (t && r && typeof t == "object" && typeof r == "object") {
|
|
2069
|
+
if (t.constructor !== r.constructor) return !1;
|
|
2070
|
+
var n, o, a;
|
|
2071
|
+
if (Array.isArray(t)) {
|
|
2072
|
+
if (n = t.length, n != r.length) return !1;
|
|
2073
|
+
for (o = n; o-- !== 0; )
|
|
2074
|
+
if (!e(t[o], r[o])) return !1;
|
|
2075
|
+
return !0;
|
|
2076
|
+
}
|
|
2077
|
+
if (t instanceof Map && r instanceof Map) {
|
|
2078
|
+
if (t.size !== r.size) return !1;
|
|
2079
|
+
for (o of t.entries())
|
|
2080
|
+
if (!r.has(o[0])) return !1;
|
|
2081
|
+
for (o of t.entries())
|
|
2082
|
+
if (!e(o[1], r.get(o[0]))) return !1;
|
|
2083
|
+
return !0;
|
|
2084
|
+
}
|
|
2085
|
+
if (t instanceof Set && r instanceof Set) {
|
|
2086
|
+
if (t.size !== r.size) return !1;
|
|
2087
|
+
for (o of t.entries())
|
|
2088
|
+
if (!r.has(o[0])) return !1;
|
|
2089
|
+
return !0;
|
|
2090
|
+
}
|
|
2091
|
+
if (ArrayBuffer.isView(t) && ArrayBuffer.isView(r)) {
|
|
2092
|
+
if (n = t.length, n != r.length) return !1;
|
|
2093
|
+
for (o = n; o-- !== 0; )
|
|
2094
|
+
if (t[o] !== r[o]) return !1;
|
|
2095
|
+
return !0;
|
|
2096
|
+
}
|
|
2097
|
+
if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
|
|
2098
|
+
if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
|
|
2099
|
+
if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
|
|
2100
|
+
if (a = Object.keys(t), n = a.length, n !== Object.keys(r).length) return !1;
|
|
2101
|
+
for (o = n; o-- !== 0; )
|
|
2102
|
+
if (!Object.prototype.hasOwnProperty.call(r, a[o])) return !1;
|
|
2103
|
+
for (o = n; o-- !== 0; ) {
|
|
2104
|
+
var c = a[o];
|
|
2105
|
+
if (!(c === "_owner" && t.$$typeof) && !e(t[c], r[c]))
|
|
2106
|
+
return !1;
|
|
2107
|
+
}
|
|
2108
|
+
return !0;
|
|
2109
|
+
}
|
|
2110
|
+
return t !== t && r !== r;
|
|
2111
|
+
}, ki = /* @__PURE__ */ Vi(Wi), Tt = { exports: {} }, yt = {};
|
|
2112
|
+
/**
|
|
2113
|
+
* @license React
|
|
2114
|
+
* use-sync-external-store-shim/with-selector.production.min.js
|
|
2115
|
+
*
|
|
2116
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2117
|
+
*
|
|
2118
|
+
* This source code is licensed under the MIT license found in the
|
|
2119
|
+
* LICENSE file in the root directory of this source tree.
|
|
2120
|
+
*/
|
|
2121
|
+
var ir;
|
|
2122
|
+
function Fi() {
|
|
2123
|
+
if (ir) return yt;
|
|
2124
|
+
ir = 1;
|
|
2125
|
+
var e = B, t = Nt;
|
|
2126
|
+
function r(d, l) {
|
|
2127
|
+
return d === l && (d !== 0 || 1 / d === 1 / l) || d !== d && l !== l;
|
|
2128
|
+
}
|
|
2129
|
+
var n = typeof Object.is == "function" ? Object.is : r, o = t.useSyncExternalStore, a = e.useRef, c = e.useEffect, u = e.useMemo, s = e.useDebugValue;
|
|
2130
|
+
return yt.useSyncExternalStoreWithSelector = function(d, l, v, y, h) {
|
|
2131
|
+
var b = a(null);
|
|
2132
|
+
if (b.current === null) {
|
|
2133
|
+
var m = { hasValue: !1, value: null };
|
|
2134
|
+
b.current = m;
|
|
2135
|
+
} else m = b.current;
|
|
2136
|
+
b = u(function() {
|
|
2137
|
+
function T(p) {
|
|
2138
|
+
if (!D) {
|
|
2139
|
+
if (D = !0, O = p, p = y(p), h !== void 0 && m.hasValue) {
|
|
2140
|
+
var x = m.value;
|
|
2141
|
+
if (h(x, p)) return i = x;
|
|
2142
|
+
}
|
|
2143
|
+
return i = p;
|
|
2144
|
+
}
|
|
2145
|
+
if (x = i, n(O, p)) return x;
|
|
2146
|
+
var _ = y(p);
|
|
2147
|
+
return h !== void 0 && h(x, _) ? x : (O = p, i = _);
|
|
2148
|
+
}
|
|
2149
|
+
var D = !1, O, i, E = v === void 0 ? null : v;
|
|
2150
|
+
return [function() {
|
|
2151
|
+
return T(l());
|
|
2152
|
+
}, E === null ? void 0 : function() {
|
|
2153
|
+
return T(E());
|
|
2154
|
+
}];
|
|
2155
|
+
}, [l, v, y, h]);
|
|
2156
|
+
var w = o(d, b[0], b[1]);
|
|
2157
|
+
return c(function() {
|
|
2158
|
+
m.hasValue = !0, m.value = w;
|
|
2159
|
+
}, [w]), s(w), w;
|
|
2160
|
+
}, yt;
|
|
2161
|
+
}
|
|
2162
|
+
var gt = {};
|
|
2163
|
+
/**
|
|
2164
|
+
* @license React
|
|
2165
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
2166
|
+
*
|
|
2167
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2168
|
+
*
|
|
2169
|
+
* This source code is licensed under the MIT license found in the
|
|
2170
|
+
* LICENSE file in the root directory of this source tree.
|
|
2171
|
+
*/
|
|
2172
|
+
var or;
|
|
2173
|
+
function Ui() {
|
|
2174
|
+
return or || (or = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2175
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2176
|
+
var e = B, t = Nt;
|
|
2177
|
+
function r(l, v) {
|
|
2178
|
+
return l === v && (l !== 0 || 1 / l === 1 / v) || l !== l && v !== v;
|
|
2179
|
+
}
|
|
2180
|
+
var n = typeof Object.is == "function" ? Object.is : r, o = t.useSyncExternalStore, a = e.useRef, c = e.useEffect, u = e.useMemo, s = e.useDebugValue;
|
|
2181
|
+
function d(l, v, y, h, b) {
|
|
2182
|
+
var m = a(null), w;
|
|
2183
|
+
m.current === null ? (w = {
|
|
2184
|
+
hasValue: !1,
|
|
2185
|
+
value: null
|
|
2186
|
+
}, m.current = w) : w = m.current;
|
|
2187
|
+
var T = u(function() {
|
|
2188
|
+
var E = !1, p, x, _ = function(M) {
|
|
2189
|
+
if (!E) {
|
|
2190
|
+
E = !0, p = M;
|
|
2191
|
+
var V = h(M);
|
|
2192
|
+
if (b !== void 0 && w.hasValue) {
|
|
2193
|
+
var H = w.value;
|
|
2194
|
+
if (b(H, V))
|
|
2195
|
+
return x = H, H;
|
|
2196
|
+
}
|
|
2197
|
+
return x = V, V;
|
|
2198
|
+
}
|
|
2199
|
+
var $ = p, j = x;
|
|
2200
|
+
if (n($, M))
|
|
2201
|
+
return j;
|
|
2202
|
+
var P = h(M);
|
|
2203
|
+
return b !== void 0 && b(j, P) ? j : (p = M, x = P, P);
|
|
2204
|
+
}, A = y === void 0 ? null : y, R = function() {
|
|
2205
|
+
return _(v());
|
|
2206
|
+
}, N = A === null ? void 0 : function() {
|
|
2207
|
+
return _(A());
|
|
2208
|
+
};
|
|
2209
|
+
return [R, N];
|
|
2210
|
+
}, [v, y, h, b]), D = T[0], O = T[1], i = o(l, D, O);
|
|
2211
|
+
return c(function() {
|
|
2212
|
+
w.hasValue = !0, w.value = i;
|
|
2213
|
+
}, [i]), s(i), i;
|
|
2214
|
+
}
|
|
2215
|
+
gt.useSyncExternalStoreWithSelector = d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2216
|
+
})()), gt;
|
|
2217
|
+
}
|
|
2218
|
+
process.env.NODE_ENV === "production" ? Tt.exports = Fi() : Tt.exports = Ui();
|
|
2219
|
+
var qi = Tt.exports;
|
|
2220
|
+
const zi = typeof window < "u" ? Yr : cr;
|
|
2221
|
+
class Ki {
|
|
2222
|
+
constructor(t) {
|
|
2223
|
+
this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
|
|
2224
|
+
}
|
|
2225
|
+
/**
|
|
2226
|
+
* Get the current editor instance.
|
|
2227
|
+
*/
|
|
2228
|
+
getSnapshot() {
|
|
2229
|
+
return this.transactionNumber === this.lastTransactionNumber ? this.lastSnapshot : (this.lastTransactionNumber = this.transactionNumber, this.lastSnapshot = { editor: this.editor, transactionNumber: this.transactionNumber }, this.lastSnapshot);
|
|
2230
|
+
}
|
|
2231
|
+
/**
|
|
2232
|
+
* Always disable the editor on the server-side.
|
|
2233
|
+
*/
|
|
2234
|
+
getServerSnapshot() {
|
|
2235
|
+
return { editor: null, transactionNumber: 0 };
|
|
2236
|
+
}
|
|
2237
|
+
/**
|
|
2238
|
+
* Subscribe to the editor instance's changes.
|
|
2239
|
+
*/
|
|
2240
|
+
subscribe(t) {
|
|
2241
|
+
return this.subscribers.add(t), () => {
|
|
2242
|
+
this.subscribers.delete(t);
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
/**
|
|
2246
|
+
* Watch the editor instance for changes.
|
|
2247
|
+
*/
|
|
2248
|
+
watch(t) {
|
|
2249
|
+
if (this.editor = t, this.editor) {
|
|
2250
|
+
const r = () => {
|
|
2251
|
+
this.transactionNumber += 1, this.subscribers.forEach((o) => o());
|
|
2252
|
+
}, n = this.editor;
|
|
2253
|
+
return n.on("transaction", r), () => {
|
|
2254
|
+
n.off("transaction", r);
|
|
2255
|
+
};
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
}
|
|
2259
|
+
function io(e) {
|
|
2260
|
+
var t;
|
|
2261
|
+
const [r] = ur(() => new Ki(e.editor)), n = qi.useSyncExternalStoreWithSelector(r.subscribe, r.getSnapshot, r.getServerSnapshot, e.selector, (t = e.equalityFn) !== null && t !== void 0 ? t : ki);
|
|
2262
|
+
return zi(() => r.watch(e.editor), [e.editor, r]), Gr(n), n;
|
|
2263
|
+
}
|
|
2264
|
+
process.env.NODE_ENV;
|
|
2265
|
+
const Nr = lr({
|
|
2266
|
+
editor: null
|
|
2267
|
+
});
|
|
2268
|
+
Nr.Consumer;
|
|
2269
|
+
const Gi = () => fr(Nr), oo = (e) => {
|
|
2270
|
+
const [t, r] = ur(null), { editor: n } = Gi();
|
|
2271
|
+
return cr(() => {
|
|
2272
|
+
var o;
|
|
2273
|
+
if (!t || !((o = e.editor) === null || o === void 0) && o.isDestroyed || n != null && n.isDestroyed)
|
|
2274
|
+
return;
|
|
2275
|
+
const { pluginKey: a = "bubbleMenu", editor: c, tippyOptions: u = {}, updateDelay: s, shouldShow: d = null } = e, l = c || n;
|
|
2276
|
+
if (!l) {
|
|
2277
|
+
console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
|
|
2278
|
+
return;
|
|
2279
|
+
}
|
|
2280
|
+
const v = Vr({
|
|
2281
|
+
updateDelay: s,
|
|
2282
|
+
editor: l,
|
|
2283
|
+
element: t,
|
|
2284
|
+
pluginKey: a,
|
|
2285
|
+
shouldShow: d,
|
|
2286
|
+
tippyOptions: u
|
|
2287
|
+
});
|
|
2288
|
+
return l.registerPlugin(v), () => {
|
|
2289
|
+
l.unregisterPlugin(a);
|
|
2290
|
+
};
|
|
2291
|
+
}, [e.editor, n, t]), B.createElement("div", { ref: r, className: e.className, style: { visibility: "hidden" } }, e.children);
|
|
2292
|
+
}, Yi = lr({
|
|
2293
|
+
onDragStart: void 0
|
|
2294
|
+
}), Xi = () => fr(Yi);
|
|
2295
|
+
B.forwardRef((e, t) => {
|
|
2296
|
+
const { onDragStart: r } = Xi(), n = e.as || "div";
|
|
2297
|
+
return (
|
|
2298
|
+
// @ts-ignore
|
|
2299
|
+
B.createElement(n, { ...e, ref: t, "data-node-view-wrapper": "", onDragStart: r, style: {
|
|
2300
|
+
whiteSpace: "normal",
|
|
2301
|
+
...e.style
|
|
2302
|
+
} })
|
|
2303
|
+
);
|
|
2304
|
+
});
|
|
2305
|
+
function ar(e) {
|
|
2306
|
+
return !!(typeof e == "function" && e.prototype && e.prototype.isReactComponent);
|
|
2307
|
+
}
|
|
2308
|
+
function sr(e) {
|
|
2309
|
+
return !!(typeof e == "object" && e.$$typeof && (e.$$typeof.toString() === "Symbol(react.forward_ref)" || e.$$typeof.description === "react.forward_ref"));
|
|
2310
|
+
}
|
|
2311
|
+
function Ji(e) {
|
|
2312
|
+
return !!(typeof e == "object" && e.$$typeof && (e.$$typeof.toString() === "Symbol(react.memo)" || e.$$typeof.description === "react.memo"));
|
|
2313
|
+
}
|
|
2314
|
+
function Qi(e) {
|
|
2315
|
+
if (ar(e) || sr(e))
|
|
2316
|
+
return !0;
|
|
2317
|
+
if (Ji(e)) {
|
|
2318
|
+
const t = e.type;
|
|
2319
|
+
if (t)
|
|
2320
|
+
return ar(t) || sr(t);
|
|
2321
|
+
}
|
|
2322
|
+
return !1;
|
|
2323
|
+
}
|
|
2324
|
+
function Zi() {
|
|
2325
|
+
try {
|
|
2326
|
+
if (Pt)
|
|
2327
|
+
return parseInt(Pt.split(".")[0], 10) >= 19;
|
|
2328
|
+
} catch {
|
|
2329
|
+
}
|
|
2330
|
+
return !1;
|
|
2331
|
+
}
|
|
2332
|
+
class ao {
|
|
2333
|
+
/**
|
|
2334
|
+
* Immediately creates element and renders the provided React component.
|
|
2335
|
+
*/
|
|
2336
|
+
constructor(t, { editor: r, props: n = {}, as: o = "div", className: a = "" }) {
|
|
2337
|
+
this.ref = null, this.id = Math.floor(Math.random() * 4294967295).toString(), this.component = t, this.editor = r, this.props = n, this.element = document.createElement(o), this.element.classList.add("react-renderer"), a && this.element.classList.add(...a.split(" ")), this.editor.isInitialized ? Jr(() => {
|
|
2338
|
+
this.render();
|
|
2339
|
+
}) : queueMicrotask(() => {
|
|
2340
|
+
this.render();
|
|
2341
|
+
});
|
|
2342
|
+
}
|
|
2343
|
+
/**
|
|
2344
|
+
* Render the React component.
|
|
2345
|
+
*/
|
|
2346
|
+
render() {
|
|
2347
|
+
var t;
|
|
2348
|
+
const r = this.component, n = this.props, o = this.editor, a = Zi(), c = Qi(r), u = { ...n };
|
|
2349
|
+
u.ref && !(a || c) && delete u.ref, !u.ref && (a || c) && (u.ref = (s) => {
|
|
2350
|
+
this.ref = s;
|
|
2351
|
+
}), this.reactElement = B.createElement(r, { ...u }), (t = o == null ? void 0 : o.contentComponent) === null || t === void 0 || t.setRenderer(this.id, this);
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* Re-renders the React component with new props.
|
|
2355
|
+
*/
|
|
2356
|
+
updateProps(t = {}) {
|
|
2357
|
+
this.props = {
|
|
2358
|
+
...this.props,
|
|
2359
|
+
...t
|
|
2360
|
+
}, this.render();
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
* Destroy the React component.
|
|
2364
|
+
*/
|
|
2365
|
+
destroy() {
|
|
2366
|
+
var t;
|
|
2367
|
+
const r = this.editor;
|
|
2368
|
+
(t = r == null ? void 0 : r.contentComponent) === null || t === void 0 || t.removeRenderer(this.id);
|
|
2369
|
+
}
|
|
2370
|
+
/**
|
|
2371
|
+
* Update the attributes of the element that holds the React component.
|
|
2372
|
+
*/
|
|
2373
|
+
updateAttributes(t) {
|
|
2374
|
+
Object.keys(t).forEach((r) => {
|
|
2375
|
+
this.element.setAttribute(r, t[r]);
|
|
2376
|
+
});
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
export {
|
|
2380
|
+
oo as B,
|
|
2381
|
+
no as E,
|
|
2382
|
+
ao as R,
|
|
2383
|
+
qe as t,
|
|
2384
|
+
io as u
|
|
2385
|
+
};
|