@clevertask/scribe 0.0.9 → 0.0.11
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/README.md +23 -0
- package/dist/browser-BJWkU9cc.js +2106 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Menu/BarMenu.d.ts +1 -0
- package/dist/components/Menu/BarMenu.js +38 -36
- package/dist/components/Menu/BubbleMenu.js +1 -1
- 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 +208 -200
- package/dist/components/Scribe/extension/extension-selectedText.js +1 -1
- package/dist/components/Scribe/extension/index.js +30 -24
- package/dist/components/Scribe/extension/math-extension.js +1 -1
- package/dist/components/Scribe/extension/slashCommand/SlashCommandList.js +7 -5
- 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 +69 -75
- package/dist/index-BqFHWqw6.js +156 -0
- package/dist/{index-C3_lI_rP.js → index-C_aWB8qt.js} +449 -427
- package/dist/index-CasgquAq.js +39381 -0
- package/dist/{index-Gm-3o3nq.js → index-DeZ8laak.js} +1124 -1083
- package/dist/main.css +95 -5
- package/dist/{turndown.browser.es-BSoGafvq.js → turndown.browser.es-C1wFFc_i.js} +342 -334
- package/dist/utils/create-scribe-editor.js +2 -2
- package/dist/utils/html-to-markdown.js +1 -1
- package/dist/utils/markdown-to-html.js +1 -1
- package/package.json +33 -31
- package/dist/browser-DEobZXxB.js +0 -2099
- package/dist/index-NRgJVTH-.js +0 -7576
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
import B, { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
var k = "top", G = "bottom", Y = "right", U = "left", Tt = "auto", Ue = [k, G, Y, U], De = "start", Ie = "end",
|
|
1
|
+
import { P as In, b as $n, H as Wn, A as kn, J as Un, a as Fn } from "./index-DeZ8laak.js";
|
|
2
|
+
import B, { forwardRef as qn, version as Nt, useState as zn, useContext as un, useEffect as Kn, createContext as cn } from "react";
|
|
3
|
+
import Gn, { flushSync as Yn } from "react-dom";
|
|
4
|
+
var k = "top", G = "bottom", Y = "right", U = "left", Tt = "auto", Ue = [k, G, Y, U], De = "start", Ie = "end", Xn = "clippingParents", fn = "viewport", Ne = "popper", Jn = "reference", Pt = /* @__PURE__ */ Ue.reduce(function(e, t) {
|
|
5
5
|
return e.concat([t + "-" + De, t + "-" + Ie]);
|
|
6
|
-
}, []),
|
|
6
|
+
}, []), ln = /* @__PURE__ */ [].concat(Ue, [Tt]).reduce(function(e, t) {
|
|
7
7
|
return e.concat([t, t + "-" + De, t + "-" + Ie]);
|
|
8
|
-
}, []),
|
|
8
|
+
}, []), Qn = "beforeRead", Zn = "read", er = "afterRead", tr = "beforeMain", nr = "main", rr = "afterMain", ir = "beforeWrite", or = "write", ar = "afterWrite", sr = [Qn, Zn, er, tr, nr, rr, ir, or, ar];
|
|
9
9
|
function ne(e) {
|
|
10
10
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
11
11
|
}
|
|
@@ -18,7 +18,7 @@ function q(e) {
|
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ge(e) {
|
|
22
22
|
var t = q(e).Element;
|
|
23
23
|
return e instanceof t || e instanceof Element;
|
|
24
24
|
}
|
|
@@ -32,7 +32,7 @@ function Dt(e) {
|
|
|
32
32
|
var t = q(e).ShadowRoot;
|
|
33
33
|
return e instanceof t || e instanceof ShadowRoot;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ur(e) {
|
|
36
36
|
var t = e.state;
|
|
37
37
|
Object.keys(t.elements).forEach(function(n) {
|
|
38
38
|
var r = t.styles[n] || {}, o = t.attributes[n] || {}, s = t.elements[n];
|
|
@@ -42,7 +42,7 @@ function or(e) {
|
|
|
42
42
|
}));
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function cr(e) {
|
|
46
46
|
var t = e.state, n = {
|
|
47
47
|
popper: {
|
|
48
48
|
position: t.options.strategy,
|
|
@@ -66,38 +66,38 @@ function ar(e) {
|
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const pn = {
|
|
70
70
|
name: "applyStyles",
|
|
71
71
|
enabled: !0,
|
|
72
72
|
phase: "write",
|
|
73
|
-
fn:
|
|
74
|
-
effect:
|
|
73
|
+
fn: ur,
|
|
74
|
+
effect: cr,
|
|
75
75
|
requires: ["computeStyles"]
|
|
76
76
|
};
|
|
77
77
|
function te(e) {
|
|
78
78
|
return e.split("-")[0];
|
|
79
79
|
}
|
|
80
|
-
var
|
|
80
|
+
var ye = Math.max, at = Math.min, Ae = Math.round;
|
|
81
81
|
function bt() {
|
|
82
82
|
var e = navigator.userAgentData;
|
|
83
83
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
84
84
|
return t.brand + "/" + t.version;
|
|
85
85
|
}).join(" ") : navigator.userAgent;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function dn() {
|
|
88
88
|
return !/^((?!chrome|android).)*safari/i.test(bt());
|
|
89
89
|
}
|
|
90
90
|
function Ce(e, t, n) {
|
|
91
91
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
92
92
|
var r = e.getBoundingClientRect(), o = 1, s = 1;
|
|
93
93
|
t && K(e) && (o = e.offsetWidth > 0 && Ae(r.width) / e.offsetWidth || 1, s = e.offsetHeight > 0 && Ae(r.height) / e.offsetHeight || 1);
|
|
94
|
-
var l =
|
|
94
|
+
var l = ge(e) ? q(e) : window, u = l.visualViewport, a = !dn() && n, d = (r.left + (a && u ? u.offsetLeft : 0)) / o, f = (r.top + (a && u ? u.offsetTop : 0)) / s, v = r.width / o, y = r.height / s;
|
|
95
95
|
return {
|
|
96
96
|
width: v,
|
|
97
|
-
height:
|
|
97
|
+
height: y,
|
|
98
98
|
top: f,
|
|
99
99
|
right: d + v,
|
|
100
|
-
bottom: f +
|
|
100
|
+
bottom: f + y,
|
|
101
101
|
left: d,
|
|
102
102
|
x: d,
|
|
103
103
|
y: f
|
|
@@ -112,7 +112,7 @@ function At(e) {
|
|
|
112
112
|
height: r
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function vn(e, t) {
|
|
116
116
|
var n = t.getRootNode && t.getRootNode();
|
|
117
117
|
if (e.contains(t))
|
|
118
118
|
return !0;
|
|
@@ -129,11 +129,11 @@ function ln(e, t) {
|
|
|
129
129
|
function ue(e) {
|
|
130
130
|
return q(e).getComputedStyle(e);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function fr(e) {
|
|
133
133
|
return ["table", "td", "th"].indexOf(ne(e)) >= 0;
|
|
134
134
|
}
|
|
135
135
|
function le(e) {
|
|
136
|
-
return ((
|
|
136
|
+
return ((ge(e) ? e.ownerDocument : (
|
|
137
137
|
// $FlowFixMe[prop-missing]
|
|
138
138
|
e.document
|
|
139
139
|
)) || window.document).documentElement;
|
|
@@ -150,11 +150,11 @@ function ut(e) {
|
|
|
150
150
|
le(e)
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Bt(e) {
|
|
154
154
|
return !K(e) || // https://github.com/popperjs/popper-core/issues/837
|
|
155
155
|
ue(e).position === "fixed" ? null : e.offsetParent;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function lr(e) {
|
|
158
158
|
var t = /firefox/i.test(bt()), n = /Trident/i.test(bt());
|
|
159
159
|
if (n && K(e)) {
|
|
160
160
|
var r = ue(e);
|
|
@@ -171,21 +171,21 @@ function ur(e) {
|
|
|
171
171
|
return null;
|
|
172
172
|
}
|
|
173
173
|
function Fe(e) {
|
|
174
|
-
for (var t = q(e), n =
|
|
175
|
-
n =
|
|
176
|
-
return n && (ne(n) === "html" || ne(n) === "body" && ue(n).position === "static") ? t : n ||
|
|
174
|
+
for (var t = q(e), n = Bt(e); n && fr(n) && ue(n).position === "static"; )
|
|
175
|
+
n = Bt(n);
|
|
176
|
+
return n && (ne(n) === "html" || ne(n) === "body" && ue(n).position === "static") ? t : n || lr(e) || t;
|
|
177
177
|
}
|
|
178
178
|
function Ct(e) {
|
|
179
179
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
180
180
|
}
|
|
181
181
|
function Pe(e, t, n) {
|
|
182
|
-
return
|
|
182
|
+
return ye(e, at(t, n));
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function pr(e, t, n) {
|
|
185
185
|
var r = Pe(e, t, n);
|
|
186
186
|
return r > n ? n : r;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function hn() {
|
|
189
189
|
return {
|
|
190
190
|
top: 0,
|
|
191
191
|
right: 0,
|
|
@@ -193,57 +193,57 @@ function pn() {
|
|
|
193
193
|
left: 0
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
return Object.assign({},
|
|
196
|
+
function mn(e) {
|
|
197
|
+
return Object.assign({}, hn(), e);
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function yn(e, t) {
|
|
200
200
|
return t.reduce(function(n, r) {
|
|
201
201
|
return n[r] = e, n;
|
|
202
202
|
}, {});
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var dr = function(t, n) {
|
|
205
205
|
return t = typeof t == "function" ? t(Object.assign({}, n.rects, {
|
|
206
206
|
placement: n.placement
|
|
207
|
-
})) : t,
|
|
207
|
+
})) : t, mn(typeof t != "number" ? t : yn(t, Ue));
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function vr(e) {
|
|
210
210
|
var t, n = e.state, r = e.name, o = e.options, s = n.elements.arrow, l = n.modifiersData.popperOffsets, u = te(n.placement), a = Ct(u), d = [U, Y].indexOf(u) >= 0, f = d ? "height" : "width";
|
|
211
211
|
if (!(!s || !l)) {
|
|
212
|
-
var v =
|
|
212
|
+
var v = dr(o.padding, n), y = At(s), h = a === "y" ? k : U, b = a === "y" ? G : Y, m = n.rects.reference[f] + n.rects.reference[a] - l[a] - n.rects.popper[f], w = l[a] - n.rects.reference[a], T = Fe(s), D = T ? a === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, O = m / 2 - w / 2, i = v[h], E = D - y[f] - v[b], p = D / 2 - y[f] / 2 + O, x = Pe(i, p, E), _ = a;
|
|
213
213
|
n.modifiersData[r] = (t = {}, t[_] = x, t.centerOffset = x - p, t);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function hr(e) {
|
|
217
217
|
var t = e.state, n = e.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
218
|
-
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) ||
|
|
218
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || vn(t.elements.popper, o) && (t.elements.arrow = o));
|
|
219
219
|
}
|
|
220
|
-
const
|
|
220
|
+
const mr = {
|
|
221
221
|
name: "arrow",
|
|
222
222
|
enabled: !0,
|
|
223
223
|
phase: "main",
|
|
224
|
-
fn:
|
|
225
|
-
effect:
|
|
224
|
+
fn: vr,
|
|
225
|
+
effect: hr,
|
|
226
226
|
requires: ["popperOffsets"],
|
|
227
227
|
requiresIfExists: ["preventOverflow"]
|
|
228
228
|
};
|
|
229
229
|
function _e(e) {
|
|
230
230
|
return e.split("-")[1];
|
|
231
231
|
}
|
|
232
|
-
var
|
|
232
|
+
var yr = {
|
|
233
233
|
top: "auto",
|
|
234
234
|
right: "auto",
|
|
235
235
|
bottom: "auto",
|
|
236
236
|
left: "auto"
|
|
237
237
|
};
|
|
238
|
-
function
|
|
238
|
+
function gr(e, t) {
|
|
239
239
|
var n = e.x, r = e.y, o = t.devicePixelRatio || 1;
|
|
240
240
|
return {
|
|
241
241
|
x: Ae(n * o) / o || 0,
|
|
242
242
|
y: Ae(r * o) / o || 0
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
var t, n = e.popper, r = e.popperRect, o = e.placement, s = e.variation, l = e.offsets, u = e.position, a = e.gpuAcceleration, d = e.adaptive, f = e.roundOffsets, v = e.isFixed,
|
|
245
|
+
function Ht(e) {
|
|
246
|
+
var t, n = e.popper, r = e.popperRect, o = e.placement, s = e.variation, l = e.offsets, u = e.position, a = e.gpuAcceleration, d = e.adaptive, f = e.roundOffsets, v = e.isFixed, y = l.x, h = y === void 0 ? 0 : y, b = l.y, m = b === void 0 ? 0 : b, w = typeof f == "function" ? f({
|
|
247
247
|
x: h,
|
|
248
248
|
y: m
|
|
249
249
|
}) : {
|
|
@@ -271,9 +271,9 @@ function Bt(e) {
|
|
|
271
271
|
h -= R - r.width, h *= a ? 1 : -1;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
var
|
|
274
|
+
var j = Object.assign({
|
|
275
275
|
position: u
|
|
276
|
-
}, d &&
|
|
276
|
+
}, d && yr), M = f === !0 ? gr({
|
|
277
277
|
x: h,
|
|
278
278
|
y: m
|
|
279
279
|
}, q(n)) : {
|
|
@@ -282,11 +282,11 @@ function Bt(e) {
|
|
|
282
282
|
};
|
|
283
283
|
if (h = M.x, m = M.y, a) {
|
|
284
284
|
var V;
|
|
285
|
-
return Object.assign({},
|
|
285
|
+
return Object.assign({}, j, (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
286
|
}
|
|
287
|
-
return Object.assign({},
|
|
287
|
+
return Object.assign({}, j, (t = {}, t[i] = D ? m + "px" : "", t[O] = T ? h + "px" : "", t.transform = "", t));
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function br(e) {
|
|
290
290
|
var t = e.state, n = e.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, s = n.adaptive, l = s === void 0 ? !0 : s, u = n.roundOffsets, a = u === void 0 ? !0 : u, d = {
|
|
291
291
|
placement: te(t.placement),
|
|
292
292
|
variation: _e(t.placement),
|
|
@@ -295,12 +295,12 @@ function mr(e) {
|
|
|
295
295
|
gpuAcceleration: o,
|
|
296
296
|
isFixed: t.options.strategy === "fixed"
|
|
297
297
|
};
|
|
298
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper,
|
|
298
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Ht(Object.assign({}, d, {
|
|
299
299
|
offsets: t.modifiersData.popperOffsets,
|
|
300
300
|
position: t.options.strategy,
|
|
301
301
|
adaptive: l,
|
|
302
302
|
roundOffsets: a
|
|
303
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow,
|
|
303
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Ht(Object.assign({}, d, {
|
|
304
304
|
offsets: t.modifiersData.arrow,
|
|
305
305
|
position: "absolute",
|
|
306
306
|
adaptive: !1,
|
|
@@ -309,17 +309,17 @@ function mr(e) {
|
|
|
309
309
|
"data-popper-placement": t.placement
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
const
|
|
312
|
+
const wr = {
|
|
313
313
|
name: "computeStyles",
|
|
314
314
|
enabled: !0,
|
|
315
315
|
phase: "beforeWrite",
|
|
316
|
-
fn:
|
|
316
|
+
fn: br,
|
|
317
317
|
data: {}
|
|
318
318
|
};
|
|
319
319
|
var rt = {
|
|
320
320
|
passive: !0
|
|
321
321
|
};
|
|
322
|
-
function
|
|
322
|
+
function Or(e) {
|
|
323
323
|
var t = e.state, n = e.instance, r = e.options, o = r.scroll, s = o === void 0 ? !0 : o, l = r.resize, u = l === void 0 ? !0 : l, a = q(t.elements.popper), d = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
324
324
|
return s && d.forEach(function(f) {
|
|
325
325
|
f.addEventListener("scroll", n.update, rt);
|
|
@@ -329,16 +329,16 @@ function yr(e) {
|
|
|
329
329
|
}), u && a.removeEventListener("resize", n.update, rt);
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
const
|
|
332
|
+
const Er = {
|
|
333
333
|
name: "eventListeners",
|
|
334
334
|
enabled: !0,
|
|
335
335
|
phase: "write",
|
|
336
336
|
fn: function() {
|
|
337
337
|
},
|
|
338
|
-
effect:
|
|
338
|
+
effect: Or,
|
|
339
339
|
data: {}
|
|
340
340
|
};
|
|
341
|
-
var
|
|
341
|
+
var Sr = {
|
|
342
342
|
left: "right",
|
|
343
343
|
right: "left",
|
|
344
344
|
bottom: "top",
|
|
@@ -346,16 +346,16 @@ var wr = {
|
|
|
346
346
|
};
|
|
347
347
|
function ot(e) {
|
|
348
348
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
349
|
-
return
|
|
349
|
+
return Sr[t];
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
var
|
|
352
|
+
var xr = {
|
|
353
353
|
start: "end",
|
|
354
354
|
end: "start"
|
|
355
355
|
};
|
|
356
|
-
function
|
|
356
|
+
function It(e) {
|
|
357
357
|
return e.replace(/start|end/g, function(t) {
|
|
358
|
-
return
|
|
358
|
+
return xr[t];
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
function _t(e) {
|
|
@@ -368,11 +368,11 @@ function _t(e) {
|
|
|
368
368
|
function Lt(e) {
|
|
369
369
|
return Ce(le(e)).left + _t(e).scrollLeft;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Tr(e, t) {
|
|
372
372
|
var n = q(e), r = le(e), o = n.visualViewport, s = r.clientWidth, l = r.clientHeight, u = 0, a = 0;
|
|
373
373
|
if (o) {
|
|
374
374
|
s = o.width, l = o.height;
|
|
375
|
-
var d =
|
|
375
|
+
var d = dn();
|
|
376
376
|
(d || !d && t === "fixed") && (u = o.offsetLeft, a = o.offsetTop);
|
|
377
377
|
}
|
|
378
378
|
return {
|
|
@@ -382,9 +382,9 @@ function Er(e, t) {
|
|
|
382
382
|
y: a
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
var t, n = le(e), r = _t(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, s =
|
|
387
|
-
return ue(o || n).direction === "rtl" && (u +=
|
|
385
|
+
function Dr(e) {
|
|
386
|
+
var t, n = le(e), r = _t(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, s = ye(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = ye(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), u = -r.scrollLeft + Lt(e), a = -r.scrollTop;
|
|
387
|
+
return ue(o || n).direction === "rtl" && (u += ye(n.clientWidth, o ? o.clientWidth : 0) - s), {
|
|
388
388
|
width: s,
|
|
389
389
|
height: l,
|
|
390
390
|
x: u,
|
|
@@ -395,13 +395,13 @@ function Rt(e) {
|
|
|
395
395
|
var t = ue(e), n = t.overflow, r = t.overflowX, o = t.overflowY;
|
|
396
396
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
397
397
|
}
|
|
398
|
-
function
|
|
399
|
-
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : K(e) && Rt(e) ? e :
|
|
398
|
+
function gn(e) {
|
|
399
|
+
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : K(e) && Rt(e) ? e : gn(ut(e));
|
|
400
400
|
}
|
|
401
401
|
function Be(e, t) {
|
|
402
402
|
var n;
|
|
403
403
|
t === void 0 && (t = []);
|
|
404
|
-
var r =
|
|
404
|
+
var r = gn(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), s = q(r), l = o ? [s].concat(s.visualViewport || [], Rt(r) ? r : []) : r, u = t.concat(l);
|
|
405
405
|
return o ? u : (
|
|
406
406
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
407
407
|
u.concat(Be(ut(l)))
|
|
@@ -415,27 +415,27 @@ function wt(e) {
|
|
|
415
415
|
bottom: e.y + e.height
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Ar(e, t) {
|
|
419
419
|
var n = Ce(e, !1, t === "fixed");
|
|
420
420
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return t ===
|
|
422
|
+
function $t(e, t, n) {
|
|
423
|
+
return t === fn ? wt(Tr(e, n)) : ge(t) ? Ar(t, n) : wt(Dr(le(e)));
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Cr(e) {
|
|
426
426
|
var t = Be(ut(e)), n = ["absolute", "fixed"].indexOf(ue(e).position) >= 0, r = n && K(e) ? Fe(e) : e;
|
|
427
|
-
return
|
|
428
|
-
return
|
|
427
|
+
return ge(r) ? t.filter(function(o) {
|
|
428
|
+
return ge(o) && vn(o, r) && ne(o) !== "body";
|
|
429
429
|
}) : [];
|
|
430
430
|
}
|
|
431
|
-
function
|
|
432
|
-
var o = t === "clippingParents" ?
|
|
433
|
-
var f =
|
|
434
|
-
return a.top =
|
|
435
|
-
},
|
|
431
|
+
function _r(e, t, n, r) {
|
|
432
|
+
var o = t === "clippingParents" ? Cr(e) : [].concat(t), s = [].concat(o, [n]), l = s[0], u = s.reduce(function(a, d) {
|
|
433
|
+
var f = $t(e, d, r);
|
|
434
|
+
return a.top = ye(f.top, a.top), a.right = at(f.right, a.right), a.bottom = at(f.bottom, a.bottom), a.left = ye(f.left, a.left), a;
|
|
435
|
+
}, $t(e, l, r));
|
|
436
436
|
return u.width = u.right - u.left, u.height = u.bottom - u.top, u.x = u.left, u.y = u.top, u;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function bn(e) {
|
|
439
439
|
var t = e.reference, n = e.element, r = e.placement, o = r ? te(r) : null, s = r ? _e(r) : null, l = t.x + t.width / 2 - n.width / 2, u = t.y + t.height / 2 - n.height / 2, a;
|
|
440
440
|
switch (o) {
|
|
441
441
|
case k:
|
|
@@ -482,37 +482,37 @@ function mn(e) {
|
|
|
482
482
|
}
|
|
483
483
|
return a;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function $e(e, t) {
|
|
486
486
|
t === void 0 && (t = {});
|
|
487
|
-
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, s = n.strategy, l = s === void 0 ? e.strategy : s, u = n.boundary, a = u === void 0 ?
|
|
487
|
+
var n = t, r = n.placement, o = r === void 0 ? e.placement : r, s = n.strategy, l = s === void 0 ? e.strategy : s, u = n.boundary, a = u === void 0 ? Xn : u, d = n.rootBoundary, f = d === void 0 ? fn : d, v = n.elementContext, y = v === void 0 ? Ne : v, h = n.altBoundary, b = h === void 0 ? !1 : h, m = n.padding, w = m === void 0 ? 0 : m, T = mn(typeof w != "number" ? w : yn(w, Ue)), D = y === Ne ? Jn : Ne, O = e.rects.popper, i = e.elements[b ? D : y], E = _r(ge(i) ? i : i.contextElement || le(e.elements.popper), a, f, l), p = Ce(e.elements.reference), x = bn({
|
|
488
488
|
reference: p,
|
|
489
489
|
element: O,
|
|
490
490
|
placement: o
|
|
491
|
-
}), _ = wt(Object.assign({}, O, x)), A =
|
|
491
|
+
}), _ = wt(Object.assign({}, O, x)), A = y === Ne ? _ : p, R = {
|
|
492
492
|
top: E.top - A.top + T.top,
|
|
493
493
|
bottom: A.bottom - E.bottom + T.bottom,
|
|
494
494
|
left: E.left - A.left + T.left,
|
|
495
495
|
right: A.right - E.right + T.right
|
|
496
|
-
},
|
|
497
|
-
if (
|
|
498
|
-
var M =
|
|
496
|
+
}, j = e.modifiersData.offset;
|
|
497
|
+
if (y === Ne && j) {
|
|
498
|
+
var M = j[o];
|
|
499
499
|
Object.keys(R).forEach(function(V) {
|
|
500
|
-
var H = [Y, G].indexOf(V) >= 0 ? 1 : -1,
|
|
501
|
-
R[V] += M[
|
|
500
|
+
var H = [Y, G].indexOf(V) >= 0 ? 1 : -1, $ = [k, G].indexOf(V) >= 0 ? "y" : "x";
|
|
501
|
+
R[V] += M[$] * H;
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
return R;
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function Lr(e, t) {
|
|
507
507
|
t === void 0 && (t = {});
|
|
508
|
-
var n = t, r = n.placement, o = n.boundary, s = n.rootBoundary, l = n.padding, u = n.flipVariations, a = n.allowedAutoPlacements, d = a === void 0 ?
|
|
508
|
+
var n = t, r = n.placement, o = n.boundary, s = n.rootBoundary, l = n.padding, u = n.flipVariations, a = n.allowedAutoPlacements, d = a === void 0 ? ln : a, f = _e(r), v = f ? u ? Pt : Pt.filter(function(b) {
|
|
509
509
|
return _e(b) === f;
|
|
510
|
-
}) : Ue,
|
|
510
|
+
}) : Ue, y = v.filter(function(b) {
|
|
511
511
|
return d.indexOf(b) >= 0;
|
|
512
512
|
});
|
|
513
|
-
|
|
514
|
-
var h =
|
|
515
|
-
return b[m] =
|
|
513
|
+
y.length === 0 && (y = v);
|
|
514
|
+
var h = y.reduce(function(b, m) {
|
|
515
|
+
return b[m] = $e(e, {
|
|
516
516
|
placement: m,
|
|
517
517
|
boundary: o,
|
|
518
518
|
rootBoundary: s,
|
|
@@ -523,17 +523,17 @@ function Ar(e, t) {
|
|
|
523
523
|
return h[b] - h[m];
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Rr(e) {
|
|
527
527
|
if (te(e) === Tt)
|
|
528
528
|
return [];
|
|
529
529
|
var t = ot(e);
|
|
530
|
-
return [
|
|
530
|
+
return [It(e), t, It(t)];
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Mr(e) {
|
|
533
533
|
var t = e.state, n = e.options, r = e.name;
|
|
534
534
|
if (!t.modifiersData[r]._skip) {
|
|
535
|
-
for (var o = n.mainAxis, s = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !0 : l, a = n.fallbackPlacements, d = n.padding, f = n.boundary, v = n.rootBoundary,
|
|
536
|
-
return re.concat(te(X) === Tt ?
|
|
535
|
+
for (var o = n.mainAxis, s = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !0 : l, a = n.fallbackPlacements, d = n.padding, f = n.boundary, v = n.rootBoundary, y = n.altBoundary, h = n.flipVariations, b = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, w = t.options.placement, T = te(w), D = T === w, O = a || (D || !b ? [ot(w)] : Rr(w)), i = [w].concat(O).reduce(function(re, X) {
|
|
536
|
+
return re.concat(te(X) === Tt ? Lr(t, {
|
|
537
537
|
placement: X,
|
|
538
538
|
boundary: f,
|
|
539
539
|
rootBoundary: v,
|
|
@@ -542,22 +542,22 @@ function _r(e) {
|
|
|
542
542
|
allowedAutoPlacements: m
|
|
543
543
|
}) : X);
|
|
544
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
|
|
546
|
-
placement:
|
|
545
|
+
var j = i[R], M = te(j), V = _e(j) === De, H = [k, G].indexOf(M) >= 0, $ = H ? "width" : "height", N = $e(t, {
|
|
546
|
+
placement: j,
|
|
547
547
|
boundary: f,
|
|
548
548
|
rootBoundary: v,
|
|
549
|
-
altBoundary:
|
|
549
|
+
altBoundary: y,
|
|
550
550
|
padding: d
|
|
551
551
|
}), P = H ? V ? Y : U : V ? G : k;
|
|
552
|
-
E[
|
|
552
|
+
E[$] > p[$] && (P = ot(P));
|
|
553
553
|
var I = ot(P), J = [];
|
|
554
|
-
if (s && J.push(
|
|
554
|
+
if (s && J.push(N[M] <= 0), u && J.push(N[P] <= 0, N[I] <= 0), J.every(function(re) {
|
|
555
555
|
return re;
|
|
556
556
|
})) {
|
|
557
|
-
A =
|
|
557
|
+
A = j, _ = !1;
|
|
558
558
|
break;
|
|
559
559
|
}
|
|
560
|
-
x.set(
|
|
560
|
+
x.set(j, J);
|
|
561
561
|
}
|
|
562
562
|
if (_)
|
|
563
563
|
for (var Q = b ? 3 : 1, pe = function(X) {
|
|
@@ -577,11 +577,11 @@ function _r(e) {
|
|
|
577
577
|
t.placement !== A && (t.modifiersData[r]._skip = !0, t.placement = A, t.reset = !0);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const Vr = {
|
|
581
581
|
name: "flip",
|
|
582
582
|
enabled: !0,
|
|
583
583
|
phase: "main",
|
|
584
|
-
fn:
|
|
584
|
+
fn: Mr,
|
|
585
585
|
requiresIfExists: ["offset"],
|
|
586
586
|
data: {
|
|
587
587
|
_skip: !1
|
|
@@ -598,17 +598,17 @@ function Wt(e, t, n) {
|
|
|
598
598
|
left: e.left - t.width - n.x
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function kt(e) {
|
|
602
602
|
return [k, Y, G, U].some(function(t) {
|
|
603
603
|
return e[t] >= 0;
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
|
-
function
|
|
607
|
-
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, s = t.modifiersData.preventOverflow, l =
|
|
606
|
+
function jr(e) {
|
|
607
|
+
var t = e.state, n = e.name, r = t.rects.reference, o = t.rects.popper, s = t.modifiersData.preventOverflow, l = $e(t, {
|
|
608
608
|
elementContext: "reference"
|
|
609
|
-
}), u =
|
|
609
|
+
}), u = $e(t, {
|
|
610
610
|
altBoundary: !0
|
|
611
|
-
}), a = Wt(l, r), d = Wt(u, o, s), f =
|
|
611
|
+
}), a = Wt(l, r), d = Wt(u, o, s), f = kt(a), v = kt(d);
|
|
612
612
|
t.modifiersData[n] = {
|
|
613
613
|
referenceClippingOffsets: a,
|
|
614
614
|
popperEscapeOffsets: d,
|
|
@@ -619,14 +619,14 @@ function Rr(e) {
|
|
|
619
619
|
"data-popper-escaped": v
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
const
|
|
622
|
+
const Nr = {
|
|
623
623
|
name: "hide",
|
|
624
624
|
enabled: !0,
|
|
625
625
|
phase: "main",
|
|
626
626
|
requiresIfExists: ["preventOverflow"],
|
|
627
|
-
fn:
|
|
627
|
+
fn: jr
|
|
628
628
|
};
|
|
629
|
-
function
|
|
629
|
+
function Pr(e, t, n) {
|
|
630
630
|
var r = te(e), o = [U, k].indexOf(r) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, t, {
|
|
631
631
|
placement: e
|
|
632
632
|
})) : n, l = s[0], u = s[1];
|
|
@@ -638,44 +638,44 @@ function Vr(e, t, n) {
|
|
|
638
638
|
y: u
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
var t = e.state, n = e.options, r = e.name, o = n.offset, s = o === void 0 ? [0, 0] : o, l =
|
|
643
|
-
return f[v] =
|
|
641
|
+
function Br(e) {
|
|
642
|
+
var t = e.state, n = e.options, r = e.name, o = n.offset, s = o === void 0 ? [0, 0] : o, l = ln.reduce(function(f, v) {
|
|
643
|
+
return f[v] = Pr(v, t.rects, s), f;
|
|
644
644
|
}, {}), u = l[t.placement], a = u.x, d = u.y;
|
|
645
645
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += a, t.modifiersData.popperOffsets.y += d), t.modifiersData[r] = l;
|
|
646
646
|
}
|
|
647
|
-
const
|
|
647
|
+
const Hr = {
|
|
648
648
|
name: "offset",
|
|
649
649
|
enabled: !0,
|
|
650
650
|
phase: "main",
|
|
651
651
|
requires: ["popperOffsets"],
|
|
652
|
-
fn:
|
|
652
|
+
fn: Br
|
|
653
653
|
};
|
|
654
|
-
function
|
|
654
|
+
function Ir(e) {
|
|
655
655
|
var t = e.state, n = e.name;
|
|
656
|
-
t.modifiersData[n] =
|
|
656
|
+
t.modifiersData[n] = bn({
|
|
657
657
|
reference: t.rects.reference,
|
|
658
658
|
element: t.rects.popper,
|
|
659
659
|
placement: t.placement
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const $r = {
|
|
663
663
|
name: "popperOffsets",
|
|
664
664
|
enabled: !0,
|
|
665
665
|
phase: "read",
|
|
666
|
-
fn:
|
|
666
|
+
fn: Ir,
|
|
667
667
|
data: {}
|
|
668
668
|
};
|
|
669
|
-
function
|
|
669
|
+
function Wr(e) {
|
|
670
670
|
return e === "x" ? "y" : "x";
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, s = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !1 : l, a = n.boundary, d = n.rootBoundary, f = n.altBoundary, v = n.padding,
|
|
672
|
+
function kr(e) {
|
|
673
|
+
var t = e.state, n = e.options, r = e.name, o = n.mainAxis, s = o === void 0 ? !0 : o, l = n.altAxis, u = l === void 0 ? !1 : l, a = n.boundary, d = n.rootBoundary, f = n.altBoundary, v = n.padding, y = n.tether, h = y === void 0 ? !0 : y, b = n.tetherOffset, m = b === void 0 ? 0 : b, w = $e(t, {
|
|
674
674
|
boundary: a,
|
|
675
675
|
rootBoundary: d,
|
|
676
676
|
padding: v,
|
|
677
677
|
altBoundary: f
|
|
678
|
-
}), T = te(t.placement), D = _e(t.placement), O = !D, i = Ct(T), E =
|
|
678
|
+
}), T = te(t.placement), D = _e(t.placement), O = !D, i = Ct(T), E = Wr(i), p = t.modifiersData.popperOffsets, x = t.rects.reference, _ = t.rects.popper, A = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
679
679
|
placement: t.placement
|
|
680
680
|
})) : m, R = typeof A == "number" ? {
|
|
681
681
|
mainAxis: A,
|
|
@@ -683,48 +683,48 @@ function Ir(e) {
|
|
|
683
683
|
} : Object.assign({
|
|
684
684
|
mainAxis: 0,
|
|
685
685
|
altAxis: 0
|
|
686
|
-
}, A),
|
|
686
|
+
}, A), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, M = {
|
|
687
687
|
x: 0,
|
|
688
688
|
y: 0
|
|
689
689
|
};
|
|
690
690
|
if (p) {
|
|
691
691
|
if (s) {
|
|
692
|
-
var V, H = i === "y" ? k : U,
|
|
692
|
+
var V, H = i === "y" ? k : U, $ = i === "y" ? G : Y, N = i === "y" ? "height" : "width", P = p[i], I = P + w[H], J = P - w[$], Q = h ? -_[N] / 2 : 0, pe = D === De ? x[N] : _[N], Z = D === De ? -_[N] : -x[N], de = t.elements.arrow, re = h && de ? At(de) : {
|
|
693
693
|
width: 0,
|
|
694
694
|
height: 0
|
|
695
|
-
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
|
695
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : hn(), ie = X[H], be = X[$], oe = Pe(0, x[N], re[N]), we = O ? x[N] / 2 - Q - oe - ie - R.mainAxis : pe - oe - ie - R.mainAxis, ce = O ? -x[N] / 2 + Q + oe + be + R.mainAxis : Z + oe + be + R.mainAxis, Oe = t.elements.arrow && Fe(t.elements.arrow), ze = Oe ? i === "y" ? Oe.clientTop || 0 : Oe.clientLeft || 0 : 0, Le = (V = j == null ? void 0 : j[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
696
|
p[i] = Re, M[i] = Re - P;
|
|
697
697
|
}
|
|
698
698
|
if (u) {
|
|
699
|
-
var Me, Ye = i === "x" ? k : U, Xe = i === "x" ? G : Y, ae = p[E], fe = E === "y" ? "height" : "width", Ve = ae + w[Ye], ve = ae - w[Xe],
|
|
699
|
+
var Me, Ye = i === "x" ? k : U, Xe = i === "x" ? G : Y, ae = p[E], fe = E === "y" ? "height" : "width", Ve = ae + w[Ye], ve = ae - w[Xe], je = [k, U].indexOf(T) !== -1, Je = (Me = j == null ? void 0 : j[E]) != null ? Me : 0, Qe = je ? Ve : ae - x[fe] - _[fe] - Je + R.altAxis, Ze = je ? ae + x[fe] + _[fe] - Je - R.altAxis : ve, et = h && je ? pr(Qe, ae, Ze) : Pe(h ? Qe : Ve, ae, h ? Ze : ve);
|
|
700
700
|
p[E] = et, M[E] = et - ae;
|
|
701
701
|
}
|
|
702
702
|
t.modifiersData[r] = M;
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
705
|
+
const Ur = {
|
|
706
706
|
name: "preventOverflow",
|
|
707
707
|
enabled: !0,
|
|
708
708
|
phase: "main",
|
|
709
|
-
fn:
|
|
709
|
+
fn: kr,
|
|
710
710
|
requiresIfExists: ["offset"]
|
|
711
711
|
};
|
|
712
|
-
function
|
|
712
|
+
function Fr(e) {
|
|
713
713
|
return {
|
|
714
714
|
scrollLeft: e.scrollLeft,
|
|
715
715
|
scrollTop: e.scrollTop
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
return e === q(e) || !K(e) ? _t(e) :
|
|
718
|
+
function qr(e) {
|
|
719
|
+
return e === q(e) || !K(e) ? _t(e) : Fr(e);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function zr(e) {
|
|
722
722
|
var t = e.getBoundingClientRect(), n = Ae(t.width) / e.offsetWidth || 1, r = Ae(t.height) / e.offsetHeight || 1;
|
|
723
723
|
return n !== 1 || r !== 1;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Kr(e, t, n) {
|
|
726
726
|
n === void 0 && (n = !1);
|
|
727
|
-
var r = K(t), o = K(t) &&
|
|
727
|
+
var r = K(t), o = K(t) && zr(t), s = le(t), l = Ce(e, o, n), u = {
|
|
728
728
|
scrollLeft: 0,
|
|
729
729
|
scrollTop: 0
|
|
730
730
|
}, a = {
|
|
@@ -732,14 +732,14 @@ function Fr(e, t, n) {
|
|
|
732
732
|
y: 0
|
|
733
733
|
};
|
|
734
734
|
return (r || !r && !n) && ((ne(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
735
|
-
Rt(s)) && (u =
|
|
735
|
+
Rt(s)) && (u = qr(t)), K(t) ? (a = Ce(t, !0), a.x += t.clientLeft, a.y += t.clientTop) : s && (a.x = Lt(s))), {
|
|
736
736
|
x: l.left + u.scrollLeft - a.x,
|
|
737
737
|
y: l.top + u.scrollTop - a.y,
|
|
738
738
|
width: l.width,
|
|
739
739
|
height: l.height
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Gr(e) {
|
|
743
743
|
var t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
744
744
|
e.forEach(function(s) {
|
|
745
745
|
t.set(s.name, s);
|
|
@@ -758,15 +758,15 @@ function qr(e) {
|
|
|
758
758
|
n.has(s.name) || o(s);
|
|
759
759
|
}), r;
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
var t =
|
|
763
|
-
return
|
|
761
|
+
function Yr(e) {
|
|
762
|
+
var t = Gr(e);
|
|
763
|
+
return sr.reduce(function(n, r) {
|
|
764
764
|
return n.concat(t.filter(function(o) {
|
|
765
765
|
return o.phase === r;
|
|
766
766
|
}));
|
|
767
767
|
}, []);
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Xr(e) {
|
|
770
770
|
var t;
|
|
771
771
|
return function() {
|
|
772
772
|
return t || (t = new Promise(function(n) {
|
|
@@ -776,7 +776,7 @@ function Kr(e) {
|
|
|
776
776
|
})), t;
|
|
777
777
|
};
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function Jr(e) {
|
|
780
780
|
var t = e.reduce(function(n, r) {
|
|
781
781
|
var o = n[r.name];
|
|
782
782
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -788,27 +788,27 @@ function Gr(e) {
|
|
|
788
788
|
return t[n];
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
|
-
var
|
|
791
|
+
var Ut = {
|
|
792
792
|
placement: "bottom",
|
|
793
793
|
modifiers: [],
|
|
794
794
|
strategy: "absolute"
|
|
795
795
|
};
|
|
796
|
-
function
|
|
796
|
+
function Ft() {
|
|
797
797
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
798
798
|
t[n] = arguments[n];
|
|
799
799
|
return !t.some(function(r) {
|
|
800
800
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Qr(e) {
|
|
804
804
|
e === void 0 && (e = {});
|
|
805
|
-
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, s = o === void 0 ?
|
|
805
|
+
var t = e, n = t.defaultModifiers, r = n === void 0 ? [] : n, o = t.defaultOptions, s = o === void 0 ? Ut : o;
|
|
806
806
|
return function(u, a, d) {
|
|
807
807
|
d === void 0 && (d = s);
|
|
808
808
|
var f = {
|
|
809
809
|
placement: "bottom",
|
|
810
810
|
orderedModifiers: [],
|
|
811
|
-
options: Object.assign({},
|
|
811
|
+
options: Object.assign({}, Ut, s),
|
|
812
812
|
modifiersData: {},
|
|
813
813
|
elements: {
|
|
814
814
|
reference: u,
|
|
@@ -816,15 +816,15 @@ function Yr(e) {
|
|
|
816
816
|
},
|
|
817
817
|
attributes: {},
|
|
818
818
|
styles: {}
|
|
819
|
-
}, v = [],
|
|
819
|
+
}, v = [], y = !1, h = {
|
|
820
820
|
state: f,
|
|
821
821
|
setOptions: function(T) {
|
|
822
822
|
var D = typeof T == "function" ? T(f.options) : T;
|
|
823
823
|
m(), f.options = Object.assign({}, s, f.options, D), f.scrollParents = {
|
|
824
|
-
reference:
|
|
824
|
+
reference: ge(u) ? Be(u) : u.contextElement ? Be(u.contextElement) : [],
|
|
825
825
|
popper: Be(a)
|
|
826
826
|
};
|
|
827
|
-
var O =
|
|
827
|
+
var O = Yr(Jr([].concat(r, f.options.modifiers)));
|
|
828
828
|
return f.orderedModifiers = O.filter(function(i) {
|
|
829
829
|
return i.enabled;
|
|
830
830
|
}), b(), h.update();
|
|
@@ -835,11 +835,11 @@ function Yr(e) {
|
|
|
835
835
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
836
836
|
// prefer the async Popper#update method
|
|
837
837
|
forceUpdate: function() {
|
|
838
|
-
if (!
|
|
838
|
+
if (!y) {
|
|
839
839
|
var T = f.elements, D = T.reference, O = T.popper;
|
|
840
|
-
if (
|
|
840
|
+
if (Ft(D, O)) {
|
|
841
841
|
f.rects = {
|
|
842
|
-
reference:
|
|
842
|
+
reference: Kr(D, Fe(O), f.options.strategy === "fixed"),
|
|
843
843
|
popper: At(O)
|
|
844
844
|
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(R) {
|
|
845
845
|
return f.modifiersData[R.name] = Object.assign({}, R.data);
|
|
@@ -862,19 +862,19 @@ function Yr(e) {
|
|
|
862
862
|
},
|
|
863
863
|
// Async and optimistically optimized update – it will not be executed if
|
|
864
864
|
// not necessary (debounced to run at most once-per-tick)
|
|
865
|
-
update:
|
|
865
|
+
update: Xr(function() {
|
|
866
866
|
return new Promise(function(w) {
|
|
867
867
|
h.forceUpdate(), w(f);
|
|
868
868
|
});
|
|
869
869
|
}),
|
|
870
870
|
destroy: function() {
|
|
871
|
-
m(),
|
|
871
|
+
m(), y = !0;
|
|
872
872
|
}
|
|
873
873
|
};
|
|
874
|
-
if (!
|
|
874
|
+
if (!Ft(u, a))
|
|
875
875
|
return h;
|
|
876
876
|
h.setOptions(d).then(function(w) {
|
|
877
|
-
!
|
|
877
|
+
!y && d.onFirstUpdate && d.onFirstUpdate(w);
|
|
878
878
|
});
|
|
879
879
|
function b() {
|
|
880
880
|
f.orderedModifiers.forEach(function(w) {
|
|
@@ -899,15 +899,15 @@ function Yr(e) {
|
|
|
899
899
|
return h;
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
|
-
var
|
|
903
|
-
defaultModifiers:
|
|
904
|
-
}),
|
|
902
|
+
var Zr = [Er, $r, wr, pn, Hr, Vr, Ur, mr, Nr], ei = /* @__PURE__ */ Qr({
|
|
903
|
+
defaultModifiers: Zr
|
|
904
|
+
}), ti = "tippy-box", wn = "tippy-content", ni = "tippy-backdrop", On = "tippy-arrow", En = "tippy-svg-arrow", me = {
|
|
905
905
|
passive: !0,
|
|
906
906
|
capture: !0
|
|
907
|
-
},
|
|
907
|
+
}, Sn = function() {
|
|
908
908
|
return document.body;
|
|
909
909
|
};
|
|
910
|
-
function
|
|
910
|
+
function ri(e, t) {
|
|
911
911
|
return {}.hasOwnProperty.call(e, t);
|
|
912
912
|
}
|
|
913
913
|
function lt(e, t, n) {
|
|
@@ -921,10 +921,10 @@ function Mt(e, t) {
|
|
|
921
921
|
var n = {}.toString.call(e);
|
|
922
922
|
return n.indexOf("[object") === 0 && n.indexOf(t + "]") > -1;
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function xn(e, t) {
|
|
925
925
|
return typeof e == "function" ? e.apply(void 0, t) : e;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function qt(e, t) {
|
|
928
928
|
if (t === 0)
|
|
929
929
|
return e;
|
|
930
930
|
var n;
|
|
@@ -934,33 +934,33 @@ function Ft(e, t) {
|
|
|
934
934
|
}, t);
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function ii(e, t) {
|
|
938
938
|
var n = Object.assign({}, e);
|
|
939
939
|
return t.forEach(function(r) {
|
|
940
940
|
delete n[r];
|
|
941
941
|
}), n;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function oi(e) {
|
|
944
944
|
return e.split(/\s+/).filter(Boolean);
|
|
945
945
|
}
|
|
946
946
|
function Te(e) {
|
|
947
947
|
return [].concat(e);
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function zt(e, t) {
|
|
950
950
|
e.indexOf(t) === -1 && e.push(t);
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function ai(e) {
|
|
953
953
|
return e.filter(function(t, n) {
|
|
954
954
|
return e.indexOf(t) === n;
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function si(e) {
|
|
958
958
|
return e.split("-")[0];
|
|
959
959
|
}
|
|
960
960
|
function st(e) {
|
|
961
961
|
return [].slice.call(e);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Kt(e) {
|
|
964
964
|
return Object.keys(e).reduce(function(t, n) {
|
|
965
965
|
return e[n] !== void 0 && (t[n] = e[n]), t;
|
|
966
966
|
}, {});
|
|
@@ -968,44 +968,44 @@ function zt(e) {
|
|
|
968
968
|
function He() {
|
|
969
969
|
return document.createElement("div");
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function We(e) {
|
|
972
972
|
return ["Element", "Fragment"].some(function(t) {
|
|
973
973
|
return Mt(e, t);
|
|
974
974
|
});
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function ui(e) {
|
|
977
977
|
return Mt(e, "NodeList");
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function ci(e) {
|
|
980
980
|
return Mt(e, "MouseEvent");
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function fi(e) {
|
|
983
983
|
return !!(e && e._tippy && e._tippy.reference === e);
|
|
984
984
|
}
|
|
985
|
-
function
|
|
986
|
-
return
|
|
985
|
+
function li(e) {
|
|
986
|
+
return We(e) ? [e] : ui(e) ? st(e) : Array.isArray(e) ? e : st(document.querySelectorAll(e));
|
|
987
987
|
}
|
|
988
988
|
function pt(e, t) {
|
|
989
989
|
e.forEach(function(n) {
|
|
990
990
|
n && (n.style.transitionDuration = t + "ms");
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function Gt(e, t) {
|
|
994
994
|
e.forEach(function(n) {
|
|
995
995
|
n && n.setAttribute("data-state", t);
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function pi(e) {
|
|
999
999
|
var t, n = Te(e), r = n[0];
|
|
1000
1000
|
return r != null && (t = r.ownerDocument) != null && t.body ? r.ownerDocument : document;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1002
|
+
function di(e, t) {
|
|
1003
1003
|
var n = t.clientX, r = t.clientY;
|
|
1004
1004
|
return e.every(function(o) {
|
|
1005
|
-
var s = o.popperRect, l = o.popperState, u = o.props, a = u.interactiveBorder, d =
|
|
1005
|
+
var s = o.popperRect, l = o.popperState, u = o.props, a = u.interactiveBorder, d = si(l.placement), f = l.modifiersData.offset;
|
|
1006
1006
|
if (!f)
|
|
1007
1007
|
return !0;
|
|
1008
|
-
var v = d === "bottom" ? f.top.y : 0,
|
|
1008
|
+
var v = d === "bottom" ? f.top.y : 0, y = d === "top" ? f.bottom.y : 0, h = d === "right" ? f.left.x : 0, b = d === "left" ? f.right.x : 0, m = s.top - r + v > a, w = r - s.bottom - y > a, T = s.left - n + h > a, D = n - s.right - b > a;
|
|
1009
1009
|
return m || w || T || D;
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
@@ -1015,7 +1015,7 @@ function dt(e, t, n) {
|
|
|
1015
1015
|
e[r](o, n);
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Yt(e, t) {
|
|
1019
1019
|
for (var n = t; n; ) {
|
|
1020
1020
|
var r;
|
|
1021
1021
|
if (e.contains(n))
|
|
@@ -1026,25 +1026,25 @@ function Gt(e, t) {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
var ee = {
|
|
1028
1028
|
isTouch: !1
|
|
1029
|
-
},
|
|
1030
|
-
function
|
|
1031
|
-
ee.isTouch || (ee.isTouch = !0, window.performance && document.addEventListener("mousemove",
|
|
1029
|
+
}, Xt = 0;
|
|
1030
|
+
function vi() {
|
|
1031
|
+
ee.isTouch || (ee.isTouch = !0, window.performance && document.addEventListener("mousemove", Tn));
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Tn() {
|
|
1034
1034
|
var e = performance.now();
|
|
1035
|
-
e -
|
|
1035
|
+
e - Xt < 20 && (ee.isTouch = !1, document.removeEventListener("mousemove", Tn)), Xt = e;
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function hi() {
|
|
1038
1038
|
var e = document.activeElement;
|
|
1039
|
-
if (
|
|
1039
|
+
if (fi(e)) {
|
|
1040
1040
|
var t = e._tippy;
|
|
1041
1041
|
e.blur && !t.state.isVisible && e.blur();
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
document.addEventListener("touchstart",
|
|
1044
|
+
function mi() {
|
|
1045
|
+
document.addEventListener("touchstart", vi, me), window.addEventListener("blur", hi);
|
|
1046
1046
|
}
|
|
1047
|
-
var
|
|
1047
|
+
var yi = typeof window < "u" && typeof document < "u", gi = yi ? (
|
|
1048
1048
|
// @ts-ignore
|
|
1049
1049
|
!!window.msCrypto
|
|
1050
1050
|
) : !1;
|
|
@@ -1052,22 +1052,22 @@ function xe(e) {
|
|
|
1052
1052
|
var t = e === "destroy" ? "n already-" : " ";
|
|
1053
1053
|
return [e + "() was called on a" + t + "destroyed instance. This is a no-op but", "indicates a potential memory leak."].join(" ");
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function Jt(e) {
|
|
1056
1056
|
var t = /[ \t]{2,}/g, n = /^[ \t]*/gm;
|
|
1057
1057
|
return e.replace(t, " ").replace(n, "").trim();
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return
|
|
1059
|
+
function bi(e) {
|
|
1060
|
+
return Jt(`
|
|
1061
1061
|
%ctippy.js
|
|
1062
1062
|
|
|
1063
|
-
%c` +
|
|
1063
|
+
%c` + Jt(e) + `
|
|
1064
1064
|
|
|
1065
1065
|
%c👷 This is a development-only message. It will be removed in production.
|
|
1066
1066
|
`);
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Dn(e) {
|
|
1069
1069
|
return [
|
|
1070
|
-
|
|
1070
|
+
bi(e),
|
|
1071
1071
|
// title
|
|
1072
1072
|
"color: #00C584; font-size: 1.3em; font-weight: bold;",
|
|
1073
1073
|
// message
|
|
@@ -1077,32 +1077,32 @@ function Sn(e) {
|
|
|
1077
1077
|
];
|
|
1078
1078
|
}
|
|
1079
1079
|
var ke;
|
|
1080
|
-
process.env.NODE_ENV !== "production" &&
|
|
1081
|
-
function
|
|
1080
|
+
process.env.NODE_ENV !== "production" && wi();
|
|
1081
|
+
function wi() {
|
|
1082
1082
|
ke = /* @__PURE__ */ new Set();
|
|
1083
1083
|
}
|
|
1084
1084
|
function se(e, t) {
|
|
1085
1085
|
if (e && !ke.has(t)) {
|
|
1086
1086
|
var n;
|
|
1087
|
-
ke.add(t), (n = console).warn.apply(n,
|
|
1087
|
+
ke.add(t), (n = console).warn.apply(n, Dn(t));
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
function Ot(e, t) {
|
|
1091
1091
|
if (e && !ke.has(t)) {
|
|
1092
1092
|
var n;
|
|
1093
|
-
ke.add(t), (n = console).error.apply(n,
|
|
1093
|
+
ke.add(t), (n = console).error.apply(n, Dn(t));
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Oi(e) {
|
|
1097
1097
|
var t = !e, n = Object.prototype.toString.call(e) === "[object Object]" && !e.addEventListener;
|
|
1098
1098
|
Ot(t, ["tippy() was passed", "`" + String(e) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ot(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
|
|
1099
1099
|
}
|
|
1100
|
-
var
|
|
1100
|
+
var An = {
|
|
1101
1101
|
animateFill: !1,
|
|
1102
1102
|
followCursor: !1,
|
|
1103
1103
|
inlinePositioning: !1,
|
|
1104
1104
|
sticky: !1
|
|
1105
|
-
},
|
|
1105
|
+
}, Ei = {
|
|
1106
1106
|
allowHTML: !1,
|
|
1107
1107
|
animation: "fade",
|
|
1108
1108
|
arrow: !0,
|
|
@@ -1113,7 +1113,7 @@ var xn = {
|
|
|
1113
1113
|
theme: "",
|
|
1114
1114
|
zIndex: 9999
|
|
1115
1115
|
}, F = Object.assign({
|
|
1116
|
-
appendTo:
|
|
1116
|
+
appendTo: Sn,
|
|
1117
1117
|
aria: {
|
|
1118
1118
|
content: "auto",
|
|
1119
1119
|
expanded: "auto"
|
|
@@ -1160,14 +1160,14 @@ var xn = {
|
|
|
1160
1160
|
touch: !0,
|
|
1161
1161
|
trigger: "mouseenter focus",
|
|
1162
1162
|
triggerTarget: null
|
|
1163
|
-
},
|
|
1164
|
-
process.env.NODE_ENV !== "production" &&
|
|
1163
|
+
}, An, Ei), Si = Object.keys(F), xi = function(t) {
|
|
1164
|
+
process.env.NODE_ENV !== "production" && _n(t, []);
|
|
1165
1165
|
var n = Object.keys(t);
|
|
1166
1166
|
n.forEach(function(r) {
|
|
1167
1167
|
F[r] = t[r];
|
|
1168
1168
|
});
|
|
1169
1169
|
};
|
|
1170
|
-
function
|
|
1170
|
+
function Cn(e) {
|
|
1171
1171
|
var t = e.plugins || [], n = t.reduce(function(r, o) {
|
|
1172
1172
|
var s = o.name, l = o.defaultValue;
|
|
1173
1173
|
if (s) {
|
|
@@ -1178,10 +1178,10 @@ function Tn(e) {
|
|
|
1178
1178
|
}, {});
|
|
1179
1179
|
return Object.assign({}, e, n);
|
|
1180
1180
|
}
|
|
1181
|
-
function
|
|
1182
|
-
var n = t ? Object.keys(
|
|
1181
|
+
function Ti(e, t) {
|
|
1182
|
+
var n = t ? Object.keys(Cn(Object.assign({}, F, {
|
|
1183
1183
|
plugins: t
|
|
1184
|
-
}))) :
|
|
1184
|
+
}))) : Si, r = n.reduce(function(o, s) {
|
|
1185
1185
|
var l = (e.getAttribute("data-tippy-" + s) || "").trim();
|
|
1186
1186
|
if (!l)
|
|
1187
1187
|
return o;
|
|
@@ -1197,20 +1197,20 @@ function Ei(e, t) {
|
|
|
1197
1197
|
}, {});
|
|
1198
1198
|
return r;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function Qt(e, t) {
|
|
1201
1201
|
var n = Object.assign({}, t, {
|
|
1202
|
-
content:
|
|
1203
|
-
}, t.ignoreAttributes ? {} :
|
|
1202
|
+
content: xn(t.content, [e])
|
|
1203
|
+
}, t.ignoreAttributes ? {} : Ti(e, t.plugins));
|
|
1204
1204
|
return n.aria = Object.assign({}, F.aria, n.aria), n.aria = {
|
|
1205
1205
|
expanded: n.aria.expanded === "auto" ? t.interactive : n.aria.expanded,
|
|
1206
1206
|
content: n.aria.content === "auto" ? t.interactive ? null : "describedby" : n.aria.content
|
|
1207
1207
|
}, n;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function _n(e, t) {
|
|
1210
1210
|
e === void 0 && (e = {}), t === void 0 && (t = []);
|
|
1211
1211
|
var n = Object.keys(e);
|
|
1212
1212
|
n.forEach(function(r) {
|
|
1213
|
-
var o =
|
|
1213
|
+
var o = ii(F, Object.keys(An)), s = !ri(o, r);
|
|
1214
1214
|
s && (s = t.filter(function(l) {
|
|
1215
1215
|
return l.name === r;
|
|
1216
1216
|
}).length === 0), se(s, ["`" + r + "`", "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.", `
|
|
@@ -1219,52 +1219,52 @@ function Dn(e, t) {
|
|
|
1219
1219
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1222
|
+
var Di = function() {
|
|
1223
1223
|
return "innerHTML";
|
|
1224
1224
|
};
|
|
1225
1225
|
function Et(e, t) {
|
|
1226
|
-
e[
|
|
1226
|
+
e[Di()] = t;
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Zt(e) {
|
|
1229
1229
|
var t = He();
|
|
1230
|
-
return e === !0 ? t.className =
|
|
1230
|
+
return e === !0 ? t.className = On : (t.className = En, We(e) ? t.appendChild(e) : Et(t, e)), t;
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
|
|
1232
|
+
function en(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
1234
|
}
|
|
1235
1235
|
function St(e) {
|
|
1236
1236
|
var t = e.firstElementChild, n = st(t.children);
|
|
1237
1237
|
return {
|
|
1238
1238
|
box: t,
|
|
1239
1239
|
content: n.find(function(r) {
|
|
1240
|
-
return r.classList.contains(
|
|
1240
|
+
return r.classList.contains(wn);
|
|
1241
1241
|
}),
|
|
1242
1242
|
arrow: n.find(function(r) {
|
|
1243
|
-
return r.classList.contains(
|
|
1243
|
+
return r.classList.contains(On) || r.classList.contains(En);
|
|
1244
1244
|
}),
|
|
1245
1245
|
backdrop: n.find(function(r) {
|
|
1246
|
-
return r.classList.contains(
|
|
1246
|
+
return r.classList.contains(ni);
|
|
1247
1247
|
})
|
|
1248
1248
|
};
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Ln(e) {
|
|
1251
1251
|
var t = He(), n = He();
|
|
1252
|
-
n.className =
|
|
1252
|
+
n.className = ti, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
|
|
1253
1253
|
var r = He();
|
|
1254
|
-
r.className =
|
|
1254
|
+
r.className = wn, r.setAttribute("data-state", "hidden"), en(r, e.props), t.appendChild(n), n.appendChild(r), o(e.props, e.props);
|
|
1255
1255
|
function o(s, l) {
|
|
1256
1256
|
var u = St(t), a = u.box, d = u.content, f = u.arrow;
|
|
1257
|
-
l.theme ? a.setAttribute("data-theme", l.theme) : a.removeAttribute("data-theme"), typeof l.animation == "string" ? a.setAttribute("data-animation", l.animation) : a.removeAttribute("data-animation"), l.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof l.maxWidth == "number" ? l.maxWidth + "px" : l.maxWidth, l.role ? a.setAttribute("role", l.role) : a.removeAttribute("role"), (s.content !== l.content || s.allowHTML !== l.allowHTML) &&
|
|
1257
|
+
l.theme ? a.setAttribute("data-theme", l.theme) : a.removeAttribute("data-theme"), typeof l.animation == "string" ? a.setAttribute("data-animation", l.animation) : a.removeAttribute("data-animation"), l.inertia ? a.setAttribute("data-inertia", "") : a.removeAttribute("data-inertia"), a.style.maxWidth = typeof l.maxWidth == "number" ? l.maxWidth + "px" : l.maxWidth, l.role ? a.setAttribute("role", l.role) : a.removeAttribute("role"), (s.content !== l.content || s.allowHTML !== l.allowHTML) && en(d, e.props), l.arrow ? f ? s.arrow !== l.arrow && (a.removeChild(f), a.appendChild(Zt(l.arrow))) : a.appendChild(Zt(l.arrow)) : f && a.removeChild(f);
|
|
1258
1258
|
}
|
|
1259
1259
|
return {
|
|
1260
1260
|
popper: t,
|
|
1261
1261
|
onUpdate: o
|
|
1262
1262
|
};
|
|
1263
1263
|
}
|
|
1264
|
-
|
|
1265
|
-
var
|
|
1266
|
-
function
|
|
1267
|
-
var n =
|
|
1264
|
+
Ln.$$tippy = !0;
|
|
1265
|
+
var Ai = 1, it = [], vt = [];
|
|
1266
|
+
function Ci(e, t) {
|
|
1267
|
+
var n = Qt(e, Object.assign({}, F, Cn(Kt(t)))), r, o, s, l = !1, u = !1, a = !1, d = !1, f, v, y, h = [], b = qt(Ke, n.interactiveDebounce), m, w = Ai++, T = null, D = ai(n.plugins), O = {
|
|
1268
1268
|
// Is the instance currently enabled?
|
|
1269
1269
|
isEnabled: !0,
|
|
1270
1270
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -1288,13 +1288,13 @@ function Ti(e, t) {
|
|
|
1288
1288
|
clearDelayTimeouts: Qe,
|
|
1289
1289
|
setProps: Ze,
|
|
1290
1290
|
setContent: et,
|
|
1291
|
-
show:
|
|
1292
|
-
hide:
|
|
1293
|
-
hideWithInteractivity:
|
|
1294
|
-
enable:
|
|
1291
|
+
show: Vn,
|
|
1292
|
+
hide: jn,
|
|
1293
|
+
hideWithInteractivity: Nn,
|
|
1294
|
+
enable: je,
|
|
1295
1295
|
disable: Je,
|
|
1296
|
-
unmount:
|
|
1297
|
-
destroy:
|
|
1296
|
+
unmount: Pn,
|
|
1297
|
+
destroy: Bn
|
|
1298
1298
|
};
|
|
1299
1299
|
if (!n.render)
|
|
1300
1300
|
return process.env.NODE_ENV !== "production" && Ot(!0, "render() function has not been supplied."), i;
|
|
@@ -1312,7 +1312,7 @@ function Ti(e, t) {
|
|
|
1312
1312
|
var c = i.props.touch;
|
|
1313
1313
|
return Array.isArray(c) ? c : [c, 0];
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function j() {
|
|
1316
1316
|
return R()[0] === "hold";
|
|
1317
1317
|
}
|
|
1318
1318
|
function M() {
|
|
@@ -1324,36 +1324,36 @@ function Ti(e, t) {
|
|
|
1324
1324
|
}
|
|
1325
1325
|
function H() {
|
|
1326
1326
|
var c = V().parentNode;
|
|
1327
|
-
return c ?
|
|
1327
|
+
return c ? pi(c) : document;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function $() {
|
|
1330
1330
|
return St(p);
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function N(c) {
|
|
1333
1333
|
return i.state.isMounted && !i.state.isVisible || ee.isTouch || f && f.type === "focus" ? 0 : lt(i.props.delay, c ? 0 : 1, F.delay);
|
|
1334
1334
|
}
|
|
1335
1335
|
function P(c) {
|
|
1336
1336
|
c === void 0 && (c = !1), p.style.pointerEvents = i.props.interactive && !c ? "" : "none", p.style.zIndex = "" + i.props.zIndex;
|
|
1337
1337
|
}
|
|
1338
|
-
function I(c,
|
|
1338
|
+
function I(c, g, S) {
|
|
1339
1339
|
if (S === void 0 && (S = !0), _.forEach(function(C) {
|
|
1340
|
-
C[c] && C[c].apply(C,
|
|
1340
|
+
C[c] && C[c].apply(C, g);
|
|
1341
1341
|
}), S) {
|
|
1342
1342
|
var L;
|
|
1343
|
-
(L = i.props)[c].apply(L,
|
|
1343
|
+
(L = i.props)[c].apply(L, g);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
1346
|
function J() {
|
|
1347
1347
|
var c = i.props.aria;
|
|
1348
1348
|
if (c.content) {
|
|
1349
|
-
var
|
|
1349
|
+
var g = "aria-" + c.content, S = p.id, L = Te(i.props.triggerTarget || e);
|
|
1350
1350
|
L.forEach(function(C) {
|
|
1351
|
-
var
|
|
1351
|
+
var W = C.getAttribute(g);
|
|
1352
1352
|
if (i.state.isVisible)
|
|
1353
|
-
C.setAttribute(
|
|
1353
|
+
C.setAttribute(g, W ? W + " " + S : S);
|
|
1354
1354
|
else {
|
|
1355
|
-
var z =
|
|
1356
|
-
z ? C.setAttribute(
|
|
1355
|
+
var z = W && W.replace(S, "").trim();
|
|
1356
|
+
z ? C.setAttribute(g, z) : C.removeAttribute(g);
|
|
1357
1357
|
}
|
|
1358
1358
|
});
|
|
1359
1359
|
}
|
|
@@ -1361,8 +1361,8 @@ function Ti(e, t) {
|
|
|
1361
1361
|
function Q() {
|
|
1362
1362
|
if (!(A || !i.props.aria.expanded)) {
|
|
1363
1363
|
var c = Te(i.props.triggerTarget || e);
|
|
1364
|
-
c.forEach(function(
|
|
1365
|
-
i.props.interactive ?
|
|
1364
|
+
c.forEach(function(g) {
|
|
1365
|
+
i.props.interactive ? g.setAttribute("aria-expanded", i.state.isVisible && g === V() ? "true" : "false") : g.removeAttribute("aria-expanded");
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
1368
1368
|
}
|
|
@@ -1373,10 +1373,10 @@ function Ti(e, t) {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
function Z(c) {
|
|
1375
1375
|
if (!(ee.isTouch && (a || c.type === "mousedown"))) {
|
|
1376
|
-
var
|
|
1377
|
-
if (!(i.props.interactive &&
|
|
1376
|
+
var g = c.composedPath && c.composedPath()[0] || c.target;
|
|
1377
|
+
if (!(i.props.interactive && Yt(p, g))) {
|
|
1378
1378
|
if (Te(i.props.triggerTarget || e).some(function(S) {
|
|
1379
|
-
return
|
|
1379
|
+
return Yt(S, g);
|
|
1380
1380
|
})) {
|
|
1381
1381
|
if (ee.isTouch || i.state.isVisible && i.props.trigger.indexOf("click") >= 0)
|
|
1382
1382
|
return;
|
|
@@ -1402,48 +1402,48 @@ function Ti(e, t) {
|
|
|
1402
1402
|
var c = H();
|
|
1403
1403
|
c.removeEventListener("mousedown", Z, !0), c.removeEventListener("touchend", Z, me), c.removeEventListener("touchstart", re, me), c.removeEventListener("touchmove", de, me);
|
|
1404
1404
|
}
|
|
1405
|
-
function be(c,
|
|
1405
|
+
function be(c, g) {
|
|
1406
1406
|
we(c, function() {
|
|
1407
|
-
!i.state.isVisible && p.parentNode && p.parentNode.contains(p) &&
|
|
1407
|
+
!i.state.isVisible && p.parentNode && p.parentNode.contains(p) && g();
|
|
1408
1408
|
});
|
|
1409
1409
|
}
|
|
1410
|
-
function oe(c,
|
|
1411
|
-
we(c,
|
|
1410
|
+
function oe(c, g) {
|
|
1411
|
+
we(c, g);
|
|
1412
1412
|
}
|
|
1413
|
-
function we(c,
|
|
1414
|
-
var S =
|
|
1413
|
+
function we(c, g) {
|
|
1414
|
+
var S = $().box;
|
|
1415
1415
|
function L(C) {
|
|
1416
|
-
C.target === S && (dt(S, "remove", L),
|
|
1416
|
+
C.target === S && (dt(S, "remove", L), g());
|
|
1417
1417
|
}
|
|
1418
1418
|
if (c === 0)
|
|
1419
|
-
return
|
|
1419
|
+
return g();
|
|
1420
1420
|
dt(S, "remove", v), dt(S, "add", L), v = L;
|
|
1421
1421
|
}
|
|
1422
|
-
function ce(c,
|
|
1422
|
+
function ce(c, g, S) {
|
|
1423
1423
|
S === void 0 && (S = !1);
|
|
1424
1424
|
var L = Te(i.props.triggerTarget || e);
|
|
1425
1425
|
L.forEach(function(C) {
|
|
1426
|
-
C.addEventListener(c,
|
|
1426
|
+
C.addEventListener(c, g, S), h.push({
|
|
1427
1427
|
node: C,
|
|
1428
1428
|
eventType: c,
|
|
1429
|
-
handler:
|
|
1429
|
+
handler: g,
|
|
1430
1430
|
options: S
|
|
1431
1431
|
});
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
function Oe() {
|
|
1435
|
-
|
|
1435
|
+
j() && (ce("touchstart", Le, {
|
|
1436
1436
|
passive: !0
|
|
1437
1437
|
}), ce("touchend", Ge, {
|
|
1438
1438
|
passive: !0
|
|
1439
|
-
})),
|
|
1439
|
+
})), oi(i.props.trigger).forEach(function(c) {
|
|
1440
1440
|
if (c !== "manual")
|
|
1441
1441
|
switch (ce(c, Le), c) {
|
|
1442
1442
|
case "mouseenter":
|
|
1443
1443
|
ce("mouseleave", Ge);
|
|
1444
1444
|
break;
|
|
1445
1445
|
case "focus":
|
|
1446
|
-
ce(
|
|
1446
|
+
ce(gi ? "focusout" : "blur", Re);
|
|
1447
1447
|
break;
|
|
1448
1448
|
case "focusin":
|
|
1449
1449
|
ce("focusout", Re);
|
|
@@ -1453,36 +1453,36 @@ function Ti(e, t) {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
function ze() {
|
|
1455
1455
|
h.forEach(function(c) {
|
|
1456
|
-
var
|
|
1457
|
-
|
|
1456
|
+
var g = c.node, S = c.eventType, L = c.handler, C = c.options;
|
|
1457
|
+
g.removeEventListener(S, L, C);
|
|
1458
1458
|
}), h = [];
|
|
1459
1459
|
}
|
|
1460
1460
|
function Le(c) {
|
|
1461
|
-
var
|
|
1461
|
+
var g, S = !1;
|
|
1462
1462
|
if (!(!i.state.isEnabled || Me(c) || u)) {
|
|
1463
|
-
var L = ((
|
|
1464
|
-
f = c, m = c.currentTarget, Q(), !i.state.isVisible &&
|
|
1463
|
+
var L = ((g = f) == null ? void 0 : g.type) === "focus";
|
|
1464
|
+
f = c, m = c.currentTarget, Q(), !i.state.isVisible && ci(c) && it.forEach(function(C) {
|
|
1465
1465
|
return C(c);
|
|
1466
1466
|
}), c.type === "click" && (i.props.trigger.indexOf("mouseenter") < 0 || l) && i.props.hideOnClick !== !1 && i.state.isVisible ? S = !0 : Ve(c), c.type === "click" && (l = !S), S && !L && ve(c);
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
function Ke(c) {
|
|
1470
|
-
var
|
|
1470
|
+
var g = c.target, S = V().contains(g) || p.contains(g);
|
|
1471
1471
|
if (!(c.type === "mousemove" && S)) {
|
|
1472
1472
|
var L = fe().concat(p).map(function(C) {
|
|
1473
|
-
var
|
|
1473
|
+
var W, z = C._tippy, Ee = (W = z.popperInstance) == null ? void 0 : W.state;
|
|
1474
1474
|
return Ee ? {
|
|
1475
1475
|
popperRect: C.getBoundingClientRect(),
|
|
1476
1476
|
popperState: Ee,
|
|
1477
1477
|
props: n
|
|
1478
1478
|
} : null;
|
|
1479
1479
|
}).filter(Boolean);
|
|
1480
|
-
|
|
1480
|
+
di(L, c) && (pe(), ve(c));
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
function Ge(c) {
|
|
1484
|
-
var
|
|
1485
|
-
if (!
|
|
1484
|
+
var g = Me(c) || i.props.trigger.indexOf("click") >= 0 && l;
|
|
1485
|
+
if (!g) {
|
|
1486
1486
|
if (i.props.interactive) {
|
|
1487
1487
|
i.hideWithInteractivity(c);
|
|
1488
1488
|
return;
|
|
@@ -1494,14 +1494,14 @@ function Ti(e, t) {
|
|
|
1494
1494
|
i.props.trigger.indexOf("focusin") < 0 && c.target !== V() || i.props.interactive && c.relatedTarget && p.contains(c.relatedTarget) || ve(c);
|
|
1495
1495
|
}
|
|
1496
1496
|
function Me(c) {
|
|
1497
|
-
return ee.isTouch ?
|
|
1497
|
+
return ee.isTouch ? j() !== c.type.indexOf("touch") >= 0 : !1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function Ye() {
|
|
1500
1500
|
Xe();
|
|
1501
|
-
var c = i.props,
|
|
1501
|
+
var c = i.props, g = c.popperOptions, S = c.placement, L = c.offset, C = c.getReferenceClientRect, W = c.moveTransition, z = M() ? St(p).arrow : null, Ee = C ? {
|
|
1502
1502
|
getBoundingClientRect: C,
|
|
1503
1503
|
contextElement: C.contextElement || V()
|
|
1504
|
-
} : e,
|
|
1504
|
+
} : e, jt = {
|
|
1505
1505
|
name: "$$tippy",
|
|
1506
1506
|
enabled: !0,
|
|
1507
1507
|
phase: "beforeWrite",
|
|
@@ -1509,7 +1509,7 @@ function Ti(e, t) {
|
|
|
1509
1509
|
fn: function(tt) {
|
|
1510
1510
|
var Se = tt.state;
|
|
1511
1511
|
if (M()) {
|
|
1512
|
-
var
|
|
1512
|
+
var Hn = $(), ft = Hn.box;
|
|
1513
1513
|
["placement", "reference-hidden", "escaped"].forEach(function(nt) {
|
|
1514
1514
|
nt === "placement" ? ft.setAttribute("data-placement", Se.placement) : Se.attributes.popper["data-popper-" + nt] ? ft.setAttribute("data-" + nt, "") : ft.removeAttribute("data-" + nt);
|
|
1515
1515
|
}), Se.attributes.popper = {};
|
|
@@ -1538,18 +1538,18 @@ function Ti(e, t) {
|
|
|
1538
1538
|
}, {
|
|
1539
1539
|
name: "computeStyles",
|
|
1540
1540
|
options: {
|
|
1541
|
-
adaptive:
|
|
1541
|
+
adaptive: !W
|
|
1542
1542
|
}
|
|
1543
|
-
},
|
|
1543
|
+
}, jt];
|
|
1544
1544
|
M() && z && he.push({
|
|
1545
1545
|
name: "arrow",
|
|
1546
1546
|
options: {
|
|
1547
1547
|
element: z,
|
|
1548
1548
|
padding: 3
|
|
1549
1549
|
}
|
|
1550
|
-
}), he.push.apply(he, (
|
|
1550
|
+
}), he.push.apply(he, (g == null ? void 0 : g.modifiers) || []), i.popperInstance = ei(Ee, p, Object.assign({}, g, {
|
|
1551
1551
|
placement: S,
|
|
1552
|
-
onFirstUpdate:
|
|
1552
|
+
onFirstUpdate: y,
|
|
1553
1553
|
modifiers: he
|
|
1554
1554
|
}));
|
|
1555
1555
|
}
|
|
@@ -1557,8 +1557,8 @@ function Ti(e, t) {
|
|
|
1557
1557
|
i.popperInstance && (i.popperInstance.destroy(), i.popperInstance = null);
|
|
1558
1558
|
}
|
|
1559
1559
|
function ae() {
|
|
1560
|
-
var c = i.props.appendTo,
|
|
1561
|
-
i.props.interactive && c ===
|
|
1560
|
+
var c = i.props.appendTo, g, S = V();
|
|
1561
|
+
i.props.interactive && c === Sn || c === "parent" ? g = S.parentNode : g = xn(c, [S]), g.contains(p) || g.appendChild(p), i.state.isMounted = !0, Ye(), process.env.NODE_ENV !== "production" && se(i.props.interactive && c === F.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
1562
|
|
|
1563
1563
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
1564
1564
|
|
|
@@ -1571,10 +1571,10 @@ function Ti(e, t) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
function Ve(c) {
|
|
1573
1573
|
i.clearDelayTimeouts(), c && I("onTrigger", [i, c]), X();
|
|
1574
|
-
var
|
|
1575
|
-
ee.isTouch && L === "hold" && C && (
|
|
1574
|
+
var g = N(!0), S = R(), L = S[0], C = S[1];
|
|
1575
|
+
ee.isTouch && L === "hold" && C && (g = C), g ? r = setTimeout(function() {
|
|
1576
1576
|
i.show();
|
|
1577
|
-
},
|
|
1577
|
+
}, g) : i.show();
|
|
1578
1578
|
}
|
|
1579
1579
|
function ve(c) {
|
|
1580
1580
|
if (i.clearDelayTimeouts(), I("onUntrigger", [i, c]), !i.state.isVisible) {
|
|
@@ -1582,15 +1582,15 @@ function Ti(e, t) {
|
|
|
1582
1582
|
return;
|
|
1583
1583
|
}
|
|
1584
1584
|
if (!(i.props.trigger.indexOf("mouseenter") >= 0 && i.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(c.type) >= 0 && l)) {
|
|
1585
|
-
var
|
|
1586
|
-
|
|
1585
|
+
var g = N(!1);
|
|
1586
|
+
g ? o = setTimeout(function() {
|
|
1587
1587
|
i.state.isVisible && i.hide();
|
|
1588
|
-
},
|
|
1588
|
+
}, g) : s = requestAnimationFrame(function() {
|
|
1589
1589
|
i.hide();
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function je() {
|
|
1594
1594
|
i.state.isEnabled = !0;
|
|
1595
1595
|
}
|
|
1596
1596
|
function Je() {
|
|
@@ -1602,12 +1602,12 @@ function Ti(e, t) {
|
|
|
1602
1602
|
function Ze(c) {
|
|
1603
1603
|
if (process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("setProps")), !i.state.isDestroyed) {
|
|
1604
1604
|
I("onBeforeUpdate", [i, c]), ze();
|
|
1605
|
-
var
|
|
1605
|
+
var g = i.props, S = Qt(e, Object.assign({}, g, Kt(c), {
|
|
1606
1606
|
ignoreAttributes: !0
|
|
1607
1607
|
}));
|
|
1608
|
-
i.props = S, Oe(),
|
|
1608
|
+
i.props = S, Oe(), g.interactiveDebounce !== S.interactiveDebounce && (pe(), b = qt(Ke, S.interactiveDebounce)), g.triggerTarget && !S.triggerTarget ? Te(g.triggerTarget).forEach(function(L) {
|
|
1609
1609
|
L.removeAttribute("aria-expanded");
|
|
1610
|
-
}) : S.triggerTarget && e.removeAttribute("aria-expanded"), Q(), P(), x && x(
|
|
1610
|
+
}) : S.triggerTarget && e.removeAttribute("aria-expanded"), Q(), P(), x && x(g, S), i.popperInstance && (Ye(), fe().forEach(function(L) {
|
|
1611
1611
|
requestAnimationFrame(L._tippy.popperInstance.forceUpdate);
|
|
1612
1612
|
})), I("onAfterUpdate", [i, c]);
|
|
1613
1613
|
}
|
|
@@ -1617,62 +1617,62 @@ function Ti(e, t) {
|
|
|
1617
1617
|
content: c
|
|
1618
1618
|
});
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Vn() {
|
|
1621
1621
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("show"));
|
|
1622
|
-
var c = i.state.isVisible,
|
|
1623
|
-
if (!(c ||
|
|
1622
|
+
var c = i.state.isVisible, g = i.state.isDestroyed, S = !i.state.isEnabled, L = ee.isTouch && !i.props.touch, C = lt(i.props.duration, 0, F.duration);
|
|
1623
|
+
if (!(c || g || S || L) && !V().hasAttribute("disabled") && (I("onShow", [i], !1), i.props.onShow(i) !== !1)) {
|
|
1624
1624
|
if (i.state.isVisible = !0, M() && (p.style.visibility = "visible"), P(), X(), i.state.isMounted || (p.style.transition = "none"), M()) {
|
|
1625
|
-
var
|
|
1625
|
+
var W = $(), z = W.box, Ee = W.content;
|
|
1626
1626
|
pt([z, Ee], 0);
|
|
1627
1627
|
}
|
|
1628
|
-
|
|
1628
|
+
y = function() {
|
|
1629
1629
|
var he;
|
|
1630
1630
|
if (!(!i.state.isVisible || d)) {
|
|
1631
1631
|
if (d = !0, p.offsetHeight, p.style.transition = i.props.moveTransition, M() && i.props.animation) {
|
|
1632
|
-
var ct =
|
|
1633
|
-
pt([tt, Se], C),
|
|
1632
|
+
var ct = $(), tt = ct.box, Se = ct.content;
|
|
1633
|
+
pt([tt, Se], C), Gt([tt, Se], "visible");
|
|
1634
1634
|
}
|
|
1635
|
-
J(), Q(),
|
|
1635
|
+
J(), Q(), zt(vt, i), (he = i.popperInstance) == null || he.forceUpdate(), I("onMount", [i]), i.props.animation && M() && oe(C, function() {
|
|
1636
1636
|
i.state.isShown = !0, I("onShown", [i]);
|
|
1637
1637
|
});
|
|
1638
1638
|
}
|
|
1639
1639
|
}, ae();
|
|
1640
1640
|
}
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function jn() {
|
|
1643
1643
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("hide"));
|
|
1644
|
-
var c = !i.state.isVisible,
|
|
1645
|
-
if (!(c ||
|
|
1644
|
+
var c = !i.state.isVisible, g = i.state.isDestroyed, S = !i.state.isEnabled, L = lt(i.props.duration, 1, F.duration);
|
|
1645
|
+
if (!(c || g || S) && (I("onHide", [i], !1), i.props.onHide(i) !== !1)) {
|
|
1646
1646
|
if (i.state.isVisible = !1, i.state.isShown = !1, d = !1, l = !1, M() && (p.style.visibility = "hidden"), pe(), ie(), P(!0), M()) {
|
|
1647
|
-
var C =
|
|
1648
|
-
i.props.animation && (pt([
|
|
1647
|
+
var C = $(), W = C.box, z = C.content;
|
|
1648
|
+
i.props.animation && (pt([W, z], L), Gt([W, z], "hidden"));
|
|
1649
1649
|
}
|
|
1650
1650
|
J(), Q(), i.props.animation ? M() && be(L, i.unmount) : i.unmount();
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1654
|
-
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("hideWithInteractivity")), H().addEventListener("mousemove", b),
|
|
1653
|
+
function Nn(c) {
|
|
1654
|
+
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("hideWithInteractivity")), H().addEventListener("mousemove", b), zt(it, b), b(c);
|
|
1655
1655
|
}
|
|
1656
|
-
function
|
|
1656
|
+
function Pn() {
|
|
1657
1657
|
process.env.NODE_ENV !== "production" && se(i.state.isDestroyed, xe("unmount")), i.state.isVisible && i.hide(), i.state.isMounted && (Xe(), fe().forEach(function(c) {
|
|
1658
1658
|
c._tippy.unmount();
|
|
1659
1659
|
}), p.parentNode && p.parentNode.removeChild(p), vt = vt.filter(function(c) {
|
|
1660
1660
|
return c !== i;
|
|
1661
1661
|
}), i.state.isMounted = !1, I("onHidden", [i]));
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function Bn() {
|
|
1664
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
1665
|
}
|
|
1666
1666
|
}
|
|
1667
1667
|
function qe(e, t) {
|
|
1668
1668
|
t === void 0 && (t = {});
|
|
1669
1669
|
var n = F.plugins.concat(t.plugins || []);
|
|
1670
|
-
process.env.NODE_ENV !== "production" && (
|
|
1670
|
+
process.env.NODE_ENV !== "production" && (Oi(e), _n(t, n)), mi();
|
|
1671
1671
|
var r = Object.assign({}, t, {
|
|
1672
1672
|
plugins: n
|
|
1673
|
-
}), o =
|
|
1673
|
+
}), o = li(e);
|
|
1674
1674
|
if (process.env.NODE_ENV !== "production") {
|
|
1675
|
-
var s =
|
|
1675
|
+
var s = We(r.content), l = o.length > 1;
|
|
1676
1676
|
se(s && l, ["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
1677
|
|
|
1678
1678
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
@@ -1681,15 +1681,15 @@ function qe(e, t) {
|
|
|
1681
1681
|
`, "2) content: () => element.cloneNode(true)"].join(" "));
|
|
1682
1682
|
}
|
|
1683
1683
|
var u = o.reduce(function(a, d) {
|
|
1684
|
-
var f = d &&
|
|
1684
|
+
var f = d && Ci(d, r);
|
|
1685
1685
|
return f && a.push(f), a;
|
|
1686
1686
|
}, []);
|
|
1687
|
-
return
|
|
1687
|
+
return We(e) ? u[0] : u;
|
|
1688
1688
|
}
|
|
1689
1689
|
qe.defaultProps = F;
|
|
1690
|
-
qe.setDefaultProps =
|
|
1690
|
+
qe.setDefaultProps = xi;
|
|
1691
1691
|
qe.currentInput = ee;
|
|
1692
|
-
Object.assign({},
|
|
1692
|
+
Object.assign({}, pn, {
|
|
1693
1693
|
effect: function(t) {
|
|
1694
1694
|
var n = t.state, r = {
|
|
1695
1695
|
popper: {
|
|
@@ -1707,12 +1707,12 @@ Object.assign({}, cn, {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
});
|
|
1709
1709
|
qe.setDefaultProps({
|
|
1710
|
-
render:
|
|
1710
|
+
render: Ln
|
|
1711
1711
|
});
|
|
1712
|
-
class
|
|
1712
|
+
class _i {
|
|
1713
1713
|
constructor({ editor: t, element: n, view: r, tippyOptions: o = {}, updateDelay: s = 250, shouldShow: l }) {
|
|
1714
1714
|
this.preventHide = !1, this.shouldShow = ({ view: u, state: a, from: d, to: f }) => {
|
|
1715
|
-
const { doc: v, selection:
|
|
1715
|
+
const { doc: v, selection: y } = a, { empty: h } = y, b = !v.textBetween(d, f).length && Wn(a.selection), m = this.element.contains(document.activeElement);
|
|
1716
1716
|
return !(!(u.hasFocus() || m) || h || b || !this.editor.isEditable);
|
|
1717
1717
|
}, this.mousedownHandler = () => {
|
|
1718
1718
|
this.preventHide = !0;
|
|
@@ -1735,7 +1735,7 @@ class Di {
|
|
|
1735
1735
|
this.updateHandler(u, d, f, a);
|
|
1736
1736
|
}, this.updateDelay));
|
|
1737
1737
|
}, this.updateHandler = (u, a, d, f) => {
|
|
1738
|
-
var v,
|
|
1738
|
+
var v, y, h;
|
|
1739
1739
|
const { state: b, composing: m } = u, { selection: w } = b;
|
|
1740
1740
|
if (m || !a && !d)
|
|
1741
1741
|
return;
|
|
@@ -1753,9 +1753,9 @@ class Di {
|
|
|
1753
1753
|
this.hide();
|
|
1754
1754
|
return;
|
|
1755
1755
|
}
|
|
1756
|
-
(
|
|
1756
|
+
(y = this.tippy) === null || y === void 0 || y.setProps({
|
|
1757
1757
|
getReferenceClientRect: ((h = this.tippyOptions) === null || h === void 0 ? void 0 : h.getReferenceClientRect) || (() => {
|
|
1758
|
-
if (
|
|
1758
|
+
if (kn(b.selection)) {
|
|
1759
1759
|
let p = u.nodeDOM(O);
|
|
1760
1760
|
if (p) {
|
|
1761
1761
|
const x = p.dataset.nodeViewWrapper ? p : p.querySelector("[data-node-view-wrapper]");
|
|
@@ -1763,14 +1763,14 @@ class Di {
|
|
|
1763
1763
|
return p.getBoundingClientRect();
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
|
-
return
|
|
1766
|
+
return Un(u, O, i);
|
|
1767
1767
|
})
|
|
1768
1768
|
}), this.show();
|
|
1769
1769
|
}, this.editor = t, this.element = n, this.view = r, this.updateDelay = s, l && (this.shouldShow = l), 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
1770
|
}
|
|
1771
1771
|
createTooltip() {
|
|
1772
1772
|
const { element: t } = this.editor.options, n = !!t.parentElement;
|
|
1773
|
-
this.tippy || !n
|
|
1773
|
+
this.element.tabIndex = 0, !(this.tippy || !n) && (this.tippy = qe(t, {
|
|
1774
1774
|
duration: 0,
|
|
1775
1775
|
getReferenceClientRect: null,
|
|
1776
1776
|
content: this.element,
|
|
@@ -1803,11 +1803,11 @@ class Di {
|
|
|
1803
1803
|
!((t = this.tippy) === null || t === void 0) && t.popper.firstChild && this.tippy.popper.firstChild.removeEventListener("blur", this.tippyBlurHandler), (n = this.tippy) === null || n === void 0 || n.destroy(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler);
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
|
-
const
|
|
1807
|
-
key: typeof e.pluginKey == "string" ? new
|
|
1808
|
-
view: (t) => new
|
|
1806
|
+
const Rn = (e) => new In({
|
|
1807
|
+
key: typeof e.pluginKey == "string" ? new $n(e.pluginKey) : e.pluginKey,
|
|
1808
|
+
view: (t) => new _i({ view: t, ...e })
|
|
1809
1809
|
});
|
|
1810
|
-
|
|
1810
|
+
Fn.create({
|
|
1811
1811
|
name: "bubbleMenu",
|
|
1812
1812
|
addOptions() {
|
|
1813
1813
|
return {
|
|
@@ -1820,7 +1820,7 @@ $n.create({
|
|
|
1820
1820
|
},
|
|
1821
1821
|
addProseMirrorPlugins() {
|
|
1822
1822
|
return this.options.element ? [
|
|
1823
|
-
|
|
1823
|
+
Rn({
|
|
1824
1824
|
pluginKey: this.options.pluginKey,
|
|
1825
1825
|
editor: this.editor,
|
|
1826
1826
|
element: this.options.element,
|
|
@@ -1841,37 +1841,37 @@ var xt = { exports: {} }, ht = {};
|
|
|
1841
1841
|
* This source code is licensed under the MIT license found in the
|
|
1842
1842
|
* LICENSE file in the root directory of this source tree.
|
|
1843
1843
|
*/
|
|
1844
|
-
var
|
|
1845
|
-
function
|
|
1846
|
-
if (
|
|
1847
|
-
|
|
1844
|
+
var tn;
|
|
1845
|
+
function Li() {
|
|
1846
|
+
if (tn) return ht;
|
|
1847
|
+
tn = 1;
|
|
1848
1848
|
var e = B;
|
|
1849
|
-
function t(v,
|
|
1850
|
-
return v ===
|
|
1849
|
+
function t(v, y) {
|
|
1850
|
+
return v === y && (v !== 0 || 1 / v === 1 / y) || v !== v && y !== y;
|
|
1851
1851
|
}
|
|
1852
1852
|
var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, l = e.useDebugValue;
|
|
1853
|
-
function u(v,
|
|
1854
|
-
var h =
|
|
1853
|
+
function u(v, y) {
|
|
1854
|
+
var h = y(), b = r({ inst: { value: h, getSnapshot: y } }), m = b[0].inst, w = b[1];
|
|
1855
1855
|
return s(function() {
|
|
1856
|
-
m.value = h, m.getSnapshot =
|
|
1857
|
-
}, [v, h,
|
|
1856
|
+
m.value = h, m.getSnapshot = y, a(m) && w({ inst: m });
|
|
1857
|
+
}, [v, h, y]), o(function() {
|
|
1858
1858
|
return a(m) && w({ inst: m }), v(function() {
|
|
1859
1859
|
a(m) && w({ inst: m });
|
|
1860
1860
|
});
|
|
1861
1861
|
}, [v]), l(h), h;
|
|
1862
1862
|
}
|
|
1863
1863
|
function a(v) {
|
|
1864
|
-
var
|
|
1864
|
+
var y = v.getSnapshot;
|
|
1865
1865
|
v = v.value;
|
|
1866
1866
|
try {
|
|
1867
|
-
var h =
|
|
1867
|
+
var h = y();
|
|
1868
1868
|
return !n(v, h);
|
|
1869
1869
|
} catch {
|
|
1870
1870
|
return !0;
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
|
-
function d(v,
|
|
1874
|
-
return
|
|
1873
|
+
function d(v, y) {
|
|
1874
|
+
return y();
|
|
1875
1875
|
}
|
|
1876
1876
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : u;
|
|
1877
1877
|
return ht.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, ht;
|
|
@@ -1886,9 +1886,9 @@ var mt = {};
|
|
|
1886
1886
|
* This source code is licensed under the MIT license found in the
|
|
1887
1887
|
* LICENSE file in the root directory of this source tree.
|
|
1888
1888
|
*/
|
|
1889
|
-
var
|
|
1890
|
-
function
|
|
1891
|
-
return
|
|
1889
|
+
var nn;
|
|
1890
|
+
function Ri() {
|
|
1891
|
+
return nn || (nn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1892
1892
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1893
1893
|
var e = B, t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1894
1894
|
function n(O) {
|
|
@@ -1912,7 +1912,7 @@ function Ci() {
|
|
|
1912
1912
|
return O === i && (O !== 0 || 1 / O === 1 / i) || O !== O && i !== i;
|
|
1913
1913
|
}
|
|
1914
1914
|
var s = typeof Object.is == "function" ? Object.is : o, l = e.useState, u = e.useEffect, a = e.useLayoutEffect, d = e.useDebugValue, f = !1, v = !1;
|
|
1915
|
-
function
|
|
1915
|
+
function y(O, i, E) {
|
|
1916
1916
|
f || e.startTransition !== void 0 && (f = !0, n("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."));
|
|
1917
1917
|
var p = i();
|
|
1918
1918
|
if (!v) {
|
|
@@ -1933,12 +1933,12 @@ function Ci() {
|
|
|
1933
1933
|
h(A) && R({
|
|
1934
1934
|
inst: A
|
|
1935
1935
|
});
|
|
1936
|
-
var
|
|
1936
|
+
var j = function() {
|
|
1937
1937
|
h(A) && R({
|
|
1938
1938
|
inst: A
|
|
1939
1939
|
});
|
|
1940
1940
|
};
|
|
1941
|
-
return O(
|
|
1941
|
+
return O(j);
|
|
1942
1942
|
}, [O]), d(p), p;
|
|
1943
1943
|
}
|
|
1944
1944
|
function h(O) {
|
|
@@ -1953,21 +1953,21 @@ function Ci() {
|
|
|
1953
1953
|
function b(O, i, E) {
|
|
1954
1954
|
return i();
|
|
1955
1955
|
}
|
|
1956
|
-
var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", w = !m, T = w ? b :
|
|
1956
|
+
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;
|
|
1957
1957
|
mt.useSyncExternalStore = D, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1958
1958
|
}()), mt;
|
|
1959
1959
|
}
|
|
1960
|
-
process.env.NODE_ENV === "production" ? xt.exports =
|
|
1960
|
+
process.env.NODE_ENV === "production" ? xt.exports = Li() : xt.exports = Ri();
|
|
1961
1961
|
var Vt = xt.exports;
|
|
1962
|
-
const
|
|
1962
|
+
const Mi = (...e) => (t) => {
|
|
1963
1963
|
e.forEach((n) => {
|
|
1964
1964
|
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
1965
1965
|
});
|
|
1966
|
-
},
|
|
1966
|
+
}, Vi = ({ contentComponent: e }) => {
|
|
1967
1967
|
const t = Vt.useSyncExternalStore(e.subscribe, e.getSnapshot, e.getServerSnapshot);
|
|
1968
1968
|
return B.createElement(B.Fragment, null, Object.values(t));
|
|
1969
1969
|
};
|
|
1970
|
-
function
|
|
1970
|
+
function ji() {
|
|
1971
1971
|
const e = /* @__PURE__ */ new Set();
|
|
1972
1972
|
let t = {};
|
|
1973
1973
|
return {
|
|
@@ -1991,7 +1991,7 @@ function Ri() {
|
|
|
1991
1991
|
setRenderer(n, r) {
|
|
1992
1992
|
t = {
|
|
1993
1993
|
...t,
|
|
1994
|
-
[n]:
|
|
1994
|
+
[n]: Gn.createPortal(r.reactElement, r.element, n)
|
|
1995
1995
|
}, e.forEach((o) => o());
|
|
1996
1996
|
},
|
|
1997
1997
|
/**
|
|
@@ -2003,7 +2003,7 @@ function Ri() {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
};
|
|
2005
2005
|
}
|
|
2006
|
-
class
|
|
2006
|
+
class Ni extends B.Component {
|
|
2007
2007
|
constructor(t) {
|
|
2008
2008
|
var n;
|
|
2009
2009
|
super(t), this.editorContentRef = B.createRef(), this.initialized = !1, this.state = {
|
|
@@ -2024,7 +2024,7 @@ class Mi extends B.Component {
|
|
|
2024
2024
|
const n = this.editorContentRef.current;
|
|
2025
2025
|
n.append(...t.options.element.childNodes), t.setOptions({
|
|
2026
2026
|
element: n
|
|
2027
|
-
}), t.contentComponent =
|
|
2027
|
+
}), t.contentComponent = ji(), this.state.hasContentComponentInitialized || (this.unsubscribeToContentComponent = t.contentComponent.subscribe(() => {
|
|
2028
2028
|
this.setState((r) => r.hasContentComponentInitialized ? r : {
|
|
2029
2029
|
hasContentComponentInitialized: !0
|
|
2030
2030
|
}), this.unsubscribeToContentComponent && this.unsubscribeToContentComponent();
|
|
@@ -2047,20 +2047,20 @@ class Mi extends B.Component {
|
|
|
2047
2047
|
return B.createElement(
|
|
2048
2048
|
B.Fragment,
|
|
2049
2049
|
null,
|
|
2050
|
-
B.createElement("div", { ref:
|
|
2051
|
-
(t == null ? void 0 : t.contentComponent) && B.createElement(
|
|
2050
|
+
B.createElement("div", { ref: Mi(n, this.editorContentRef), ...r }),
|
|
2051
|
+
(t == null ? void 0 : t.contentComponent) && B.createElement(Vi, { contentComponent: t.contentComponent })
|
|
2052
2052
|
);
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
|
-
const
|
|
2055
|
+
const Pi = qn((e, t) => {
|
|
2056
2056
|
const n = B.useMemo(() => Math.floor(Math.random() * 4294967295).toString(), [e.editor]);
|
|
2057
|
-
return B.createElement(
|
|
2057
|
+
return B.createElement(Ni, {
|
|
2058
2058
|
key: n,
|
|
2059
2059
|
innerRef: t,
|
|
2060
2060
|
...e
|
|
2061
2061
|
});
|
|
2062
|
-
}),
|
|
2063
|
-
var
|
|
2062
|
+
}), Gi = B.memo(Pi);
|
|
2063
|
+
var yt = {};
|
|
2064
2064
|
/**
|
|
2065
2065
|
* @license React
|
|
2066
2066
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -2070,16 +2070,16 @@ var gt = {};
|
|
|
2070
2070
|
* This source code is licensed under the MIT license found in the
|
|
2071
2071
|
* LICENSE file in the root directory of this source tree.
|
|
2072
2072
|
*/
|
|
2073
|
-
var
|
|
2074
|
-
function
|
|
2075
|
-
if (
|
|
2076
|
-
|
|
2073
|
+
var rn;
|
|
2074
|
+
function Bi() {
|
|
2075
|
+
if (rn) return yt;
|
|
2076
|
+
rn = 1;
|
|
2077
2077
|
var e = B, t = Vt;
|
|
2078
2078
|
function n(d, f) {
|
|
2079
2079
|
return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
|
|
2080
2080
|
}
|
|
2081
2081
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, l = e.useEffect, u = e.useMemo, a = e.useDebugValue;
|
|
2082
|
-
return
|
|
2082
|
+
return yt.useSyncExternalStoreWithSelector = function(d, f, v, y, h) {
|
|
2083
2083
|
var b = s(null);
|
|
2084
2084
|
if (b.current === null) {
|
|
2085
2085
|
var m = { hasValue: !1, value: null };
|
|
@@ -2088,14 +2088,14 @@ function Ni() {
|
|
|
2088
2088
|
b = u(function() {
|
|
2089
2089
|
function T(p) {
|
|
2090
2090
|
if (!D) {
|
|
2091
|
-
if (D = !0, O = p, p =
|
|
2091
|
+
if (D = !0, O = p, p = y(p), h !== void 0 && m.hasValue) {
|
|
2092
2092
|
var x = m.value;
|
|
2093
2093
|
if (h(x, p)) return i = x;
|
|
2094
2094
|
}
|
|
2095
2095
|
return i = p;
|
|
2096
2096
|
}
|
|
2097
2097
|
if (x = i, r(O, p)) return x;
|
|
2098
|
-
var _ =
|
|
2098
|
+
var _ = y(p);
|
|
2099
2099
|
return h !== void 0 && h(x, _) ? x : (O = p, i = _);
|
|
2100
2100
|
}
|
|
2101
2101
|
var D = !1, O, i, E = v === void 0 ? null : v;
|
|
@@ -2104,14 +2104,14 @@ function Ni() {
|
|
|
2104
2104
|
}, E === null ? void 0 : function() {
|
|
2105
2105
|
return T(E());
|
|
2106
2106
|
}];
|
|
2107
|
-
}, [f, v,
|
|
2107
|
+
}, [f, v, y, h]);
|
|
2108
2108
|
var w = o(d, b[0], b[1]);
|
|
2109
2109
|
return l(function() {
|
|
2110
2110
|
m.hasValue = !0, m.value = w;
|
|
2111
2111
|
}, [w]), a(w), w;
|
|
2112
|
-
},
|
|
2112
|
+
}, yt;
|
|
2113
2113
|
}
|
|
2114
|
-
var
|
|
2114
|
+
var gt = {};
|
|
2115
2115
|
/**
|
|
2116
2116
|
* @license React
|
|
2117
2117
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -2121,16 +2121,16 @@ var yt = {};
|
|
|
2121
2121
|
* This source code is licensed under the MIT license found in the
|
|
2122
2122
|
* LICENSE file in the root directory of this source tree.
|
|
2123
2123
|
*/
|
|
2124
|
-
var
|
|
2125
|
-
function
|
|
2126
|
-
return
|
|
2124
|
+
var on;
|
|
2125
|
+
function Hi() {
|
|
2126
|
+
return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2127
2127
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
2128
2128
|
var e = B, t = Vt;
|
|
2129
2129
|
function n(f, v) {
|
|
2130
2130
|
return f === v && (f !== 0 || 1 / f === 1 / v) || f !== f && v !== v;
|
|
2131
2131
|
}
|
|
2132
2132
|
var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, l = e.useEffect, u = e.useMemo, a = e.useDebugValue;
|
|
2133
|
-
function d(f, v,
|
|
2133
|
+
function d(f, v, y, h, b) {
|
|
2134
2134
|
var m = s(null), w;
|
|
2135
2135
|
m.current === null ? (w = {
|
|
2136
2136
|
hasValue: !1,
|
|
@@ -2148,34 +2148,34 @@ function ji() {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
return x = V, V;
|
|
2150
2150
|
}
|
|
2151
|
-
var
|
|
2152
|
-
if (r(
|
|
2153
|
-
return
|
|
2151
|
+
var $ = p, N = x;
|
|
2152
|
+
if (r($, M))
|
|
2153
|
+
return N;
|
|
2154
2154
|
var P = h(M);
|
|
2155
|
-
return b !== void 0 && b(
|
|
2156
|
-
}, A =
|
|
2155
|
+
return b !== void 0 && b(N, P) ? N : (p = M, x = P, P);
|
|
2156
|
+
}, A = y === void 0 ? null : y, R = function() {
|
|
2157
2157
|
return _(v());
|
|
2158
|
-
},
|
|
2158
|
+
}, j = A === null ? void 0 : function() {
|
|
2159
2159
|
return _(A());
|
|
2160
2160
|
};
|
|
2161
|
-
return [R,
|
|
2162
|
-
}, [v,
|
|
2161
|
+
return [R, j];
|
|
2162
|
+
}, [v, y, h, b]), D = T[0], O = T[1], i = o(f, D, O);
|
|
2163
2163
|
return l(function() {
|
|
2164
2164
|
w.hasValue = !0, w.value = i;
|
|
2165
2165
|
}, [i]), a(i), i;
|
|
2166
2166
|
}
|
|
2167
|
-
|
|
2168
|
-
}()),
|
|
2167
|
+
gt.useSyncExternalStoreWithSelector = d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2168
|
+
}()), gt;
|
|
2169
2169
|
}
|
|
2170
|
-
process.env.NODE_ENV === "production" ?
|
|
2170
|
+
process.env.NODE_ENV === "production" ? Bi() : Hi();
|
|
2171
2171
|
process.env.NODE_ENV;
|
|
2172
|
-
const
|
|
2172
|
+
const Mn = cn({
|
|
2173
2173
|
editor: null
|
|
2174
2174
|
});
|
|
2175
|
-
|
|
2176
|
-
const
|
|
2177
|
-
const [t, n] =
|
|
2178
|
-
return
|
|
2175
|
+
Mn.Consumer;
|
|
2176
|
+
const Ii = () => un(Mn), Yi = (e) => {
|
|
2177
|
+
const [t, n] = zn(null), { editor: r } = Ii();
|
|
2178
|
+
return Kn(() => {
|
|
2179
2179
|
var o;
|
|
2180
2180
|
if (!t || !((o = e.editor) === null || o === void 0) && o.isDestroyed || r != null && r.isDestroyed)
|
|
2181
2181
|
return;
|
|
@@ -2184,7 +2184,7 @@ const Pi = () => on(_n), qi = (e) => {
|
|
|
2184
2184
|
console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");
|
|
2185
2185
|
return;
|
|
2186
2186
|
}
|
|
2187
|
-
const v =
|
|
2187
|
+
const v = Rn({
|
|
2188
2188
|
updateDelay: a,
|
|
2189
2189
|
editor: f,
|
|
2190
2190
|
element: t,
|
|
@@ -2196,11 +2196,11 @@ const Pi = () => on(_n), qi = (e) => {
|
|
|
2196
2196
|
f.unregisterPlugin(s);
|
|
2197
2197
|
};
|
|
2198
2198
|
}, [e.editor, r, t]), B.createElement("div", { ref: n, className: e.className, style: { visibility: "hidden" } }, e.children);
|
|
2199
|
-
},
|
|
2199
|
+
}, $i = cn({
|
|
2200
2200
|
onDragStart: void 0
|
|
2201
|
-
}),
|
|
2201
|
+
}), Wi = () => un($i);
|
|
2202
2202
|
B.forwardRef((e, t) => {
|
|
2203
|
-
const { onDragStart: n } =
|
|
2203
|
+
const { onDragStart: n } = Wi(), r = e.as || "div";
|
|
2204
2204
|
return (
|
|
2205
2205
|
// @ts-ignore
|
|
2206
2206
|
B.createElement(r, { ...e, ref: t, "data-node-view-wrapper": "", onDragStart: n, style: {
|
|
@@ -2209,31 +2209,53 @@ B.forwardRef((e, t) => {
|
|
|
2209
2209
|
} })
|
|
2210
2210
|
);
|
|
2211
2211
|
});
|
|
2212
|
-
function
|
|
2212
|
+
function an(e) {
|
|
2213
2213
|
return !!(typeof e == "function" && e.prototype && e.prototype.isReactComponent);
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2216
|
-
|
|
2217
|
-
|
|
2215
|
+
function sn(e) {
|
|
2216
|
+
return !!(typeof e == "object" && e.$$typeof && (e.$$typeof.toString() === "Symbol(react.forward_ref)" || e.$$typeof.description === "react.forward_ref"));
|
|
2217
|
+
}
|
|
2218
|
+
function ki(e) {
|
|
2219
|
+
return !!(typeof e == "object" && e.$$typeof && (e.$$typeof.toString() === "Symbol(react.memo)" || e.$$typeof.description === "react.memo"));
|
|
2218
2220
|
}
|
|
2219
|
-
|
|
2221
|
+
function Ui(e) {
|
|
2222
|
+
if (an(e) || sn(e))
|
|
2223
|
+
return !0;
|
|
2224
|
+
if (ki(e)) {
|
|
2225
|
+
const t = e.type;
|
|
2226
|
+
if (t)
|
|
2227
|
+
return an(t) || sn(t);
|
|
2228
|
+
}
|
|
2229
|
+
return !1;
|
|
2230
|
+
}
|
|
2231
|
+
function Fi() {
|
|
2232
|
+
try {
|
|
2233
|
+
if (Nt)
|
|
2234
|
+
return parseInt(Nt.split(".")[0], 10) >= 19;
|
|
2235
|
+
} catch {
|
|
2236
|
+
}
|
|
2237
|
+
return !1;
|
|
2238
|
+
}
|
|
2239
|
+
class Xi {
|
|
2220
2240
|
/**
|
|
2221
2241
|
* Immediately creates element and renders the provided React component.
|
|
2222
2242
|
*/
|
|
2223
2243
|
constructor(t, { editor: n, props: r = {}, as: o = "div", className: s = "" }) {
|
|
2224
|
-
this.ref = null, this.id = Math.floor(Math.random() * 4294967295).toString(), this.component = t, this.editor = n, this.props = r, this.element = document.createElement(o), this.element.classList.add("react-renderer"), s && this.element.classList.add(...s.split(" ")), this.editor.isInitialized ?
|
|
2244
|
+
this.ref = null, this.id = Math.floor(Math.random() * 4294967295).toString(), this.component = t, this.editor = n, this.props = r, this.element = document.createElement(o), this.element.classList.add("react-renderer"), s && this.element.classList.add(...s.split(" ")), this.editor.isInitialized ? Yn(() => {
|
|
2225
2245
|
this.render();
|
|
2226
|
-
}) :
|
|
2246
|
+
}) : queueMicrotask(() => {
|
|
2247
|
+
this.render();
|
|
2248
|
+
});
|
|
2227
2249
|
}
|
|
2228
2250
|
/**
|
|
2229
2251
|
* Render the React component.
|
|
2230
2252
|
*/
|
|
2231
2253
|
render() {
|
|
2232
2254
|
var t;
|
|
2233
|
-
const n = this.component, r = this.props, o = this.editor;
|
|
2234
|
-
(
|
|
2235
|
-
this.ref =
|
|
2236
|
-
}), this.reactElement = B.createElement(n, { ...
|
|
2255
|
+
const n = this.component, r = this.props, o = this.editor, s = Fi(), l = Ui(n), u = { ...r };
|
|
2256
|
+
u.ref && !(s || l) && delete u.ref, !u.ref && (s || l) && (u.ref = (a) => {
|
|
2257
|
+
this.ref = a;
|
|
2258
|
+
}), this.reactElement = B.createElement(n, { ...u }), (t = o == null ? void 0 : o.contentComponent) === null || t === void 0 || t.setRenderer(this.id, this);
|
|
2237
2259
|
}
|
|
2238
2260
|
/**
|
|
2239
2261
|
* Re-renders the React component with new props.
|
|
@@ -2262,8 +2284,8 @@ class zi {
|
|
|
2262
2284
|
}
|
|
2263
2285
|
}
|
|
2264
2286
|
export {
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2287
|
+
Yi as B,
|
|
2288
|
+
Gi as E,
|
|
2289
|
+
Xi as R,
|
|
2268
2290
|
qe as t
|
|
2269
2291
|
};
|