react-shepherd 6.1.6 → 6.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +776 -741
- package/dist/index.umd.cjs +9 -9
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import $n, { createContext as Mr, useContext as Fr } from "react";
|
|
2
|
+
var ot = { exports: {} }, qe = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,11 +9,11 @@ var At = { exports: {} }, ze = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var e =
|
|
12
|
+
var dn;
|
|
13
|
+
function Lr() {
|
|
14
|
+
if (dn) return qe;
|
|
15
|
+
dn = 1;
|
|
16
|
+
var e = $n, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
17
|
function s(c, a, u) {
|
|
18
18
|
var d, h = {}, f = null, g = null;
|
|
19
19
|
u !== void 0 && (f = "" + u), a.key !== void 0 && (f = "" + a.key), a.ref !== void 0 && (g = a.ref);
|
|
@@ -21,9 +21,9 @@ function Ir() {
|
|
|
21
21
|
if (c && c.defaultProps) for (d in a = c.defaultProps, a) h[d] === void 0 && (h[d] = a[d]);
|
|
22
22
|
return { $$typeof: t, type: c, key: f, ref: g, props: h, _owner: i.current };
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return qe.Fragment = n, qe.jsx = s, qe.jsxs = s, qe;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var ze = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,18 +33,18 @@ var Je = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var e =
|
|
36
|
+
var hn;
|
|
37
|
+
function Dr() {
|
|
38
|
+
return hn || (hn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var e = $n, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b = Symbol.iterator, E = "@@iterator";
|
|
40
40
|
function S(l) {
|
|
41
41
|
if (l === null || typeof l != "object")
|
|
42
42
|
return null;
|
|
43
43
|
var p = b && l[b] || l[E];
|
|
44
44
|
return typeof p == "function" ? p : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var w = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function _(l) {
|
|
48
48
|
{
|
|
49
49
|
for (var p = arguments.length, v = new Array(p > 1 ? p - 1 : 0), x = 1; x < p; x++)
|
|
50
50
|
v[x - 1] = arguments[x];
|
|
@@ -53,12 +53,12 @@ function Mr() {
|
|
|
53
53
|
}
|
|
54
54
|
function O(l, p, v) {
|
|
55
55
|
{
|
|
56
|
-
var x =
|
|
56
|
+
var x = w.ReactDebugCurrentFrame, P = x.getStackAddendum();
|
|
57
57
|
P !== "" && (p += "%s", v = v.concat([P]));
|
|
58
|
-
var
|
|
58
|
+
var I = v.map(function(C) {
|
|
59
59
|
return String(C);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
I.unshift("Warning: " + p), Function.prototype.apply.call(console[l], console, I);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
var y = !1, m = !1, R = !1, D = !1, K = !1, W;
|
|
@@ -83,7 +83,7 @@ function Mr() {
|
|
|
83
83
|
function F(l) {
|
|
84
84
|
if (l == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof l.tag == "number" &&
|
|
86
|
+
if (typeof l.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof l == "function")
|
|
87
87
|
return l.displayName || l.name || null;
|
|
88
88
|
if (typeof l == "string")
|
|
89
89
|
return l;
|
|
@@ -115,9 +115,9 @@ function Mr() {
|
|
|
115
115
|
var x = l.displayName || null;
|
|
116
116
|
return x !== null ? x : F(l.type) || "Memo";
|
|
117
117
|
case f: {
|
|
118
|
-
var P = l,
|
|
118
|
+
var P = l, I = P._payload, C = P._init;
|
|
119
119
|
try {
|
|
120
|
-
return F(C(
|
|
120
|
+
return F(C(I));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function Mr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var L = Object.assign,
|
|
129
|
-
function
|
|
128
|
+
var L = Object.assign, V = 0, N, ne, fe, Q, Y, re, et;
|
|
129
|
+
function Kt() {
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
131
|
+
Kt.__reactDisabledLog = !0;
|
|
132
|
+
function sr() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
N = console.log, ne = console.info,
|
|
134
|
+
if (V === 0) {
|
|
135
|
+
N = console.log, ne = console.info, fe = console.warn, Q = console.error, Y = console.group, re = console.groupCollapsed, et = console.groupEnd;
|
|
136
136
|
var l = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: Kt,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,12 +149,12 @@ function Mr() {
|
|
|
149
149
|
groupEnd: l
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
V++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function lr() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (V--, V === 0) {
|
|
158
158
|
var l = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
@@ -168,7 +168,7 @@ function Mr() {
|
|
|
168
168
|
value: ne
|
|
169
169
|
}),
|
|
170
170
|
warn: L({}, l, {
|
|
171
|
-
value:
|
|
171
|
+
value: fe
|
|
172
172
|
}),
|
|
173
173
|
error: L({}, l, {
|
|
174
174
|
value: Q
|
|
@@ -180,46 +180,46 @@ function Mr() {
|
|
|
180
180
|
value: re
|
|
181
181
|
}),
|
|
182
182
|
groupEnd: L({}, l, {
|
|
183
|
-
value:
|
|
183
|
+
value: et
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
V < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var bt = w.ReactCurrentDispatcher, yt;
|
|
191
|
+
function tt(l, p, v) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (yt === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (P) {
|
|
197
197
|
var x = P.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
|
|
198
|
+
yt = x && x[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + yt + l;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var wt = !1, nt;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var cr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
nt = new cr();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!l ||
|
|
209
|
+
function Xt(l, p) {
|
|
210
|
+
if (!l || wt)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var v =
|
|
213
|
+
var v = nt.get(l);
|
|
214
214
|
if (v !== void 0)
|
|
215
215
|
return v;
|
|
216
216
|
}
|
|
217
217
|
var x;
|
|
218
|
-
|
|
218
|
+
wt = !0;
|
|
219
219
|
var P = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var I;
|
|
222
|
+
I = bt.current, bt.current = null, sr();
|
|
223
223
|
try {
|
|
224
224
|
if (p) {
|
|
225
225
|
var C = function() {
|
|
@@ -232,100 +232,100 @@ function Mr() {
|
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(C, []);
|
|
235
|
-
} catch (
|
|
236
|
-
x =
|
|
235
|
+
} catch (z) {
|
|
236
|
+
x = z;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(l, [], C);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
C.call();
|
|
242
|
-
} catch (
|
|
243
|
-
x =
|
|
242
|
+
} catch (z) {
|
|
243
|
+
x = z;
|
|
244
244
|
}
|
|
245
245
|
l.call(C.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
x =
|
|
250
|
+
} catch (z) {
|
|
251
|
+
x = z;
|
|
252
252
|
}
|
|
253
253
|
l();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var T =
|
|
255
|
+
} catch (z) {
|
|
256
|
+
if (z && x && typeof z.stack == "string") {
|
|
257
|
+
for (var T = z.stack.split(`
|
|
258
258
|
`), q = x.stack.split(`
|
|
259
|
-
`), j = T.length - 1,
|
|
260
|
-
|
|
261
|
-
for (; j >= 1 &&
|
|
262
|
-
if (T[j] !== q[
|
|
263
|
-
if (j !== 1 ||
|
|
259
|
+
`), j = T.length - 1, B = q.length - 1; j >= 1 && B >= 0 && T[j] !== q[B]; )
|
|
260
|
+
B--;
|
|
261
|
+
for (; j >= 1 && B >= 0; j--, B--)
|
|
262
|
+
if (T[j] !== q[B]) {
|
|
263
|
+
if (j !== 1 || B !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (j--,
|
|
265
|
+
if (j--, B--, B < 0 || T[j] !== q[B]) {
|
|
266
266
|
var ee = `
|
|
267
267
|
` + T[j].replace(" at new ", " at ");
|
|
268
|
-
return l.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", l.displayName)), typeof l == "function" &&
|
|
268
|
+
return l.displayName && ee.includes("<anonymous>") && (ee = ee.replace("<anonymous>", l.displayName)), typeof l == "function" && nt.set(l, ee), ee;
|
|
269
269
|
}
|
|
270
|
-
while (j >= 1 &&
|
|
270
|
+
while (j >= 1 && B >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
wt = !1, bt.current = I, lr(), Error.prepareStackTrace = P;
|
|
276
276
|
}
|
|
277
|
-
var Ie = l ? l.displayName || l.name : "", Ee = Ie ?
|
|
278
|
-
return typeof l == "function" &&
|
|
277
|
+
var Ie = l ? l.displayName || l.name : "", Ee = Ie ? tt(Ie) : "";
|
|
278
|
+
return typeof l == "function" && nt.set(l, Ee), Ee;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function ar(l, p, v) {
|
|
281
|
+
return Xt(l, !1);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function ur(l) {
|
|
284
284
|
var p = l.prototype;
|
|
285
285
|
return !!(p && p.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function rt(l, p, v) {
|
|
288
288
|
if (l == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof l == "function")
|
|
291
|
-
return
|
|
291
|
+
return Xt(l, ur(l));
|
|
292
292
|
if (typeof l == "string")
|
|
293
|
-
return
|
|
293
|
+
return tt(l);
|
|
294
294
|
switch (l) {
|
|
295
295
|
case u:
|
|
296
|
-
return
|
|
296
|
+
return tt("Suspense");
|
|
297
297
|
case d:
|
|
298
|
-
return
|
|
298
|
+
return tt("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof l == "object")
|
|
301
301
|
switch (l.$$typeof) {
|
|
302
302
|
case a:
|
|
303
|
-
return
|
|
303
|
+
return ar(l.render);
|
|
304
304
|
case h:
|
|
305
|
-
return
|
|
305
|
+
return rt(l.type, p, v);
|
|
306
306
|
case f: {
|
|
307
|
-
var x = l, P = x._payload,
|
|
307
|
+
var x = l, P = x._payload, I = x._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return rt(I(P), p, v);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var Ue = Object.prototype.hasOwnProperty,
|
|
317
|
-
function
|
|
316
|
+
var Ue = Object.prototype.hasOwnProperty, Gt = {}, Zt = w.ReactDebugCurrentFrame;
|
|
317
|
+
function it(l) {
|
|
318
318
|
if (l) {
|
|
319
|
-
var p = l._owner, v =
|
|
320
|
-
|
|
319
|
+
var p = l._owner, v = rt(l.type, l._source, p ? p.type : null);
|
|
320
|
+
Zt.setExtraStackFrame(v);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
Zt.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function fr(l, p, v, x, P) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
326
|
+
var I = Function.call.bind(Ue);
|
|
327
327
|
for (var C in l)
|
|
328
|
-
if (
|
|
328
|
+
if (I(l, C)) {
|
|
329
329
|
var T = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof l[C] != "function") {
|
|
@@ -336,42 +336,41 @@ function Mr() {
|
|
|
336
336
|
} catch (j) {
|
|
337
337
|
T = j;
|
|
338
338
|
}
|
|
339
|
-
T && !(T instanceof Error) && (
|
|
339
|
+
T && !(T instanceof Error) && (it(P), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", x || "React class", v, C, typeof T), it(null)), T instanceof Error && !(T.message in Gt) && (Gt[T.message] = !0, it(P), _("Failed %s type: %s", v, T.message), it(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var dr = Array.isArray;
|
|
344
|
+
function _t(l) {
|
|
345
|
+
return dr(l);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function hr(l) {
|
|
348
348
|
{
|
|
349
349
|
var p = typeof Symbol == "function" && Symbol.toStringTag, v = p && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
350
350
|
return v;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function pr(l) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Qt(l), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Qt(l) {
|
|
361
361
|
return "" + l;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
363
|
+
function en(l) {
|
|
364
|
+
if (pr(l))
|
|
365
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", hr(l)), Qt(l);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var tn = w.ReactCurrentOwner, gr = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
function hr(l) {
|
|
372
|
+
}, nn, rn;
|
|
373
|
+
function mr(l) {
|
|
375
374
|
if (Ue.call(l, "ref")) {
|
|
376
375
|
var p = Object.getOwnPropertyDescriptor(l, "ref").get;
|
|
377
376
|
if (p && p.isReactWarning)
|
|
@@ -379,7 +378,7 @@ function Mr() {
|
|
|
379
378
|
}
|
|
380
379
|
return l.ref !== void 0;
|
|
381
380
|
}
|
|
382
|
-
function
|
|
381
|
+
function vr(l) {
|
|
383
382
|
if (Ue.call(l, "key")) {
|
|
384
383
|
var p = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
385
384
|
if (p && p.isReactWarning)
|
|
@@ -387,16 +386,13 @@ function Mr() {
|
|
|
387
386
|
}
|
|
388
387
|
return l.key !== void 0;
|
|
389
388
|
}
|
|
390
|
-
function
|
|
391
|
-
|
|
392
|
-
var v = F(qe.current.type);
|
|
393
|
-
_t[v] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(qe.current.type), l.ref), _t[v] = !0);
|
|
394
|
-
}
|
|
389
|
+
function br(l, p) {
|
|
390
|
+
typeof l.ref == "string" && tn.current;
|
|
395
391
|
}
|
|
396
|
-
function
|
|
392
|
+
function yr(l, p) {
|
|
397
393
|
{
|
|
398
394
|
var v = function() {
|
|
399
|
-
|
|
395
|
+
nn || (nn = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
400
396
|
};
|
|
401
397
|
v.isReactWarning = !0, Object.defineProperty(l, "key", {
|
|
402
398
|
get: v,
|
|
@@ -404,10 +400,10 @@ function Mr() {
|
|
|
404
400
|
});
|
|
405
401
|
}
|
|
406
402
|
}
|
|
407
|
-
function
|
|
403
|
+
function wr(l, p) {
|
|
408
404
|
{
|
|
409
405
|
var v = function() {
|
|
410
|
-
|
|
406
|
+
rn || (rn = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
411
407
|
};
|
|
412
408
|
v.isReactWarning = !0, Object.defineProperty(l, "ref", {
|
|
413
409
|
get: v,
|
|
@@ -415,7 +411,7 @@ function Mr() {
|
|
|
415
411
|
});
|
|
416
412
|
}
|
|
417
413
|
}
|
|
418
|
-
var
|
|
414
|
+
var _r = function(l, p, v, x, P, I, C) {
|
|
419
415
|
var T = {
|
|
420
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
421
417
|
$$typeof: t,
|
|
@@ -425,7 +421,7 @@ function Mr() {
|
|
|
425
421
|
ref: v,
|
|
426
422
|
props: C,
|
|
427
423
|
// Record the component responsible for creating this element.
|
|
428
|
-
_owner:
|
|
424
|
+
_owner: I
|
|
429
425
|
};
|
|
430
426
|
return T._store = {}, Object.defineProperty(T._store, "validated", {
|
|
431
427
|
configurable: !1,
|
|
@@ -444,38 +440,38 @@ function Mr() {
|
|
|
444
440
|
value: P
|
|
445
441
|
}), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
|
|
446
442
|
};
|
|
447
|
-
function
|
|
443
|
+
function Er(l, p, v, x, P) {
|
|
448
444
|
{
|
|
449
|
-
var
|
|
450
|
-
v !== void 0 && (
|
|
451
|
-
for (
|
|
452
|
-
Ue.call(p,
|
|
445
|
+
var I, C = {}, T = null, q = null;
|
|
446
|
+
v !== void 0 && (en(v), T = "" + v), vr(p) && (en(p.key), T = "" + p.key), mr(p) && (q = p.ref, br(p, P));
|
|
447
|
+
for (I in p)
|
|
448
|
+
Ue.call(p, I) && !gr.hasOwnProperty(I) && (C[I] = p[I]);
|
|
453
449
|
if (l && l.defaultProps) {
|
|
454
450
|
var j = l.defaultProps;
|
|
455
|
-
for (
|
|
456
|
-
C[
|
|
451
|
+
for (I in j)
|
|
452
|
+
C[I] === void 0 && (C[I] = j[I]);
|
|
457
453
|
}
|
|
458
454
|
if (T || q) {
|
|
459
|
-
var
|
|
460
|
-
T &&
|
|
455
|
+
var B = typeof l == "function" ? l.displayName || l.name || "Unknown" : l;
|
|
456
|
+
T && yr(C, B), q && wr(C, B);
|
|
461
457
|
}
|
|
462
|
-
return
|
|
458
|
+
return _r(l, T, q, P, x, tn.current, C);
|
|
463
459
|
}
|
|
464
460
|
}
|
|
465
|
-
var Et =
|
|
461
|
+
var Et = w.ReactCurrentOwner, on = w.ReactDebugCurrentFrame;
|
|
466
462
|
function ke(l) {
|
|
467
463
|
if (l) {
|
|
468
|
-
var p = l._owner, v =
|
|
469
|
-
|
|
464
|
+
var p = l._owner, v = rt(l.type, l._source, p ? p.type : null);
|
|
465
|
+
on.setExtraStackFrame(v);
|
|
470
466
|
} else
|
|
471
|
-
|
|
467
|
+
on.setExtraStackFrame(null);
|
|
472
468
|
}
|
|
473
469
|
var xt;
|
|
474
470
|
xt = !1;
|
|
475
471
|
function St(l) {
|
|
476
472
|
return typeof l == "object" && l !== null && l.$$typeof === t;
|
|
477
473
|
}
|
|
478
|
-
function
|
|
474
|
+
function sn() {
|
|
479
475
|
{
|
|
480
476
|
if (Et.current) {
|
|
481
477
|
var l = F(Et.current.type);
|
|
@@ -487,13 +483,13 @@ Check the render method of \`` + l + "`.";
|
|
|
487
483
|
return "";
|
|
488
484
|
}
|
|
489
485
|
}
|
|
490
|
-
function
|
|
486
|
+
function xr(l) {
|
|
491
487
|
return "";
|
|
492
488
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
489
|
+
var ln = {};
|
|
490
|
+
function Sr(l) {
|
|
495
491
|
{
|
|
496
|
-
var p =
|
|
492
|
+
var p = sn();
|
|
497
493
|
if (!p) {
|
|
498
494
|
var v = typeof l == "string" ? l : l.displayName || l.name;
|
|
499
495
|
v && (p = `
|
|
@@ -503,39 +499,39 @@ Check the top-level render call using <` + v + ">.");
|
|
|
503
499
|
return p;
|
|
504
500
|
}
|
|
505
501
|
}
|
|
506
|
-
function
|
|
502
|
+
function cn(l, p) {
|
|
507
503
|
{
|
|
508
504
|
if (!l._store || l._store.validated || l.key != null)
|
|
509
505
|
return;
|
|
510
506
|
l._store.validated = !0;
|
|
511
|
-
var v =
|
|
512
|
-
if (
|
|
507
|
+
var v = Sr(p);
|
|
508
|
+
if (ln[v])
|
|
513
509
|
return;
|
|
514
|
-
|
|
510
|
+
ln[v] = !0;
|
|
515
511
|
var x = "";
|
|
516
|
-
l && l._owner && l._owner !== Et.current && (x = " It was passed a child from " + F(l._owner.type) + "."), ke(l),
|
|
512
|
+
l && l._owner && l._owner !== Et.current && (x = " It was passed a child from " + F(l._owner.type) + "."), ke(l), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, x), ke(null);
|
|
517
513
|
}
|
|
518
514
|
}
|
|
519
|
-
function
|
|
515
|
+
function an(l, p) {
|
|
520
516
|
{
|
|
521
517
|
if (typeof l != "object")
|
|
522
518
|
return;
|
|
523
|
-
if (
|
|
519
|
+
if (_t(l))
|
|
524
520
|
for (var v = 0; v < l.length; v++) {
|
|
525
521
|
var x = l[v];
|
|
526
|
-
St(x) &&
|
|
522
|
+
St(x) && cn(x, p);
|
|
527
523
|
}
|
|
528
524
|
else if (St(l))
|
|
529
525
|
l._store && (l._store.validated = !0);
|
|
530
526
|
else if (l) {
|
|
531
527
|
var P = S(l);
|
|
532
528
|
if (typeof P == "function" && P !== l.entries)
|
|
533
|
-
for (var
|
|
534
|
-
St(C.value) &&
|
|
529
|
+
for (var I = P.call(l), C; !(C = I.next()).done; )
|
|
530
|
+
St(C.value) && cn(C.value, p);
|
|
535
531
|
}
|
|
536
532
|
}
|
|
537
533
|
}
|
|
538
|
-
function
|
|
534
|
+
function Or(l) {
|
|
539
535
|
{
|
|
540
536
|
var p = l.type;
|
|
541
537
|
if (p == null || typeof p == "string")
|
|
@@ -551,95 +547,98 @@ Check the top-level render call using <` + v + ">.");
|
|
|
551
547
|
return;
|
|
552
548
|
if (v) {
|
|
553
549
|
var x = F(p);
|
|
554
|
-
|
|
550
|
+
fr(v, l.props, "prop", x, l);
|
|
555
551
|
} else if (p.PropTypes !== void 0 && !xt) {
|
|
556
552
|
xt = !0;
|
|
557
553
|
var P = F(p);
|
|
558
|
-
|
|
554
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
|
|
559
555
|
}
|
|
560
|
-
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
557
|
}
|
|
562
558
|
}
|
|
563
|
-
function
|
|
559
|
+
function Rr(l) {
|
|
564
560
|
{
|
|
565
561
|
for (var p = Object.keys(l.props), v = 0; v < p.length; v++) {
|
|
566
562
|
var x = p[v];
|
|
567
563
|
if (x !== "children" && x !== "key") {
|
|
568
|
-
ke(l),
|
|
564
|
+
ke(l), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", x), ke(null);
|
|
569
565
|
break;
|
|
570
566
|
}
|
|
571
567
|
}
|
|
572
|
-
l.ref !== null && (ke(l),
|
|
568
|
+
l.ref !== null && (ke(l), _("Invalid attribute `ref` supplied to `React.Fragment`."), ke(null));
|
|
573
569
|
}
|
|
574
570
|
}
|
|
575
|
-
var
|
|
576
|
-
function
|
|
571
|
+
var un = {};
|
|
572
|
+
function fn(l, p, v, x, P, I) {
|
|
577
573
|
{
|
|
578
574
|
var C = X(l);
|
|
579
575
|
if (!C) {
|
|
580
576
|
var T = "";
|
|
581
577
|
(l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (T += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var q =
|
|
583
|
-
q ? T += q : T +=
|
|
578
|
+
var q = xr();
|
|
579
|
+
q ? T += q : T += sn();
|
|
584
580
|
var j;
|
|
585
|
-
l === null ? j = "null" :
|
|
581
|
+
l === null ? j = "null" : _t(l) ? j = "array" : l !== void 0 && l.$$typeof === t ? (j = "<" + (F(l.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : j = typeof l, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, T);
|
|
586
582
|
}
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
return
|
|
583
|
+
var B = Er(l, p, v, P, I);
|
|
584
|
+
if (B == null)
|
|
585
|
+
return B;
|
|
590
586
|
if (C) {
|
|
591
587
|
var ee = p.children;
|
|
592
588
|
if (ee !== void 0)
|
|
593
589
|
if (x)
|
|
594
|
-
if (
|
|
590
|
+
if (_t(ee)) {
|
|
595
591
|
for (var Ie = 0; Ie < ee.length; Ie++)
|
|
596
|
-
|
|
592
|
+
an(ee[Ie], l);
|
|
597
593
|
Object.freeze && Object.freeze(ee);
|
|
598
594
|
} else
|
|
599
|
-
|
|
595
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
596
|
else
|
|
601
|
-
|
|
597
|
+
an(ee, l);
|
|
602
598
|
}
|
|
603
599
|
if (Ue.call(p, "key")) {
|
|
604
|
-
var Ee = F(l),
|
|
605
|
-
return
|
|
606
|
-
}), Ot =
|
|
607
|
-
if (!
|
|
608
|
-
var
|
|
609
|
-
|
|
600
|
+
var Ee = F(l), z = Object.keys(p).filter(function(Ir) {
|
|
601
|
+
return Ir !== "key";
|
|
602
|
+
}), Ot = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!un[Ee + Ot]) {
|
|
604
|
+
var kr = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
_(`A props object containing a "key" prop is being spread into JSX:
|
|
610
606
|
let props = %s;
|
|
611
607
|
<%s {...props} />
|
|
612
608
|
React keys must be passed directly to JSX without using spread:
|
|
613
609
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`, Ot, Ee,
|
|
610
|
+
<%s key={someKey} {...props} />`, Ot, Ee, kr, Ee), un[Ee + Ot] = !0;
|
|
615
611
|
}
|
|
616
612
|
}
|
|
617
|
-
return l === r ?
|
|
613
|
+
return l === r ? Rr(B) : Or(B), B;
|
|
618
614
|
}
|
|
619
615
|
}
|
|
620
|
-
function
|
|
621
|
-
return
|
|
616
|
+
function Tr(l, p, v) {
|
|
617
|
+
return fn(l, p, v, !0);
|
|
622
618
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
619
|
+
function Cr(l, p, v) {
|
|
620
|
+
return fn(l, p, v, !1);
|
|
625
621
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
}()),
|
|
622
|
+
var Ar = Cr, Pr = Tr;
|
|
623
|
+
ze.Fragment = r, ze.jsx = Ar, ze.jsxs = Pr;
|
|
624
|
+
}()), ze;
|
|
629
625
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
626
|
+
var pn;
|
|
627
|
+
function jr() {
|
|
628
|
+
return pn || (pn = 1, process.env.NODE_ENV === "production" ? ot.exports = Lr() : ot.exports = Dr()), ot.exports;
|
|
629
|
+
}
|
|
630
|
+
var Hr = jr();
|
|
631
|
+
/*! shepherd.js 14.5.0 */
|
|
632
|
+
function $r(e) {
|
|
634
633
|
return e instanceof Element;
|
|
635
634
|
}
|
|
636
635
|
function He(e) {
|
|
637
636
|
return e instanceof HTMLElement;
|
|
638
637
|
}
|
|
639
|
-
function
|
|
638
|
+
function ve(e) {
|
|
640
639
|
return typeof e == "function";
|
|
641
640
|
}
|
|
642
|
-
function
|
|
641
|
+
function Ke(e) {
|
|
643
642
|
return typeof e == "string";
|
|
644
643
|
}
|
|
645
644
|
function U(e) {
|
|
@@ -722,14 +721,14 @@ class Ft {
|
|
|
722
721
|
return this;
|
|
723
722
|
}
|
|
724
723
|
}
|
|
725
|
-
function
|
|
726
|
-
return
|
|
724
|
+
function J() {
|
|
725
|
+
return J = Object.assign ? Object.assign.bind() : function(e) {
|
|
727
726
|
for (var t = 1; t < arguments.length; t++) {
|
|
728
727
|
var n = arguments[t];
|
|
729
728
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
730
729
|
}
|
|
731
730
|
return e;
|
|
732
|
-
},
|
|
731
|
+
}, J.apply(null, arguments);
|
|
733
732
|
}
|
|
734
733
|
function Lt(e, t) {
|
|
735
734
|
if (e == null) return {};
|
|
@@ -745,30 +744,30 @@ const ye = {
|
|
|
745
744
|
skip: Symbol("deepmerge-ts: skip")
|
|
746
745
|
};
|
|
747
746
|
ye.defaultMerge;
|
|
748
|
-
function
|
|
747
|
+
function Br(e, t) {
|
|
749
748
|
return t;
|
|
750
749
|
}
|
|
751
|
-
function
|
|
750
|
+
function Vr(e, t) {
|
|
752
751
|
return e.filter((n) => n !== void 0);
|
|
753
752
|
}
|
|
754
|
-
var
|
|
753
|
+
var gn;
|
|
755
754
|
(function(e) {
|
|
756
755
|
e[e.NOT = 0] = "NOT", e[e.RECORD = 1] = "RECORD", e[e.ARRAY = 2] = "ARRAY", e[e.SET = 3] = "SET", e[e.MAP = 4] = "MAP", e[e.OTHER = 5] = "OTHER";
|
|
757
|
-
})(
|
|
758
|
-
function
|
|
759
|
-
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 :
|
|
756
|
+
})(gn || (gn = {}));
|
|
757
|
+
function mn(e) {
|
|
758
|
+
return typeof e != "object" || e === null ? 0 : Array.isArray(e) ? 2 : Yr(e) ? 1 : e instanceof Set ? 3 : e instanceof Map ? 4 : 5;
|
|
760
759
|
}
|
|
761
|
-
function
|
|
760
|
+
function Nr(e) {
|
|
762
761
|
const t = /* @__PURE__ */ new Set();
|
|
763
762
|
for (const n of e)
|
|
764
763
|
for (const r of [...Object.keys(n), ...Object.getOwnPropertySymbols(n)])
|
|
765
764
|
t.add(r);
|
|
766
765
|
return t;
|
|
767
766
|
}
|
|
768
|
-
function
|
|
767
|
+
function Wr(e, t) {
|
|
769
768
|
return typeof e == "object" && Object.prototype.propertyIsEnumerable.call(e, t);
|
|
770
769
|
}
|
|
771
|
-
function
|
|
770
|
+
function Bn(e) {
|
|
772
771
|
return {
|
|
773
772
|
*[Symbol.iterator]() {
|
|
774
773
|
for (const t of e)
|
|
@@ -777,9 +776,9 @@ function jn(e) {
|
|
|
777
776
|
}
|
|
778
777
|
};
|
|
779
778
|
}
|
|
780
|
-
const
|
|
781
|
-
function
|
|
782
|
-
if (!
|
|
779
|
+
const vn = /* @__PURE__ */ new Set(["[object Object]", "[object Module]"]);
|
|
780
|
+
function Yr(e) {
|
|
781
|
+
if (!vn.has(Object.prototype.toString.call(e)))
|
|
783
782
|
return !1;
|
|
784
783
|
const {
|
|
785
784
|
constructor: t
|
|
@@ -787,20 +786,20 @@ function Vr(e) {
|
|
|
787
786
|
if (t === void 0)
|
|
788
787
|
return !0;
|
|
789
788
|
const n = t.prototype;
|
|
790
|
-
return !(n === null || typeof n != "object" || !
|
|
789
|
+
return !(n === null || typeof n != "object" || !vn.has(Object.prototype.toString.call(n)) || !n.hasOwnProperty("isPrototypeOf"));
|
|
791
790
|
}
|
|
792
|
-
function
|
|
791
|
+
function Ur(e, t, n) {
|
|
793
792
|
const r = {};
|
|
794
|
-
for (const i of
|
|
793
|
+
for (const i of Nr(e)) {
|
|
795
794
|
const o = [];
|
|
796
795
|
for (const a of e)
|
|
797
|
-
|
|
796
|
+
Wr(a, i) && o.push(a[i]);
|
|
798
797
|
if (o.length === 0)
|
|
799
798
|
continue;
|
|
800
799
|
const s = t.metaDataUpdater(n, {
|
|
801
800
|
key: i,
|
|
802
801
|
parents: e
|
|
803
|
-
}), c =
|
|
802
|
+
}), c = Vn(o, t, s);
|
|
804
803
|
c !== ye.skip && (i === "__proto__" ? Object.defineProperty(r, i, {
|
|
805
804
|
value: c,
|
|
806
805
|
configurable: !0,
|
|
@@ -810,86 +809,86 @@ function Br(e, t, n) {
|
|
|
810
809
|
}
|
|
811
810
|
return r;
|
|
812
811
|
}
|
|
813
|
-
function
|
|
812
|
+
function qr(e) {
|
|
814
813
|
return e.flat();
|
|
815
814
|
}
|
|
816
|
-
function
|
|
817
|
-
return new Set(
|
|
815
|
+
function zr(e) {
|
|
816
|
+
return new Set(Bn(e));
|
|
818
817
|
}
|
|
819
|
-
function
|
|
820
|
-
return new Map(
|
|
818
|
+
function Jr(e) {
|
|
819
|
+
return new Map(Bn(e));
|
|
821
820
|
}
|
|
822
|
-
function
|
|
821
|
+
function Kr(e) {
|
|
823
822
|
return e.at(-1);
|
|
824
823
|
}
|
|
825
824
|
const st = {
|
|
826
|
-
mergeRecords:
|
|
827
|
-
mergeArrays:
|
|
828
|
-
mergeSets:
|
|
829
|
-
mergeMaps:
|
|
830
|
-
mergeOthers:
|
|
825
|
+
mergeRecords: Ur,
|
|
826
|
+
mergeArrays: qr,
|
|
827
|
+
mergeSets: zr,
|
|
828
|
+
mergeMaps: Jr,
|
|
829
|
+
mergeOthers: Kr
|
|
831
830
|
};
|
|
832
831
|
function Dt(...e) {
|
|
833
|
-
return
|
|
832
|
+
return Xr({})(...e);
|
|
834
833
|
}
|
|
835
|
-
function
|
|
836
|
-
const n =
|
|
834
|
+
function Xr(e, t) {
|
|
835
|
+
const n = Gr(e, r);
|
|
837
836
|
function r(...i) {
|
|
838
|
-
return
|
|
837
|
+
return Vn(i, n, t);
|
|
839
838
|
}
|
|
840
839
|
return r;
|
|
841
840
|
}
|
|
842
|
-
function
|
|
841
|
+
function Gr(e, t) {
|
|
843
842
|
var n, r, i;
|
|
844
843
|
return {
|
|
845
844
|
defaultMergeFunctions: st,
|
|
846
|
-
mergeFunctions:
|
|
847
|
-
metaDataUpdater: (n = e.metaDataUpdater) != null ? n :
|
|
845
|
+
mergeFunctions: J({}, st, Object.fromEntries(Object.entries(e).filter(([o, s]) => Object.hasOwn(st, o)).map(([o, s]) => s === !1 ? [o, st.mergeOthers] : [o, s]))),
|
|
846
|
+
metaDataUpdater: (n = e.metaDataUpdater) != null ? n : Br,
|
|
848
847
|
deepmerge: t,
|
|
849
848
|
useImplicitDefaultMerging: (r = e.enableImplicitDefaultMerging) != null ? r : !1,
|
|
850
|
-
filterValues: e.filterValues === !1 ? void 0 : (i = e.filterValues) != null ? i :
|
|
849
|
+
filterValues: e.filterValues === !1 ? void 0 : (i = e.filterValues) != null ? i : Vr,
|
|
851
850
|
actions: ye
|
|
852
851
|
};
|
|
853
852
|
}
|
|
854
|
-
function
|
|
853
|
+
function Vn(e, t, n) {
|
|
855
854
|
var r;
|
|
856
855
|
const i = (r = t.filterValues == null ? void 0 : t.filterValues(e, n)) != null ? r : e;
|
|
857
856
|
if (i.length === 0)
|
|
858
857
|
return;
|
|
859
858
|
if (i.length === 1)
|
|
860
859
|
return Rt(i, t, n);
|
|
861
|
-
const o =
|
|
860
|
+
const o = mn(i[0]);
|
|
862
861
|
if (o !== 0 && o !== 5) {
|
|
863
862
|
for (let s = 1; s < i.length; s++)
|
|
864
|
-
if (
|
|
863
|
+
if (mn(i[s]) !== o)
|
|
865
864
|
return Rt(i, t, n);
|
|
866
865
|
}
|
|
867
866
|
switch (o) {
|
|
868
867
|
case 1:
|
|
869
|
-
return
|
|
868
|
+
return Zr(i, t, n);
|
|
870
869
|
case 2:
|
|
871
|
-
return
|
|
870
|
+
return Qr(i, t, n);
|
|
872
871
|
case 3:
|
|
873
|
-
return
|
|
872
|
+
return ei(i, t, n);
|
|
874
873
|
case 4:
|
|
875
|
-
return
|
|
874
|
+
return ti(i, t, n);
|
|
876
875
|
default:
|
|
877
876
|
return Rt(i, t, n);
|
|
878
877
|
}
|
|
879
878
|
}
|
|
880
|
-
function
|
|
879
|
+
function Zr(e, t, n) {
|
|
881
880
|
const r = t.mergeFunctions.mergeRecords(e, t, n);
|
|
882
881
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeRecords !== t.defaultMergeFunctions.mergeRecords ? t.defaultMergeFunctions.mergeRecords(e, t, n) : r;
|
|
883
882
|
}
|
|
884
|
-
function
|
|
883
|
+
function Qr(e, t, n) {
|
|
885
884
|
const r = t.mergeFunctions.mergeArrays(e, t, n);
|
|
886
885
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeArrays !== t.defaultMergeFunctions.mergeArrays ? t.defaultMergeFunctions.mergeArrays(e) : r;
|
|
887
886
|
}
|
|
888
|
-
function
|
|
887
|
+
function ei(e, t, n) {
|
|
889
888
|
const r = t.mergeFunctions.mergeSets(e, t, n);
|
|
890
889
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeSets !== t.defaultMergeFunctions.mergeSets ? t.defaultMergeFunctions.mergeSets(e) : r;
|
|
891
890
|
}
|
|
892
|
-
function
|
|
891
|
+
function ti(e, t, n) {
|
|
893
892
|
const r = t.mergeFunctions.mergeMaps(e, t, n);
|
|
894
893
|
return r === ye.defaultMerge || t.useImplicitDefaultMerging && r === void 0 && t.mergeFunctions.mergeMaps !== t.defaultMergeFunctions.mergeMaps ? t.defaultMergeFunctions.mergeMaps(e) : r;
|
|
895
894
|
}
|
|
@@ -905,7 +904,7 @@ function jt(e) {
|
|
|
905
904
|
}
|
|
906
905
|
return e;
|
|
907
906
|
}
|
|
908
|
-
function
|
|
907
|
+
function ni(e, t) {
|
|
909
908
|
return (n) => {
|
|
910
909
|
if (e.isOpen()) {
|
|
911
910
|
const r = e.el && n.currentTarget === e.el;
|
|
@@ -913,13 +912,13 @@ function Zr(e, t) {
|
|
|
913
912
|
}
|
|
914
913
|
};
|
|
915
914
|
}
|
|
916
|
-
function
|
|
915
|
+
function ri(e) {
|
|
917
916
|
const {
|
|
918
917
|
event: t,
|
|
919
918
|
selector: n
|
|
920
919
|
} = e.options.advanceOn || {};
|
|
921
920
|
if (t) {
|
|
922
|
-
const r =
|
|
921
|
+
const r = ni(e, n);
|
|
923
922
|
let i = null;
|
|
924
923
|
if (!U(n) && (i = document.querySelector(n), !i))
|
|
925
924
|
return console.error(`No element was found for the selector supplied to advanceOn: ${n}`);
|
|
@@ -927,20 +926,20 @@ function Qr(e) {
|
|
|
927
926
|
} else
|
|
928
927
|
return console.error("advanceOn was defined, but no event name was passed.");
|
|
929
928
|
}
|
|
930
|
-
class
|
|
929
|
+
class ii {
|
|
931
930
|
constructor(t) {
|
|
932
931
|
}
|
|
933
932
|
}
|
|
934
|
-
class
|
|
933
|
+
class oi {
|
|
935
934
|
constructor(t, n) {
|
|
936
935
|
}
|
|
937
936
|
}
|
|
938
|
-
function
|
|
939
|
-
return !
|
|
937
|
+
function Nn(e) {
|
|
938
|
+
return !Ke(e) || e === "" ? "" : e.charAt(e.length - 1) !== "-" ? `${e}-` : e;
|
|
940
939
|
}
|
|
941
|
-
function
|
|
940
|
+
function si(e) {
|
|
942
941
|
const t = e.options.attachTo || {}, n = Object.assign({}, t);
|
|
943
|
-
if (
|
|
942
|
+
if (ve(n.element) && (n.element = n.element.call(e)), Ke(n.element)) {
|
|
944
943
|
try {
|
|
945
944
|
n.element = document.querySelector(n.element);
|
|
946
945
|
} catch {
|
|
@@ -949,41 +948,41 @@ function ni(e) {
|
|
|
949
948
|
}
|
|
950
949
|
return n;
|
|
951
950
|
}
|
|
952
|
-
function
|
|
951
|
+
function li(e) {
|
|
953
952
|
return e.options.extraHighlights ? e.options.extraHighlights.flatMap((t) => Array.from(document.querySelectorAll(t))) : [];
|
|
954
953
|
}
|
|
955
|
-
function
|
|
954
|
+
function Wn(e) {
|
|
956
955
|
return e == null ? !0 : !e.element || !e.on;
|
|
957
956
|
}
|
|
958
|
-
function
|
|
957
|
+
function Yn() {
|
|
959
958
|
let e = Date.now();
|
|
960
959
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
961
960
|
const n = (e + Math.random() * 16) % 16 | 0;
|
|
962
961
|
return e = Math.floor(e / 16), (t == "x" ? n : n & 3 | 8).toString(16);
|
|
963
962
|
});
|
|
964
963
|
}
|
|
965
|
-
const
|
|
964
|
+
const ci = ["top", "right", "bottom", "left"], bn = ["start", "end"], yn = /* @__PURE__ */ ci.reduce((e, t) => e.concat(t, t + "-" + bn[0], t + "-" + bn[1]), []), $e = Math.min, Oe = Math.max, at = Math.round, lt = Math.floor, le = (e) => ({
|
|
966
965
|
x: e,
|
|
967
966
|
y: e
|
|
968
|
-
}),
|
|
967
|
+
}), ai = {
|
|
969
968
|
left: "right",
|
|
970
969
|
right: "left",
|
|
971
970
|
bottom: "top",
|
|
972
971
|
top: "bottom"
|
|
973
|
-
},
|
|
972
|
+
}, ui = {
|
|
974
973
|
start: "end",
|
|
975
974
|
end: "start"
|
|
976
975
|
};
|
|
977
|
-
function
|
|
976
|
+
function At(e, t, n) {
|
|
978
977
|
return Oe(e, $e(t, n));
|
|
979
978
|
}
|
|
980
979
|
function Ce(e, t) {
|
|
981
980
|
return typeof e == "function" ? e(t) : e;
|
|
982
981
|
}
|
|
983
|
-
function
|
|
982
|
+
function he(e) {
|
|
984
983
|
return e.split("-")[0];
|
|
985
984
|
}
|
|
986
|
-
function
|
|
985
|
+
function de(e) {
|
|
987
986
|
return e.split("-")[1];
|
|
988
987
|
}
|
|
989
988
|
function Ht(e) {
|
|
@@ -992,26 +991,26 @@ function Ht(e) {
|
|
|
992
991
|
function $t(e) {
|
|
993
992
|
return e === "y" ? "height" : "width";
|
|
994
993
|
}
|
|
995
|
-
function
|
|
996
|
-
return ["top", "bottom"].includes(
|
|
994
|
+
function Be(e) {
|
|
995
|
+
return ["top", "bottom"].includes(he(e)) ? "y" : "x";
|
|
997
996
|
}
|
|
998
|
-
function
|
|
999
|
-
return Ht(
|
|
997
|
+
function Bt(e) {
|
|
998
|
+
return Ht(Be(e));
|
|
1000
999
|
}
|
|
1001
|
-
function
|
|
1000
|
+
function Un(e, t, n) {
|
|
1002
1001
|
n === void 0 && (n = !1);
|
|
1003
|
-
const r =
|
|
1002
|
+
const r = de(e), i = Bt(e), o = $t(i);
|
|
1004
1003
|
let s = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1005
1004
|
return t.reference[o] > t.floating[o] && (s = ft(s)), [s, ft(s)];
|
|
1006
1005
|
}
|
|
1007
|
-
function
|
|
1006
|
+
function fi(e) {
|
|
1008
1007
|
const t = ft(e);
|
|
1009
1008
|
return [ut(e), t, ut(t)];
|
|
1010
1009
|
}
|
|
1011
1010
|
function ut(e) {
|
|
1012
|
-
return e.replace(/start|end/g, (t) =>
|
|
1011
|
+
return e.replace(/start|end/g, (t) => ui[t]);
|
|
1013
1012
|
}
|
|
1014
|
-
function
|
|
1013
|
+
function di(e, t, n) {
|
|
1015
1014
|
const r = ["left", "right"], i = ["right", "left"], o = ["top", "bottom"], s = ["bottom", "top"];
|
|
1016
1015
|
switch (e) {
|
|
1017
1016
|
case "top":
|
|
@@ -1024,24 +1023,24 @@ function ci(e, t, n) {
|
|
|
1024
1023
|
return [];
|
|
1025
1024
|
}
|
|
1026
1025
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const i =
|
|
1029
|
-
let o =
|
|
1026
|
+
function hi(e, t, n, r) {
|
|
1027
|
+
const i = de(e);
|
|
1028
|
+
let o = di(he(e), n === "start", r);
|
|
1030
1029
|
return i && (o = o.map((s) => s + "-" + i), t && (o = o.concat(o.map(ut)))), o;
|
|
1031
1030
|
}
|
|
1032
1031
|
function ft(e) {
|
|
1033
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1032
|
+
return e.replace(/left|right|bottom|top/g, (t) => ai[t]);
|
|
1034
1033
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1034
|
+
function pi(e) {
|
|
1035
|
+
return J({
|
|
1037
1036
|
top: 0,
|
|
1038
1037
|
right: 0,
|
|
1039
1038
|
bottom: 0,
|
|
1040
1039
|
left: 0
|
|
1041
1040
|
}, e);
|
|
1042
1041
|
}
|
|
1043
|
-
function
|
|
1044
|
-
return typeof e != "number" ?
|
|
1042
|
+
function qn(e) {
|
|
1043
|
+
return typeof e != "number" ? pi(e) : {
|
|
1045
1044
|
top: e,
|
|
1046
1045
|
right: e,
|
|
1047
1046
|
bottom: e,
|
|
@@ -1066,13 +1065,13 @@ function dt(e) {
|
|
|
1066
1065
|
y: n
|
|
1067
1066
|
};
|
|
1068
1067
|
}
|
|
1069
|
-
const
|
|
1070
|
-
function
|
|
1068
|
+
const gi = ["crossAxis", "alignment", "allowedPlacements", "autoAlignment"], mi = ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"], vi = ["mainAxis", "crossAxis", "limiter"];
|
|
1069
|
+
function wn(e, t, n) {
|
|
1071
1070
|
let {
|
|
1072
1071
|
reference: r,
|
|
1073
1072
|
floating: i
|
|
1074
1073
|
} = e;
|
|
1075
|
-
const o =
|
|
1074
|
+
const o = Be(t), s = Bt(t), c = $t(s), a = he(t), u = o === "y", d = r.x + r.width / 2 - i.width / 2, h = r.y + r.height / 2 - i.height / 2, f = r[c] / 2 - i[c] / 2;
|
|
1076
1075
|
let g;
|
|
1077
1076
|
switch (a) {
|
|
1078
1077
|
case "top":
|
|
@@ -1105,7 +1104,7 @@ function vn(e, t, n) {
|
|
|
1105
1104
|
y: r.y
|
|
1106
1105
|
};
|
|
1107
1106
|
}
|
|
1108
|
-
switch (
|
|
1107
|
+
switch (de(t)) {
|
|
1109
1108
|
case "start":
|
|
1110
1109
|
g[s] -= f * (n && u ? -1 : 1);
|
|
1111
1110
|
break;
|
|
@@ -1115,7 +1114,7 @@ function vn(e, t, n) {
|
|
|
1115
1114
|
}
|
|
1116
1115
|
return g;
|
|
1117
1116
|
}
|
|
1118
|
-
const
|
|
1117
|
+
const bi = async (e, t, n) => {
|
|
1119
1118
|
const {
|
|
1120
1119
|
placement: r = "bottom",
|
|
1121
1120
|
strategy: i = "absolute",
|
|
@@ -1129,17 +1128,17 @@ const pi = async (e, t, n) => {
|
|
|
1129
1128
|
}), {
|
|
1130
1129
|
x: d,
|
|
1131
1130
|
y: h
|
|
1132
|
-
} =
|
|
1131
|
+
} = wn(u, r, a), f = r, g = {}, b = 0;
|
|
1133
1132
|
for (let E = 0; E < c.length; E++) {
|
|
1134
1133
|
const {
|
|
1135
1134
|
name: S,
|
|
1136
|
-
fn:
|
|
1135
|
+
fn: w
|
|
1137
1136
|
} = c[E], {
|
|
1138
|
-
x:
|
|
1137
|
+
x: _,
|
|
1139
1138
|
y: O,
|
|
1140
1139
|
data: y,
|
|
1141
1140
|
reset: m
|
|
1142
|
-
} = await
|
|
1141
|
+
} = await w({
|
|
1143
1142
|
x: d,
|
|
1144
1143
|
y: h,
|
|
1145
1144
|
initialPlacement: r,
|
|
@@ -1153,8 +1152,8 @@ const pi = async (e, t, n) => {
|
|
|
1153
1152
|
floating: t
|
|
1154
1153
|
}
|
|
1155
1154
|
});
|
|
1156
|
-
d =
|
|
1157
|
-
[S]:
|
|
1155
|
+
d = _ ?? d, h = O ?? h, g = J({}, g, {
|
|
1156
|
+
[S]: J({}, g[S], y)
|
|
1158
1157
|
}), m && b <= 50 && (b++, typeof m == "object" && (m.placement && (f = m.placement), m.rects && (u = m.rects === !0 ? await s.getElementRects({
|
|
1159
1158
|
reference: e,
|
|
1160
1159
|
floating: t,
|
|
@@ -1162,7 +1161,7 @@ const pi = async (e, t, n) => {
|
|
|
1162
1161
|
}) : m.rects), {
|
|
1163
1162
|
x: d,
|
|
1164
1163
|
y: h
|
|
1165
|
-
} =
|
|
1164
|
+
} = wn(u, f, a)), E = -1);
|
|
1166
1165
|
}
|
|
1167
1166
|
return {
|
|
1168
1167
|
x: d,
|
|
@@ -1172,7 +1171,7 @@ const pi = async (e, t, n) => {
|
|
|
1172
1171
|
middlewareData: g
|
|
1173
1172
|
};
|
|
1174
1173
|
};
|
|
1175
|
-
async function
|
|
1174
|
+
async function Vt(e, t) {
|
|
1176
1175
|
var n;
|
|
1177
1176
|
t === void 0 && (t = {});
|
|
1178
1177
|
const {
|
|
@@ -1188,12 +1187,12 @@ async function Bt(e, t) {
|
|
|
1188
1187
|
elementContext: h = "floating",
|
|
1189
1188
|
altBoundary: f = !1,
|
|
1190
1189
|
padding: g = 0
|
|
1191
|
-
} = Ce(t, e), b =
|
|
1190
|
+
} = Ce(t, e), b = qn(g), S = c[f ? h === "floating" ? "reference" : "floating" : h], w = dt(await o.getClippingRect({
|
|
1192
1191
|
element: (n = await (o.isElement == null ? void 0 : o.isElement(S))) == null || n ? S : S.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(c.floating)),
|
|
1193
1192
|
boundary: u,
|
|
1194
1193
|
rootBoundary: d,
|
|
1195
1194
|
strategy: a
|
|
1196
|
-
})),
|
|
1195
|
+
})), _ = h === "floating" ? {
|
|
1197
1196
|
x: r,
|
|
1198
1197
|
y: i,
|
|
1199
1198
|
width: s.floating.width,
|
|
@@ -1206,18 +1205,18 @@ async function Bt(e, t) {
|
|
|
1206
1205
|
y: 1
|
|
1207
1206
|
}, m = dt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1208
1207
|
elements: c,
|
|
1209
|
-
rect:
|
|
1208
|
+
rect: _,
|
|
1210
1209
|
offsetParent: O,
|
|
1211
1210
|
strategy: a
|
|
1212
|
-
}) :
|
|
1211
|
+
}) : _);
|
|
1213
1212
|
return {
|
|
1214
|
-
top: (
|
|
1215
|
-
bottom: (m.bottom -
|
|
1216
|
-
left: (
|
|
1217
|
-
right: (m.right -
|
|
1213
|
+
top: (w.top - m.top + b.top) / y.y,
|
|
1214
|
+
bottom: (m.bottom - w.bottom + b.bottom) / y.y,
|
|
1215
|
+
left: (w.left - m.left + b.left) / y.x,
|
|
1216
|
+
right: (m.right - w.right + b.right) / y.x
|
|
1218
1217
|
};
|
|
1219
1218
|
}
|
|
1220
|
-
const
|
|
1219
|
+
const yi = (e) => ({
|
|
1221
1220
|
name: "arrow",
|
|
1222
1221
|
options: e,
|
|
1223
1222
|
async fn(t) {
|
|
@@ -1235,18 +1234,18 @@ const gi = (e) => ({
|
|
|
1235
1234
|
} = Ce(e, t) || {};
|
|
1236
1235
|
if (u == null)
|
|
1237
1236
|
return {};
|
|
1238
|
-
const h =
|
|
1237
|
+
const h = qn(d), f = {
|
|
1239
1238
|
x: n,
|
|
1240
1239
|
y: r
|
|
1241
|
-
}, g =
|
|
1240
|
+
}, g = Bt(i), b = $t(g), E = await s.getDimensions(u), S = g === "y", w = S ? "top" : "left", _ = S ? "bottom" : "right", O = S ? "clientHeight" : "clientWidth", y = o.reference[b] + o.reference[g] - f[g] - o.floating[b], m = f[g] - o.reference[g], R = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
1242
1241
|
let D = R ? R[O] : 0;
|
|
1243
1242
|
(!D || !await (s.isElement == null ? void 0 : s.isElement(R))) && (D = c.floating[O] || o.floating[b]);
|
|
1244
|
-
const K = y / 2 - m / 2, W = D / 2 - E[b] / 2 - 1, X = $e(h[
|
|
1243
|
+
const K = y / 2 - m / 2, W = D / 2 - E[b] / 2 - 1, X = $e(h[w], W), $ = $e(h[_], W), A = X, F = D - E[b] - $, L = D / 2 - E[b] / 2 + K, V = At(A, L, F), N = !a.arrow && de(i) != null && L !== V && o.reference[b] / 2 - (L < A ? X : $) - E[b] / 2 < 0, ne = N ? L < A ? L - A : L - F : 0;
|
|
1245
1244
|
return {
|
|
1246
1245
|
[g]: f[g] + ne,
|
|
1247
|
-
data:
|
|
1248
|
-
[g]:
|
|
1249
|
-
centerOffset: L -
|
|
1246
|
+
data: J({
|
|
1247
|
+
[g]: V,
|
|
1248
|
+
centerOffset: L - V - ne
|
|
1250
1249
|
}, N && {
|
|
1251
1250
|
alignmentOffset: ne
|
|
1252
1251
|
}),
|
|
@@ -1254,10 +1253,10 @@ const gi = (e) => ({
|
|
|
1254
1253
|
};
|
|
1255
1254
|
}
|
|
1256
1255
|
});
|
|
1257
|
-
function
|
|
1258
|
-
return (e ? [...n.filter((i) =>
|
|
1256
|
+
function wi(e, t, n) {
|
|
1257
|
+
return (e ? [...n.filter((i) => de(i) === e), ...n.filter((i) => de(i) !== e)] : n.filter((i) => he(i) === i)).filter((i) => e ? de(i) === e || (t ? ut(i) !== i : !1) : !0);
|
|
1259
1258
|
}
|
|
1260
|
-
const
|
|
1259
|
+
const _i = function(t) {
|
|
1261
1260
|
return t === void 0 && (t = {}), {
|
|
1262
1261
|
name: "autoPlacement",
|
|
1263
1262
|
options: t,
|
|
@@ -1272,22 +1271,22 @@ const vi = function(t) {
|
|
|
1272
1271
|
} = n, h = Ce(t, n), {
|
|
1273
1272
|
crossAxis: f = !1,
|
|
1274
1273
|
alignment: g,
|
|
1275
|
-
allowedPlacements: b =
|
|
1274
|
+
allowedPlacements: b = yn,
|
|
1276
1275
|
autoAlignment: E = !0
|
|
1277
|
-
} = h, S = Lt(h,
|
|
1276
|
+
} = h, S = Lt(h, gi), w = g !== void 0 || b === yn ? wi(g || null, E, b) : b, _ = await Vt(n, S), O = ((r = c.autoPlacement) == null ? void 0 : r.index) || 0, y = w[O];
|
|
1278
1277
|
if (y == null)
|
|
1279
1278
|
return {};
|
|
1280
|
-
const m =
|
|
1279
|
+
const m = Un(y, s, await (u.isRTL == null ? void 0 : u.isRTL(d.floating)));
|
|
1281
1280
|
if (a !== y)
|
|
1282
1281
|
return {
|
|
1283
1282
|
reset: {
|
|
1284
|
-
placement:
|
|
1283
|
+
placement: w[0]
|
|
1285
1284
|
}
|
|
1286
1285
|
};
|
|
1287
|
-
const R = [
|
|
1286
|
+
const R = [_[he(y)], _[m[0]], _[m[1]]], D = [...((i = c.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
1288
1287
|
placement: y,
|
|
1289
1288
|
overflows: R
|
|
1290
|
-
}], K =
|
|
1289
|
+
}], K = w[O + 1];
|
|
1291
1290
|
if (K)
|
|
1292
1291
|
return {
|
|
1293
1292
|
data: {
|
|
@@ -1299,10 +1298,10 @@ const vi = function(t) {
|
|
|
1299
1298
|
}
|
|
1300
1299
|
};
|
|
1301
1300
|
const W = D.map((A) => {
|
|
1302
|
-
const F =
|
|
1301
|
+
const F = de(A.placement);
|
|
1303
1302
|
return [A.placement, F && f ? (
|
|
1304
1303
|
// Check along the mainAxis and main crossAxis side.
|
|
1305
|
-
A.overflows.slice(0, 2).reduce((L,
|
|
1304
|
+
A.overflows.slice(0, 2).reduce((L, V) => L + V, 0)
|
|
1306
1305
|
) : (
|
|
1307
1306
|
// Check only the mainAxis.
|
|
1308
1307
|
A.overflows[0]
|
|
@@ -1311,7 +1310,7 @@ const vi = function(t) {
|
|
|
1311
1310
|
0,
|
|
1312
1311
|
// Aligned placements should not check their opposite crossAxis
|
|
1313
1312
|
// side.
|
|
1314
|
-
|
|
1313
|
+
de(A[0]) ? 2 : 3
|
|
1315
1314
|
).every((F) => F <= 0))[0]) == null ? void 0 : o[0]) || W[0][0];
|
|
1316
1315
|
return $ !== a ? {
|
|
1317
1316
|
data: {
|
|
@@ -1324,7 +1323,7 @@ const vi = function(t) {
|
|
|
1324
1323
|
} : {};
|
|
1325
1324
|
}
|
|
1326
1325
|
};
|
|
1327
|
-
},
|
|
1326
|
+
}, Ei = function(t) {
|
|
1328
1327
|
return t === void 0 && (t = {}), {
|
|
1329
1328
|
name: "flip",
|
|
1330
1329
|
options: t,
|
|
@@ -1343,16 +1342,16 @@ const vi = function(t) {
|
|
|
1343
1342
|
fallbackPlacements: b,
|
|
1344
1343
|
fallbackStrategy: E = "bestFit",
|
|
1345
1344
|
fallbackAxisSideDirection: S = "none",
|
|
1346
|
-
flipAlignment:
|
|
1347
|
-
} = h,
|
|
1345
|
+
flipAlignment: w = !0
|
|
1346
|
+
} = h, _ = Lt(h, mi);
|
|
1348
1347
|
if ((r = s.arrow) != null && r.alignmentOffset)
|
|
1349
1348
|
return {};
|
|
1350
|
-
const O =
|
|
1351
|
-
!b && K && D.push(...
|
|
1352
|
-
const W = [a, ...D], X = await
|
|
1349
|
+
const O = he(o), y = Be(a), m = he(a) === a, R = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), D = b || (m || !w ? [ft(a)] : fi(a)), K = S !== "none";
|
|
1350
|
+
!b && K && D.push(...hi(a, w, S, R));
|
|
1351
|
+
const W = [a, ...D], X = await Vt(n, _), $ = [];
|
|
1353
1352
|
let A = ((i = s.flip) == null ? void 0 : i.overflows) || [];
|
|
1354
1353
|
if (f && $.push(X[O]), g) {
|
|
1355
|
-
const N =
|
|
1354
|
+
const N = Un(o, c, R);
|
|
1356
1355
|
$.push(X[N[0]], X[N[1]]);
|
|
1357
1356
|
}
|
|
1358
1357
|
if (A = [...A, {
|
|
@@ -1371,38 +1370,38 @@ const vi = function(t) {
|
|
|
1371
1370
|
placement: ne
|
|
1372
1371
|
}
|
|
1373
1372
|
};
|
|
1374
|
-
let
|
|
1375
|
-
if (!
|
|
1373
|
+
let fe = (L = A.filter((Q) => Q.overflows[0] <= 0).sort((Q, Y) => Q.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
1374
|
+
if (!fe)
|
|
1376
1375
|
switch (E) {
|
|
1377
1376
|
case "bestFit": {
|
|
1378
|
-
var
|
|
1379
|
-
const Q = (
|
|
1377
|
+
var V;
|
|
1378
|
+
const Q = (V = A.filter((Y) => {
|
|
1380
1379
|
if (K) {
|
|
1381
|
-
const re =
|
|
1380
|
+
const re = Be(Y.placement);
|
|
1382
1381
|
return re === y || // Create a bias to the `y` side axis due to horizontal
|
|
1383
1382
|
// reading directions favoring greater width.
|
|
1384
1383
|
re === "y";
|
|
1385
1384
|
}
|
|
1386
1385
|
return !0;
|
|
1387
|
-
}).map((Y) => [Y.placement, Y.overflows.filter((re) => re > 0).reduce((re,
|
|
1388
|
-
Q && (
|
|
1386
|
+
}).map((Y) => [Y.placement, Y.overflows.filter((re) => re > 0).reduce((re, et) => re + et, 0)]).sort((Y, re) => Y[1] - re[1])[0]) == null ? void 0 : V[0];
|
|
1387
|
+
Q && (fe = Q);
|
|
1389
1388
|
break;
|
|
1390
1389
|
}
|
|
1391
1390
|
case "initialPlacement":
|
|
1392
|
-
|
|
1391
|
+
fe = a;
|
|
1393
1392
|
break;
|
|
1394
1393
|
}
|
|
1395
|
-
if (o !==
|
|
1394
|
+
if (o !== fe)
|
|
1396
1395
|
return {
|
|
1397
1396
|
reset: {
|
|
1398
|
-
placement:
|
|
1397
|
+
placement: fe
|
|
1399
1398
|
}
|
|
1400
1399
|
};
|
|
1401
1400
|
}
|
|
1402
1401
|
return {};
|
|
1403
1402
|
}
|
|
1404
1403
|
};
|
|
1405
|
-
},
|
|
1404
|
+
}, xi = function(t) {
|
|
1406
1405
|
return t === void 0 && (t = {}), {
|
|
1407
1406
|
name: "shift",
|
|
1408
1407
|
options: t,
|
|
@@ -1415,43 +1414,43 @@ const vi = function(t) {
|
|
|
1415
1414
|
mainAxis: c = !0,
|
|
1416
1415
|
crossAxis: a = !1,
|
|
1417
1416
|
limiter: u = {
|
|
1418
|
-
fn: (
|
|
1417
|
+
fn: (_) => {
|
|
1419
1418
|
let {
|
|
1420
1419
|
x: O,
|
|
1421
1420
|
y
|
|
1422
|
-
} =
|
|
1421
|
+
} = _;
|
|
1423
1422
|
return {
|
|
1424
1423
|
x: O,
|
|
1425
1424
|
y
|
|
1426
1425
|
};
|
|
1427
1426
|
}
|
|
1428
1427
|
}
|
|
1429
|
-
} = s, d = Lt(s,
|
|
1428
|
+
} = s, d = Lt(s, vi), h = {
|
|
1430
1429
|
x: r,
|
|
1431
1430
|
y: i
|
|
1432
|
-
}, f = await
|
|
1431
|
+
}, f = await Vt(n, d), g = Be(he(o)), b = Ht(g);
|
|
1433
1432
|
let E = h[b], S = h[g];
|
|
1434
1433
|
if (c) {
|
|
1435
|
-
const
|
|
1436
|
-
E =
|
|
1434
|
+
const _ = b === "y" ? "top" : "left", O = b === "y" ? "bottom" : "right", y = E + f[_], m = E - f[O];
|
|
1435
|
+
E = At(y, E, m);
|
|
1437
1436
|
}
|
|
1438
1437
|
if (a) {
|
|
1439
|
-
const
|
|
1440
|
-
S =
|
|
1438
|
+
const _ = g === "y" ? "top" : "left", O = g === "y" ? "bottom" : "right", y = S + f[_], m = S - f[O];
|
|
1439
|
+
S = At(y, S, m);
|
|
1441
1440
|
}
|
|
1442
|
-
const
|
|
1441
|
+
const w = u.fn(J({}, n, {
|
|
1443
1442
|
[b]: E,
|
|
1444
1443
|
[g]: S
|
|
1445
1444
|
}));
|
|
1446
|
-
return
|
|
1445
|
+
return J({}, w, {
|
|
1447
1446
|
data: {
|
|
1448
|
-
x:
|
|
1449
|
-
y:
|
|
1447
|
+
x: w.x - r,
|
|
1448
|
+
y: w.y - i
|
|
1450
1449
|
}
|
|
1451
1450
|
});
|
|
1452
1451
|
}
|
|
1453
1452
|
};
|
|
1454
|
-
},
|
|
1453
|
+
}, Si = function(t) {
|
|
1455
1454
|
return t === void 0 && (t = {}), {
|
|
1456
1455
|
options: t,
|
|
1457
1456
|
fn(n) {
|
|
@@ -1468,22 +1467,22 @@ const vi = function(t) {
|
|
|
1468
1467
|
} = Ce(t, n), h = {
|
|
1469
1468
|
x: r,
|
|
1470
1469
|
y: i
|
|
1471
|
-
}, f =
|
|
1470
|
+
}, f = Be(o), g = Ht(f);
|
|
1472
1471
|
let b = h[g], E = h[f];
|
|
1473
|
-
const S = Ce(a, n),
|
|
1472
|
+
const S = Ce(a, n), w = typeof S == "number" ? {
|
|
1474
1473
|
mainAxis: S,
|
|
1475
1474
|
crossAxis: 0
|
|
1476
|
-
} :
|
|
1475
|
+
} : J({
|
|
1477
1476
|
mainAxis: 0,
|
|
1478
1477
|
crossAxis: 0
|
|
1479
1478
|
}, S);
|
|
1480
1479
|
if (u) {
|
|
1481
|
-
const y = g === "y" ? "height" : "width", m = s.reference[g] - s.floating[y] +
|
|
1480
|
+
const y = g === "y" ? "height" : "width", m = s.reference[g] - s.floating[y] + w.mainAxis, R = s.reference[g] + s.reference[y] - w.mainAxis;
|
|
1482
1481
|
b < m ? b = m : b > R && (b = R);
|
|
1483
1482
|
}
|
|
1484
1483
|
if (d) {
|
|
1485
|
-
var
|
|
1486
|
-
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(
|
|
1484
|
+
var _, O;
|
|
1485
|
+
const y = g === "y" ? "width" : "height", m = ["top", "left"].includes(he(o)), R = s.reference[f] - s.floating[y] + (m && ((_ = c.offset) == null ? void 0 : _[f]) || 0) + (m ? 0 : w.crossAxis), D = s.reference[f] + s.reference[y] + (m ? 0 : ((O = c.offset) == null ? void 0 : O[f]) || 0) - (m ? w.crossAxis : 0);
|
|
1487
1486
|
E < R ? E = R : E > D && (E = D);
|
|
1488
1487
|
}
|
|
1489
1488
|
return {
|
|
@@ -1493,30 +1492,33 @@ const vi = function(t) {
|
|
|
1493
1492
|
}
|
|
1494
1493
|
};
|
|
1495
1494
|
};
|
|
1495
|
+
function pt() {
|
|
1496
|
+
return typeof window < "u";
|
|
1497
|
+
}
|
|
1496
1498
|
function Ye(e) {
|
|
1497
|
-
return
|
|
1499
|
+
return zn(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1498
1500
|
}
|
|
1499
1501
|
function G(e) {
|
|
1500
1502
|
var t;
|
|
1501
1503
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1502
1504
|
}
|
|
1503
|
-
function
|
|
1505
|
+
function ue(e) {
|
|
1504
1506
|
var t;
|
|
1505
|
-
return (t = (
|
|
1507
|
+
return (t = (zn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1506
1508
|
}
|
|
1507
|
-
function
|
|
1508
|
-
return e instanceof Node || e instanceof G(e).Node;
|
|
1509
|
+
function zn(e) {
|
|
1510
|
+
return pt() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
1509
1511
|
}
|
|
1510
1512
|
function ie(e) {
|
|
1511
|
-
return e instanceof Element || e instanceof G(e).Element;
|
|
1513
|
+
return pt() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
1512
1514
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return e instanceof HTMLElement || e instanceof G(e).HTMLElement;
|
|
1515
|
+
function ce(e) {
|
|
1516
|
+
return pt() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
1515
1517
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1518
|
+
function _n(e) {
|
|
1519
|
+
return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
1518
1520
|
}
|
|
1519
|
-
function
|
|
1521
|
+
function Ze(e) {
|
|
1520
1522
|
const {
|
|
1521
1523
|
overflow: t,
|
|
1522
1524
|
overflowX: n,
|
|
@@ -1525,10 +1527,10 @@ function Qe(e) {
|
|
|
1525
1527
|
} = oe(e);
|
|
1526
1528
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
|
|
1527
1529
|
}
|
|
1528
|
-
function
|
|
1530
|
+
function Oi(e) {
|
|
1529
1531
|
return ["table", "td", "th"].includes(Ye(e));
|
|
1530
1532
|
}
|
|
1531
|
-
function
|
|
1533
|
+
function gt(e) {
|
|
1532
1534
|
return [":popover-open", ":modal"].some((t) => {
|
|
1533
1535
|
try {
|
|
1534
1536
|
return e.matches(t);
|
|
@@ -1541,12 +1543,12 @@ function Nt(e) {
|
|
|
1541
1543
|
const t = Wt(), n = ie(e) ? oe(e) : e;
|
|
1542
1544
|
return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1543
1545
|
}
|
|
1544
|
-
function
|
|
1546
|
+
function Ri(e) {
|
|
1545
1547
|
let t = be(e);
|
|
1546
|
-
for (;
|
|
1548
|
+
for (; ce(t) && !Ve(t); ) {
|
|
1547
1549
|
if (Nt(t))
|
|
1548
1550
|
return t;
|
|
1549
|
-
if (
|
|
1551
|
+
if (gt(t))
|
|
1550
1552
|
return null;
|
|
1551
1553
|
t = be(t);
|
|
1552
1554
|
}
|
|
@@ -1555,13 +1557,13 @@ function Ei(e) {
|
|
|
1555
1557
|
function Wt() {
|
|
1556
1558
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1557
1559
|
}
|
|
1558
|
-
function
|
|
1560
|
+
function Ve(e) {
|
|
1559
1561
|
return ["html", "body", "#document"].includes(Ye(e));
|
|
1560
1562
|
}
|
|
1561
1563
|
function oe(e) {
|
|
1562
1564
|
return G(e).getComputedStyle(e);
|
|
1563
1565
|
}
|
|
1564
|
-
function
|
|
1566
|
+
function mt(e) {
|
|
1565
1567
|
return ie(e) ? {
|
|
1566
1568
|
scrollLeft: e.scrollLeft,
|
|
1567
1569
|
scrollTop: e.scrollTop
|
|
@@ -1577,25 +1579,32 @@ function be(e) {
|
|
|
1577
1579
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1578
1580
|
e.assignedSlot || // DOM Element detected.
|
|
1579
1581
|
e.parentNode || // ShadowRoot detected.
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
+
_n(e) && e.host || // Fallback.
|
|
1583
|
+
ue(e)
|
|
1582
1584
|
);
|
|
1583
|
-
return
|
|
1585
|
+
return _n(t) ? t.host : t;
|
|
1584
1586
|
}
|
|
1585
|
-
function
|
|
1587
|
+
function Jn(e) {
|
|
1586
1588
|
const t = be(e);
|
|
1587
|
-
return
|
|
1589
|
+
return Ve(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && Ze(t) ? t : Jn(t);
|
|
1588
1590
|
}
|
|
1589
|
-
function
|
|
1591
|
+
function Xe(e, t, n) {
|
|
1590
1592
|
var r;
|
|
1591
1593
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1592
|
-
const i =
|
|
1593
|
-
|
|
1594
|
+
const i = Jn(e), o = i === ((r = e.ownerDocument) == null ? void 0 : r.body), s = G(i);
|
|
1595
|
+
if (o) {
|
|
1596
|
+
const c = Pt(s);
|
|
1597
|
+
return t.concat(s, s.visualViewport || [], Ze(i) ? i : [], c && n ? Xe(c) : []);
|
|
1598
|
+
}
|
|
1599
|
+
return t.concat(i, Xe(i, [], n));
|
|
1594
1600
|
}
|
|
1595
|
-
function
|
|
1601
|
+
function Pt(e) {
|
|
1602
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1603
|
+
}
|
|
1604
|
+
function Kn(e) {
|
|
1596
1605
|
const t = oe(e);
|
|
1597
1606
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1598
|
-
const i =
|
|
1607
|
+
const i = ce(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = at(n) !== o || at(r) !== s;
|
|
1599
1608
|
return c && (n = o, r = s), {
|
|
1600
1609
|
width: n,
|
|
1601
1610
|
height: r,
|
|
@@ -1607,43 +1616,43 @@ function Yt(e) {
|
|
|
1607
1616
|
}
|
|
1608
1617
|
function De(e) {
|
|
1609
1618
|
const t = Yt(e);
|
|
1610
|
-
if (!
|
|
1611
|
-
return
|
|
1619
|
+
if (!ce(t))
|
|
1620
|
+
return le(1);
|
|
1612
1621
|
const n = t.getBoundingClientRect(), {
|
|
1613
1622
|
width: r,
|
|
1614
1623
|
height: i,
|
|
1615
1624
|
$: o
|
|
1616
|
-
} =
|
|
1625
|
+
} = Kn(t);
|
|
1617
1626
|
let s = (o ? at(n.width) : n.width) / r, c = (o ? at(n.height) : n.height) / i;
|
|
1618
1627
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
1619
1628
|
x: s,
|
|
1620
1629
|
y: c
|
|
1621
1630
|
};
|
|
1622
1631
|
}
|
|
1623
|
-
const
|
|
1624
|
-
function
|
|
1632
|
+
const Ti = /* @__PURE__ */ le(0);
|
|
1633
|
+
function Xn(e) {
|
|
1625
1634
|
const t = G(e);
|
|
1626
|
-
return !Wt() || !t.visualViewport ?
|
|
1635
|
+
return !Wt() || !t.visualViewport ? Ti : {
|
|
1627
1636
|
x: t.visualViewport.offsetLeft,
|
|
1628
1637
|
y: t.visualViewport.offsetTop
|
|
1629
1638
|
};
|
|
1630
1639
|
}
|
|
1631
|
-
function
|
|
1640
|
+
function Ci(e, t, n) {
|
|
1632
1641
|
return t === void 0 && (t = !1), !n || t && n !== G(e) ? !1 : t;
|
|
1633
1642
|
}
|
|
1634
1643
|
function Ae(e, t, n, r) {
|
|
1635
1644
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1636
1645
|
const i = e.getBoundingClientRect(), o = Yt(e);
|
|
1637
|
-
let s =
|
|
1646
|
+
let s = le(1);
|
|
1638
1647
|
t && (r ? ie(r) && (s = De(r)) : s = De(e));
|
|
1639
|
-
const c =
|
|
1648
|
+
const c = Ci(o, n, r) ? Xn(o) : le(0);
|
|
1640
1649
|
let a = (i.left + c.x) / s.x, u = (i.top + c.y) / s.y, d = i.width / s.x, h = i.height / s.y;
|
|
1641
1650
|
if (o) {
|
|
1642
1651
|
const f = G(o), g = r && ie(r) ? G(r) : r;
|
|
1643
|
-
let b = f, E = b
|
|
1652
|
+
let b = f, E = Pt(b);
|
|
1644
1653
|
for (; E && r && g !== b; ) {
|
|
1645
|
-
const S = De(E),
|
|
1646
|
-
a *= S.x, u *= S.y, d *= S.x, h *= S.y, a += O, u += y, b = G(E), E = b
|
|
1654
|
+
const S = De(E), w = E.getBoundingClientRect(), _ = oe(E), O = w.left + (E.clientLeft + parseFloat(_.paddingLeft)) * S.x, y = w.top + (E.clientTop + parseFloat(_.paddingTop)) * S.y;
|
|
1655
|
+
a *= S.x, u *= S.y, d *= S.x, h *= S.y, a += O, u += y, b = G(E), E = Pt(b);
|
|
1647
1656
|
}
|
|
1648
1657
|
}
|
|
1649
1658
|
return dt({
|
|
@@ -1653,41 +1662,54 @@ function Ae(e, t, n, r) {
|
|
|
1653
1662
|
y: u
|
|
1654
1663
|
});
|
|
1655
1664
|
}
|
|
1656
|
-
function
|
|
1665
|
+
function Ut(e, t) {
|
|
1666
|
+
const n = mt(e).scrollLeft;
|
|
1667
|
+
return t ? t.left + n : Ae(ue(e)).left + n;
|
|
1668
|
+
}
|
|
1669
|
+
function Gn(e, t, n) {
|
|
1670
|
+
n === void 0 && (n = !1);
|
|
1671
|
+
const r = e.getBoundingClientRect(), i = r.left + t.scrollLeft - (n ? 0 : (
|
|
1672
|
+
// RTL <body> scrollbar.
|
|
1673
|
+
Ut(e, r)
|
|
1674
|
+
)), o = r.top + t.scrollTop;
|
|
1675
|
+
return {
|
|
1676
|
+
x: i,
|
|
1677
|
+
y: o
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
function Ai(e) {
|
|
1657
1681
|
let {
|
|
1658
1682
|
elements: t,
|
|
1659
1683
|
rect: n,
|
|
1660
1684
|
offsetParent: r,
|
|
1661
1685
|
strategy: i
|
|
1662
1686
|
} = e;
|
|
1663
|
-
const o = i === "fixed", s =
|
|
1687
|
+
const o = i === "fixed", s = ue(r), c = t ? gt(t.floating) : !1;
|
|
1664
1688
|
if (r === s || c && o)
|
|
1665
1689
|
return n;
|
|
1666
1690
|
let a = {
|
|
1667
1691
|
scrollLeft: 0,
|
|
1668
1692
|
scrollTop: 0
|
|
1669
|
-
}, u =
|
|
1670
|
-
const d =
|
|
1671
|
-
if ((h || !h && !o) && ((Ye(r) !== "body" ||
|
|
1672
|
-
const
|
|
1673
|
-
u = De(r), d.x =
|
|
1693
|
+
}, u = le(1);
|
|
1694
|
+
const d = le(0), h = ce(r);
|
|
1695
|
+
if ((h || !h && !o) && ((Ye(r) !== "body" || Ze(s)) && (a = mt(r)), ce(r))) {
|
|
1696
|
+
const g = Ae(r);
|
|
1697
|
+
u = De(r), d.x = g.x + r.clientLeft, d.y = g.y + r.clientTop;
|
|
1674
1698
|
}
|
|
1699
|
+
const f = s && !h && !o ? Gn(s, a, !0) : le(0);
|
|
1675
1700
|
return {
|
|
1676
1701
|
width: n.width * u.x,
|
|
1677
1702
|
height: n.height * u.y,
|
|
1678
|
-
x: n.x * u.x - a.scrollLeft * u.x + d.x,
|
|
1679
|
-
y: n.y * u.y - a.scrollTop * u.y + d.y
|
|
1703
|
+
x: n.x * u.x - a.scrollLeft * u.x + d.x + f.x,
|
|
1704
|
+
y: n.y * u.y - a.scrollTop * u.y + d.y + f.y
|
|
1680
1705
|
};
|
|
1681
1706
|
}
|
|
1682
|
-
function
|
|
1707
|
+
function Pi(e) {
|
|
1683
1708
|
return Array.from(e.getClientRects());
|
|
1684
1709
|
}
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
function Ti(e) {
|
|
1689
|
-
const t = de(e), n = gt(e), r = e.ownerDocument.body, i = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1690
|
-
let s = -n.scrollLeft + Jn(e);
|
|
1710
|
+
function ki(e) {
|
|
1711
|
+
const t = ue(e), n = mt(e), r = e.ownerDocument.body, i = Oe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), o = Oe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1712
|
+
let s = -n.scrollLeft + Ut(e);
|
|
1691
1713
|
const c = -n.scrollTop;
|
|
1692
1714
|
return oe(r).direction === "rtl" && (s += Oe(t.clientWidth, r.clientWidth) - i), {
|
|
1693
1715
|
width: i,
|
|
@@ -1696,8 +1718,8 @@ function Ti(e) {
|
|
|
1696
1718
|
y: c
|
|
1697
1719
|
};
|
|
1698
1720
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const n = G(e), r =
|
|
1721
|
+
function Ii(e, t) {
|
|
1722
|
+
const n = G(e), r = ue(e), i = n.visualViewport;
|
|
1701
1723
|
let o = r.clientWidth, s = r.clientHeight, c = 0, a = 0;
|
|
1702
1724
|
if (i) {
|
|
1703
1725
|
o = i.width, s = i.height;
|
|
@@ -1711,8 +1733,8 @@ function Ci(e, t) {
|
|
|
1711
1733
|
y: a
|
|
1712
1734
|
};
|
|
1713
1735
|
}
|
|
1714
|
-
function
|
|
1715
|
-
const n = Ae(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o =
|
|
1736
|
+
function Mi(e, t) {
|
|
1737
|
+
const n = Ae(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = ce(e) ? De(e) : le(1), s = e.clientWidth * o.x, c = e.clientHeight * o.y, a = i * o.x, u = r * o.y;
|
|
1716
1738
|
return {
|
|
1717
1739
|
width: s,
|
|
1718
1740
|
height: c,
|
|
@@ -1720,51 +1742,53 @@ function Ai(e, t) {
|
|
|
1720
1742
|
y: u
|
|
1721
1743
|
};
|
|
1722
1744
|
}
|
|
1723
|
-
function
|
|
1745
|
+
function En(e, t, n) {
|
|
1724
1746
|
let r;
|
|
1725
1747
|
if (t === "viewport")
|
|
1726
|
-
r =
|
|
1748
|
+
r = Ii(e, n);
|
|
1727
1749
|
else if (t === "document")
|
|
1728
|
-
r =
|
|
1750
|
+
r = ki(ue(e));
|
|
1729
1751
|
else if (ie(t))
|
|
1730
|
-
r =
|
|
1752
|
+
r = Mi(t, n);
|
|
1731
1753
|
else {
|
|
1732
|
-
const i =
|
|
1733
|
-
r =
|
|
1754
|
+
const i = Xn(e);
|
|
1755
|
+
r = {
|
|
1734
1756
|
x: t.x - i.x,
|
|
1735
|
-
y: t.y - i.y
|
|
1736
|
-
|
|
1757
|
+
y: t.y - i.y,
|
|
1758
|
+
width: t.width,
|
|
1759
|
+
height: t.height
|
|
1760
|
+
};
|
|
1737
1761
|
}
|
|
1738
1762
|
return dt(r);
|
|
1739
1763
|
}
|
|
1740
|
-
function
|
|
1764
|
+
function Zn(e, t) {
|
|
1741
1765
|
const n = be(e);
|
|
1742
|
-
return n === t || !ie(n) ||
|
|
1766
|
+
return n === t || !ie(n) || Ve(n) ? !1 : oe(n).position === "fixed" || Zn(n, t);
|
|
1743
1767
|
}
|
|
1744
|
-
function
|
|
1768
|
+
function Fi(e, t) {
|
|
1745
1769
|
const n = t.get(e);
|
|
1746
1770
|
if (n)
|
|
1747
1771
|
return n;
|
|
1748
|
-
let r =
|
|
1772
|
+
let r = Xe(e, [], !1).filter((c) => ie(c) && Ye(c) !== "body"), i = null;
|
|
1749
1773
|
const o = oe(e).position === "fixed";
|
|
1750
1774
|
let s = o ? be(e) : e;
|
|
1751
|
-
for (; ie(s) && !
|
|
1775
|
+
for (; ie(s) && !Ve(s); ) {
|
|
1752
1776
|
const c = oe(s), a = Nt(s);
|
|
1753
|
-
!a && c.position === "fixed" && (i = null), (o ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) ||
|
|
1777
|
+
!a && c.position === "fixed" && (i = null), (o ? !a && !i : !a && c.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || Ze(s) && !a && Zn(e, s)) ? r = r.filter((d) => d !== s) : i = c, s = be(s);
|
|
1754
1778
|
}
|
|
1755
1779
|
return t.set(e, r), r;
|
|
1756
1780
|
}
|
|
1757
|
-
function
|
|
1781
|
+
function Li(e) {
|
|
1758
1782
|
let {
|
|
1759
1783
|
element: t,
|
|
1760
1784
|
boundary: n,
|
|
1761
1785
|
rootBoundary: r,
|
|
1762
1786
|
strategy: i
|
|
1763
1787
|
} = e;
|
|
1764
|
-
const s = [...n === "clippingAncestors" ?
|
|
1765
|
-
const h =
|
|
1788
|
+
const s = [...n === "clippingAncestors" ? gt(t) ? [] : Fi(t, this._c) : [].concat(n), r], c = s[0], a = s.reduce((u, d) => {
|
|
1789
|
+
const h = En(t, d, i);
|
|
1766
1790
|
return u.top = Oe(h.top, u.top), u.right = $e(h.right, u.right), u.bottom = $e(h.bottom, u.bottom), u.left = Oe(h.left, u.left), u;
|
|
1767
|
-
},
|
|
1791
|
+
}, En(t, c, i));
|
|
1768
1792
|
return {
|
|
1769
1793
|
width: a.right - a.left,
|
|
1770
1794
|
height: a.bottom - a.top,
|
|
@@ -1772,32 +1796,32 @@ function ki(e) {
|
|
|
1772
1796
|
y: a.top
|
|
1773
1797
|
};
|
|
1774
1798
|
}
|
|
1775
|
-
function
|
|
1799
|
+
function Di(e) {
|
|
1776
1800
|
const {
|
|
1777
1801
|
width: t,
|
|
1778
1802
|
height: n
|
|
1779
|
-
} =
|
|
1803
|
+
} = Kn(e);
|
|
1780
1804
|
return {
|
|
1781
1805
|
width: t,
|
|
1782
1806
|
height: n
|
|
1783
1807
|
};
|
|
1784
1808
|
}
|
|
1785
|
-
function
|
|
1786
|
-
const r =
|
|
1809
|
+
function ji(e, t, n) {
|
|
1810
|
+
const r = ce(t), i = ue(t), o = n === "fixed", s = Ae(e, !0, o, t);
|
|
1787
1811
|
let c = {
|
|
1788
1812
|
scrollLeft: 0,
|
|
1789
1813
|
scrollTop: 0
|
|
1790
1814
|
};
|
|
1791
|
-
const a =
|
|
1815
|
+
const a = le(0);
|
|
1792
1816
|
if (r || !r && !o)
|
|
1793
|
-
if ((Ye(t) !== "body" ||
|
|
1794
|
-
const
|
|
1795
|
-
a.x =
|
|
1796
|
-
} else i && (a.x =
|
|
1797
|
-
const u = s.left + c.scrollLeft - a.x,
|
|
1817
|
+
if ((Ye(t) !== "body" || Ze(i)) && (c = mt(t)), r) {
|
|
1818
|
+
const f = Ae(t, !0, o, t);
|
|
1819
|
+
a.x = f.x + t.clientLeft, a.y = f.y + t.clientTop;
|
|
1820
|
+
} else i && (a.x = Ut(i));
|
|
1821
|
+
const u = i && !r && !o ? Gn(i, c) : le(0), d = s.left + c.scrollLeft - a.x - u.x, h = s.top + c.scrollTop - a.y - u.y;
|
|
1798
1822
|
return {
|
|
1799
|
-
x:
|
|
1800
|
-
y:
|
|
1823
|
+
x: d,
|
|
1824
|
+
y: h,
|
|
1801
1825
|
width: s.width,
|
|
1802
1826
|
height: s.height
|
|
1803
1827
|
};
|
|
@@ -1805,31 +1829,36 @@ function Mi(e, t, n) {
|
|
|
1805
1829
|
function Tt(e) {
|
|
1806
1830
|
return oe(e).position === "static";
|
|
1807
1831
|
}
|
|
1808
|
-
function
|
|
1809
|
-
|
|
1832
|
+
function xn(e, t) {
|
|
1833
|
+
if (!ce(e) || oe(e).position === "fixed")
|
|
1834
|
+
return null;
|
|
1835
|
+
if (t)
|
|
1836
|
+
return t(e);
|
|
1837
|
+
let n = e.offsetParent;
|
|
1838
|
+
return ue(e) === n && (n = n.ownerDocument.body), n;
|
|
1810
1839
|
}
|
|
1811
|
-
function
|
|
1840
|
+
function Qn(e, t) {
|
|
1812
1841
|
const n = G(e);
|
|
1813
|
-
if (
|
|
1842
|
+
if (gt(e))
|
|
1814
1843
|
return n;
|
|
1815
|
-
if (!
|
|
1844
|
+
if (!ce(e)) {
|
|
1816
1845
|
let i = be(e);
|
|
1817
|
-
for (; i && !
|
|
1846
|
+
for (; i && !Ve(i); ) {
|
|
1818
1847
|
if (ie(i) && !Tt(i))
|
|
1819
1848
|
return i;
|
|
1820
1849
|
i = be(i);
|
|
1821
1850
|
}
|
|
1822
1851
|
return n;
|
|
1823
1852
|
}
|
|
1824
|
-
let r =
|
|
1825
|
-
for (; r &&
|
|
1826
|
-
r =
|
|
1827
|
-
return r &&
|
|
1853
|
+
let r = xn(e, t);
|
|
1854
|
+
for (; r && Oi(r) && Tt(r); )
|
|
1855
|
+
r = xn(r, t);
|
|
1856
|
+
return r && Ve(r) && Tt(r) && !Nt(r) ? n : r || Ri(e) || n;
|
|
1828
1857
|
}
|
|
1829
|
-
const
|
|
1830
|
-
const n = this.getOffsetParent ||
|
|
1858
|
+
const Hi = async function(t) {
|
|
1859
|
+
const n = this.getOffsetParent || Qn, r = this.getDimensions, i = await r(t.floating);
|
|
1831
1860
|
return {
|
|
1832
|
-
reference:
|
|
1861
|
+
reference: ji(t.reference, await n(t.floating), t.strategy),
|
|
1833
1862
|
floating: {
|
|
1834
1863
|
x: 0,
|
|
1835
1864
|
y: 0,
|
|
@@ -1838,24 +1867,24 @@ const Fi = async function(t) {
|
|
|
1838
1867
|
}
|
|
1839
1868
|
};
|
|
1840
1869
|
};
|
|
1841
|
-
function
|
|
1870
|
+
function $i(e) {
|
|
1842
1871
|
return oe(e).direction === "rtl";
|
|
1843
1872
|
}
|
|
1844
|
-
const
|
|
1845
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1846
|
-
getDocumentElement:
|
|
1847
|
-
getClippingRect:
|
|
1848
|
-
getOffsetParent:
|
|
1849
|
-
getElementRects:
|
|
1850
|
-
getClientRects:
|
|
1851
|
-
getDimensions:
|
|
1873
|
+
const Bi = {
|
|
1874
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ai,
|
|
1875
|
+
getDocumentElement: ue,
|
|
1876
|
+
getClippingRect: Li,
|
|
1877
|
+
getOffsetParent: Qn,
|
|
1878
|
+
getElementRects: Hi,
|
|
1879
|
+
getClientRects: Pi,
|
|
1880
|
+
getDimensions: Di,
|
|
1852
1881
|
getScale: De,
|
|
1853
1882
|
isElement: ie,
|
|
1854
|
-
isRTL:
|
|
1883
|
+
isRTL: $i
|
|
1855
1884
|
};
|
|
1856
|
-
function
|
|
1885
|
+
function Vi(e, t) {
|
|
1857
1886
|
let n = null, r;
|
|
1858
|
-
const i =
|
|
1887
|
+
const i = ue(e);
|
|
1859
1888
|
function o() {
|
|
1860
1889
|
var c;
|
|
1861
1890
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -1870,7 +1899,7 @@ function ji(e, t) {
|
|
|
1870
1899
|
} = e.getBoundingClientRect();
|
|
1871
1900
|
if (c || t(), !h || !f)
|
|
1872
1901
|
return;
|
|
1873
|
-
const g = lt(d), b = lt(i.clientWidth - (u + h)), E = lt(i.clientHeight - (d + f)), S = lt(u),
|
|
1902
|
+
const g = lt(d), b = lt(i.clientWidth - (u + h)), E = lt(i.clientHeight - (d + f)), S = lt(u), _ = {
|
|
1874
1903
|
rootMargin: -g + "px " + -b + "px " + -E + "px " + -S + "px",
|
|
1875
1904
|
threshold: Oe(0, $e(1, a)) || 1
|
|
1876
1905
|
};
|
|
@@ -1887,18 +1916,18 @@ function ji(e, t) {
|
|
|
1887
1916
|
O = !1;
|
|
1888
1917
|
}
|
|
1889
1918
|
try {
|
|
1890
|
-
n = new IntersectionObserver(y,
|
|
1919
|
+
n = new IntersectionObserver(y, J({}, _, {
|
|
1891
1920
|
// Handle <iframe>s
|
|
1892
1921
|
root: i.ownerDocument
|
|
1893
1922
|
}));
|
|
1894
1923
|
} catch {
|
|
1895
|
-
n = new IntersectionObserver(y,
|
|
1924
|
+
n = new IntersectionObserver(y, _);
|
|
1896
1925
|
}
|
|
1897
1926
|
n.observe(e);
|
|
1898
1927
|
}
|
|
1899
1928
|
return s(!0), o;
|
|
1900
1929
|
}
|
|
1901
|
-
function
|
|
1930
|
+
function Ni(e, t, n, r) {
|
|
1902
1931
|
r === void 0 && (r = {});
|
|
1903
1932
|
const {
|
|
1904
1933
|
ancestorScroll: i = !0,
|
|
@@ -1906,17 +1935,17 @@ function Hi(e, t, n, r) {
|
|
|
1906
1935
|
elementResize: s = typeof ResizeObserver == "function",
|
|
1907
1936
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
1908
1937
|
animationFrame: a = !1
|
|
1909
|
-
} = r, u = Yt(e), d = i || o ? [...u ?
|
|
1910
|
-
d.forEach((
|
|
1911
|
-
i &&
|
|
1938
|
+
} = r, u = Yt(e), d = i || o ? [...u ? Xe(u) : [], ...Xe(t)] : [];
|
|
1939
|
+
d.forEach((w) => {
|
|
1940
|
+
i && w.addEventListener("scroll", n, {
|
|
1912
1941
|
passive: !0
|
|
1913
|
-
}), o &&
|
|
1942
|
+
}), o && w.addEventListener("resize", n);
|
|
1914
1943
|
});
|
|
1915
|
-
const h = u && c ?
|
|
1944
|
+
const h = u && c ? Vi(u, n) : null;
|
|
1916
1945
|
let f = -1, g = null;
|
|
1917
|
-
s && (g = new ResizeObserver((
|
|
1918
|
-
let [
|
|
1919
|
-
|
|
1946
|
+
s && (g = new ResizeObserver((w) => {
|
|
1947
|
+
let [_] = w;
|
|
1948
|
+
_ && _.target === u && g && (g.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
1920
1949
|
var O;
|
|
1921
1950
|
(O = g) == null || O.observe(t);
|
|
1922
1951
|
})), n();
|
|
@@ -1924,49 +1953,49 @@ function Hi(e, t, n, r) {
|
|
|
1924
1953
|
let b, E = a ? Ae(e) : null;
|
|
1925
1954
|
a && S();
|
|
1926
1955
|
function S() {
|
|
1927
|
-
const
|
|
1928
|
-
E && (
|
|
1956
|
+
const w = Ae(e);
|
|
1957
|
+
E && (w.x !== E.x || w.y !== E.y || w.width !== E.width || w.height !== E.height) && n(), E = w, b = requestAnimationFrame(S);
|
|
1929
1958
|
}
|
|
1930
1959
|
return n(), () => {
|
|
1931
|
-
var
|
|
1932
|
-
d.forEach((
|
|
1933
|
-
i &&
|
|
1934
|
-
}), h == null || h(), (
|
|
1960
|
+
var w;
|
|
1961
|
+
d.forEach((_) => {
|
|
1962
|
+
i && _.removeEventListener("scroll", n), o && _.removeEventListener("resize", n);
|
|
1963
|
+
}), h == null || h(), (w = g) == null || w.disconnect(), g = null, a && cancelAnimationFrame(b);
|
|
1935
1964
|
};
|
|
1936
1965
|
}
|
|
1937
|
-
const
|
|
1938
|
-
const r = /* @__PURE__ */ new Map(), i =
|
|
1939
|
-
platform:
|
|
1940
|
-
}, n), o =
|
|
1966
|
+
const Wi = _i, Yi = xi, Ui = Ei, qi = yi, zi = Si, Ji = (e, t, n) => {
|
|
1967
|
+
const r = /* @__PURE__ */ new Map(), i = J({
|
|
1968
|
+
platform: Bi
|
|
1969
|
+
}, n), o = J({}, i.platform, {
|
|
1941
1970
|
_c: r
|
|
1942
1971
|
});
|
|
1943
|
-
return
|
|
1972
|
+
return bi(e, t, J({}, i, {
|
|
1944
1973
|
platform: o
|
|
1945
1974
|
}));
|
|
1946
1975
|
};
|
|
1947
|
-
function
|
|
1976
|
+
function Ki(e) {
|
|
1948
1977
|
e.cleanup && e.cleanup();
|
|
1949
1978
|
const t = e._getResolvedAttachToOptions();
|
|
1950
1979
|
let n = t.element;
|
|
1951
|
-
const r =
|
|
1952
|
-
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup =
|
|
1980
|
+
const r = to(t, e), i = Wn(t);
|
|
1981
|
+
return i && (n = document.body, e.shepherdElementComponent.getElement().classList.add("shepherd-centered")), e.cleanup = Ni(n, e.el, () => {
|
|
1953
1982
|
if (!e.el) {
|
|
1954
1983
|
e.cleanup == null || e.cleanup();
|
|
1955
1984
|
return;
|
|
1956
1985
|
}
|
|
1957
|
-
|
|
1986
|
+
Zi(n, e, r, i);
|
|
1958
1987
|
}), e.target = t.element, r;
|
|
1959
1988
|
}
|
|
1960
|
-
function
|
|
1989
|
+
function Xi(e, t) {
|
|
1961
1990
|
return {
|
|
1962
1991
|
floatingUIOptions: Dt(e.floatingUIOptions || {}, t.floatingUIOptions || {})
|
|
1963
1992
|
};
|
|
1964
1993
|
}
|
|
1965
|
-
function
|
|
1994
|
+
function Gi(e) {
|
|
1966
1995
|
e.cleanup && e.cleanup(), e.cleanup = null;
|
|
1967
1996
|
}
|
|
1968
|
-
function
|
|
1969
|
-
return
|
|
1997
|
+
function Zi(e, t, n, r) {
|
|
1998
|
+
return Ji(e, t.el, n).then(Qi(t, r)).then((i) => new Promise((o) => {
|
|
1970
1999
|
setTimeout(() => o(i), 300);
|
|
1971
2000
|
})).then((i) => {
|
|
1972
2001
|
i != null && i.el && i.el.focus({
|
|
@@ -1974,7 +2003,7 @@ function Ji(e, t, n, r) {
|
|
|
1974
2003
|
});
|
|
1975
2004
|
});
|
|
1976
2005
|
}
|
|
1977
|
-
function
|
|
2006
|
+
function Qi(e, t) {
|
|
1978
2007
|
return ({
|
|
1979
2008
|
x: n,
|
|
1980
2009
|
y: r,
|
|
@@ -1989,9 +2018,9 @@ function Ki(e, t) {
|
|
|
1989
2018
|
position: "absolute",
|
|
1990
2019
|
left: `${n}px`,
|
|
1991
2020
|
top: `${r}px`
|
|
1992
|
-
}), e.el.dataset.popperPlacement = i,
|
|
2021
|
+
}), e.el.dataset.popperPlacement = i, eo(e.el, o)), e);
|
|
1993
2022
|
}
|
|
1994
|
-
function
|
|
2023
|
+
function eo(e, t) {
|
|
1995
2024
|
const n = e.querySelector(".shepherd-arrow");
|
|
1996
2025
|
if (He(n) && t.arrow) {
|
|
1997
2026
|
const {
|
|
@@ -2004,63 +2033,69 @@ function Xi(e, t) {
|
|
|
2004
2033
|
});
|
|
2005
2034
|
}
|
|
2006
2035
|
}
|
|
2007
|
-
function
|
|
2036
|
+
function to(e, t) {
|
|
2008
2037
|
var n, r, i;
|
|
2009
2038
|
const o = {
|
|
2010
2039
|
strategy: "absolute"
|
|
2011
2040
|
};
|
|
2012
2041
|
o.middleware = [];
|
|
2013
|
-
const s =
|
|
2042
|
+
const s = no(t), c = Wn(e), a = (n = e.on) == null ? void 0 : n.includes("auto"), u = (e == null || (r = e.on) == null ? void 0 : r.includes("-start")) || (e == null || (i = e.on) == null ? void 0 : i.includes("-end"));
|
|
2014
2043
|
if (!c) {
|
|
2015
2044
|
if (a) {
|
|
2016
2045
|
var d;
|
|
2017
|
-
o.middleware.push(
|
|
2046
|
+
o.middleware.push(Wi({
|
|
2018
2047
|
crossAxis: !0,
|
|
2019
2048
|
alignment: u ? e == null || (d = e.on) == null ? void 0 : d.split("-").pop() : null
|
|
2020
2049
|
}));
|
|
2021
2050
|
} else
|
|
2022
|
-
o.middleware.push(
|
|
2023
|
-
o.middleware.push(
|
|
2051
|
+
o.middleware.push(Ui());
|
|
2052
|
+
if (o.middleware.push(
|
|
2024
2053
|
// Replicate PopperJS default behavior.
|
|
2025
|
-
|
|
2026
|
-
limiter:
|
|
2054
|
+
Yi({
|
|
2055
|
+
limiter: zi(),
|
|
2027
2056
|
crossAxis: !0
|
|
2028
2057
|
})
|
|
2029
|
-
), s
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2058
|
+
), s) {
|
|
2059
|
+
const h = typeof t.options.arrow == "object" ? t.options.arrow : {
|
|
2060
|
+
padding: 4
|
|
2061
|
+
};
|
|
2062
|
+
o.middleware.push(qi({
|
|
2063
|
+
element: s,
|
|
2064
|
+
padding: u ? h.padding : 0
|
|
2065
|
+
}));
|
|
2066
|
+
}
|
|
2067
|
+
a || (o.placement = e.on);
|
|
2033
2068
|
}
|
|
2034
2069
|
return Dt(o, t.options.floatingUIOptions || {});
|
|
2035
2070
|
}
|
|
2036
|
-
function
|
|
2071
|
+
function no(e) {
|
|
2037
2072
|
return e.options.arrow && e.el ? e.el.querySelector(".shepherd-arrow") : !1;
|
|
2038
2073
|
}
|
|
2039
2074
|
function Z() {
|
|
2040
2075
|
}
|
|
2041
|
-
function
|
|
2076
|
+
function ro(e, t) {
|
|
2042
2077
|
for (const n in t) e[n] = t[n];
|
|
2043
2078
|
return (
|
|
2044
2079
|
/** @type {T & S} */
|
|
2045
2080
|
e
|
|
2046
2081
|
);
|
|
2047
2082
|
}
|
|
2048
|
-
function
|
|
2083
|
+
function er(e) {
|
|
2049
2084
|
return e();
|
|
2050
2085
|
}
|
|
2051
|
-
function
|
|
2086
|
+
function Sn() {
|
|
2052
2087
|
return /* @__PURE__ */ Object.create(null);
|
|
2053
2088
|
}
|
|
2054
|
-
function
|
|
2055
|
-
e.forEach(
|
|
2089
|
+
function Qe(e) {
|
|
2090
|
+
e.forEach(er);
|
|
2056
2091
|
}
|
|
2057
|
-
function
|
|
2092
|
+
function qt(e) {
|
|
2058
2093
|
return typeof e == "function";
|
|
2059
2094
|
}
|
|
2060
|
-
function
|
|
2095
|
+
function pe(e, t) {
|
|
2061
2096
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
2062
2097
|
}
|
|
2063
|
-
function
|
|
2098
|
+
function io(e) {
|
|
2064
2099
|
return Object.keys(e).length === 0;
|
|
2065
2100
|
}
|
|
2066
2101
|
function Ne(e, t) {
|
|
@@ -2072,101 +2107,101 @@ function se(e, t, n) {
|
|
|
2072
2107
|
function te(e) {
|
|
2073
2108
|
e.parentNode && e.parentNode.removeChild(e);
|
|
2074
2109
|
}
|
|
2075
|
-
function
|
|
2110
|
+
function oo(e, t) {
|
|
2076
2111
|
for (let n = 0; n < e.length; n += 1)
|
|
2077
2112
|
e[n] && e[n].d(t);
|
|
2078
2113
|
}
|
|
2079
|
-
function
|
|
2114
|
+
function ae(e) {
|
|
2080
2115
|
return document.createElement(e);
|
|
2081
2116
|
}
|
|
2082
|
-
function
|
|
2117
|
+
function On(e) {
|
|
2083
2118
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
2084
2119
|
}
|
|
2085
|
-
function
|
|
2120
|
+
function tr(e) {
|
|
2086
2121
|
return document.createTextNode(e);
|
|
2087
2122
|
}
|
|
2088
2123
|
function ht() {
|
|
2089
|
-
return
|
|
2124
|
+
return tr(" ");
|
|
2090
2125
|
}
|
|
2091
|
-
function
|
|
2092
|
-
return
|
|
2126
|
+
function so() {
|
|
2127
|
+
return tr("");
|
|
2093
2128
|
}
|
|
2094
|
-
function
|
|
2129
|
+
function vt(e, t, n, r) {
|
|
2095
2130
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
2096
2131
|
}
|
|
2097
|
-
function
|
|
2132
|
+
function M(e, t, n) {
|
|
2098
2133
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
2099
2134
|
}
|
|
2100
|
-
const
|
|
2101
|
-
function
|
|
2135
|
+
const lo = ["width", "height"];
|
|
2136
|
+
function Rn(e, t) {
|
|
2102
2137
|
const n = Object.getOwnPropertyDescriptors(e.__proto__);
|
|
2103
2138
|
for (const r in t)
|
|
2104
|
-
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set &&
|
|
2139
|
+
t[r] == null ? e.removeAttribute(r) : r === "style" ? e.style.cssText = t[r] : r === "__value" ? e.value = e[r] = t[r] : n[r] && n[r].set && lo.indexOf(r) === -1 ? e[r] = t[r] : M(e, r, t[r]);
|
|
2105
2140
|
}
|
|
2106
|
-
function
|
|
2141
|
+
function co(e) {
|
|
2107
2142
|
return Array.from(e.childNodes);
|
|
2108
2143
|
}
|
|
2109
2144
|
function Me(e, t, n) {
|
|
2110
2145
|
e.classList.toggle(t, !!n);
|
|
2111
2146
|
}
|
|
2112
|
-
let
|
|
2113
|
-
function
|
|
2114
|
-
|
|
2147
|
+
let Ge;
|
|
2148
|
+
function Je(e) {
|
|
2149
|
+
Ge = e;
|
|
2115
2150
|
}
|
|
2116
|
-
function
|
|
2117
|
-
if (!
|
|
2118
|
-
return
|
|
2151
|
+
function nr() {
|
|
2152
|
+
if (!Ge) throw new Error("Function called outside component initialization");
|
|
2153
|
+
return Ge;
|
|
2119
2154
|
}
|
|
2120
|
-
function
|
|
2121
|
-
|
|
2155
|
+
function ao(e) {
|
|
2156
|
+
nr().$$.on_mount.push(e);
|
|
2122
2157
|
}
|
|
2123
|
-
function
|
|
2124
|
-
|
|
2158
|
+
function zt(e) {
|
|
2159
|
+
nr().$$.after_update.push(e);
|
|
2125
2160
|
}
|
|
2126
2161
|
const Le = [], We = [];
|
|
2127
2162
|
let je = [];
|
|
2128
|
-
const
|
|
2163
|
+
const Tn = [], uo = /* @__PURE__ */ Promise.resolve();
|
|
2129
2164
|
let kt = !1;
|
|
2130
|
-
function
|
|
2131
|
-
kt || (kt = !0,
|
|
2165
|
+
function fo() {
|
|
2166
|
+
kt || (kt = !0, uo.then(rr));
|
|
2132
2167
|
}
|
|
2133
2168
|
function It(e) {
|
|
2134
2169
|
je.push(e);
|
|
2135
2170
|
}
|
|
2136
2171
|
const Ct = /* @__PURE__ */ new Set();
|
|
2137
2172
|
let Fe = 0;
|
|
2138
|
-
function
|
|
2173
|
+
function rr() {
|
|
2139
2174
|
if (Fe !== 0)
|
|
2140
2175
|
return;
|
|
2141
|
-
const e =
|
|
2176
|
+
const e = Ge;
|
|
2142
2177
|
do {
|
|
2143
2178
|
try {
|
|
2144
2179
|
for (; Fe < Le.length; ) {
|
|
2145
2180
|
const t = Le[Fe];
|
|
2146
|
-
Fe++,
|
|
2181
|
+
Fe++, Je(t), ho(t.$$);
|
|
2147
2182
|
}
|
|
2148
2183
|
} catch (t) {
|
|
2149
2184
|
throw Le.length = 0, Fe = 0, t;
|
|
2150
2185
|
}
|
|
2151
|
-
for (
|
|
2186
|
+
for (Je(null), Le.length = 0, Fe = 0; We.length; ) We.pop()();
|
|
2152
2187
|
for (let t = 0; t < je.length; t += 1) {
|
|
2153
2188
|
const n = je[t];
|
|
2154
2189
|
Ct.has(n) || (Ct.add(n), n());
|
|
2155
2190
|
}
|
|
2156
2191
|
je.length = 0;
|
|
2157
2192
|
} while (Le.length);
|
|
2158
|
-
for (;
|
|
2159
|
-
|
|
2160
|
-
kt = !1, Ct.clear(),
|
|
2193
|
+
for (; Tn.length; )
|
|
2194
|
+
Tn.pop()();
|
|
2195
|
+
kt = !1, Ct.clear(), Je(e);
|
|
2161
2196
|
}
|
|
2162
|
-
function
|
|
2197
|
+
function ho(e) {
|
|
2163
2198
|
if (e.fragment !== null) {
|
|
2164
|
-
e.update(),
|
|
2199
|
+
e.update(), Qe(e.before_update);
|
|
2165
2200
|
const t = e.dirty;
|
|
2166
2201
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(It);
|
|
2167
2202
|
}
|
|
2168
2203
|
}
|
|
2169
|
-
function
|
|
2204
|
+
function po(e) {
|
|
2170
2205
|
const t = [], n = [];
|
|
2171
2206
|
je.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), je = t;
|
|
2172
2207
|
}
|
|
@@ -2181,7 +2216,7 @@ function Re() {
|
|
|
2181
2216
|
};
|
|
2182
2217
|
}
|
|
2183
2218
|
function Te() {
|
|
2184
|
-
xe.r ||
|
|
2219
|
+
xe.r || Qe(xe.c), xe = xe.p;
|
|
2185
2220
|
}
|
|
2186
2221
|
function k(e, t) {
|
|
2187
2222
|
e && e.i && (ct.delete(e), e.i(t));
|
|
@@ -2194,10 +2229,10 @@ function H(e, t, n, r) {
|
|
|
2194
2229
|
}), e.o(t);
|
|
2195
2230
|
} else r && r();
|
|
2196
2231
|
}
|
|
2197
|
-
function
|
|
2232
|
+
function Cn(e) {
|
|
2198
2233
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
2199
2234
|
}
|
|
2200
|
-
function
|
|
2235
|
+
function go(e, t) {
|
|
2201
2236
|
const n = {}, r = {}, i = {
|
|
2202
2237
|
$$scope: 1
|
|
2203
2238
|
};
|
|
@@ -2227,20 +2262,20 @@ function we(e, t, n) {
|
|
|
2227
2262
|
after_update: i
|
|
2228
2263
|
} = e.$$;
|
|
2229
2264
|
r && r.m(t, n), It(() => {
|
|
2230
|
-
const o = e.$$.on_mount.map(
|
|
2231
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
2265
|
+
const o = e.$$.on_mount.map(er).filter(qt);
|
|
2266
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Qe(o), e.$$.on_mount = [];
|
|
2232
2267
|
}), i.forEach(It);
|
|
2233
2268
|
}
|
|
2234
2269
|
function _e(e, t) {
|
|
2235
2270
|
const n = e.$$;
|
|
2236
|
-
n.fragment !== null && (
|
|
2271
|
+
n.fragment !== null && (po(n.after_update), Qe(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
2237
2272
|
}
|
|
2238
|
-
function
|
|
2239
|
-
e.$$.dirty[0] === -1 && (Le.push(e),
|
|
2273
|
+
function mo(e, t) {
|
|
2274
|
+
e.$$.dirty[0] === -1 && (Le.push(e), fo(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
2240
2275
|
}
|
|
2241
|
-
function
|
|
2242
|
-
const a =
|
|
2243
|
-
|
|
2276
|
+
function ge(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
2277
|
+
const a = Ge;
|
|
2278
|
+
Je(e);
|
|
2244
2279
|
const u = e.$$ = {
|
|
2245
2280
|
fragment: null,
|
|
2246
2281
|
ctx: [],
|
|
@@ -2248,7 +2283,7 @@ function pe(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2248
2283
|
props: o,
|
|
2249
2284
|
update: Z,
|
|
2250
2285
|
not_equal: i,
|
|
2251
|
-
bound:
|
|
2286
|
+
bound: Sn(),
|
|
2252
2287
|
// lifecycle
|
|
2253
2288
|
on_mount: [],
|
|
2254
2289
|
on_destroy: [],
|
|
@@ -2257,7 +2292,7 @@ function pe(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2257
2292
|
after_update: [],
|
|
2258
2293
|
context: new Map(t.context || (a ? a.$$.context : [])),
|
|
2259
2294
|
// everything else
|
|
2260
|
-
callbacks:
|
|
2295
|
+
callbacks: Sn(),
|
|
2261
2296
|
dirty: c,
|
|
2262
2297
|
skip_bound: !1,
|
|
2263
2298
|
root: t.target || a.$$.root
|
|
@@ -2266,18 +2301,18 @@ function pe(e, t, n, r, i, o, s = null, c = [-1]) {
|
|
|
2266
2301
|
let d = !1;
|
|
2267
2302
|
if (u.ctx = n ? n(e, t.props || {}, (h, f, ...g) => {
|
|
2268
2303
|
const b = g.length ? g[0] : f;
|
|
2269
|
-
return u.ctx && i(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d &&
|
|
2270
|
-
}) : [], u.update(), d = !0,
|
|
2304
|
+
return u.ctx && i(u.ctx[h], u.ctx[h] = b) && (!u.skip_bound && u.bound[h] && u.bound[h](b), d && mo(e, h)), f;
|
|
2305
|
+
}) : [], u.update(), d = !0, Qe(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
2271
2306
|
if (t.hydrate) {
|
|
2272
|
-
const h =
|
|
2307
|
+
const h = co(t.target);
|
|
2273
2308
|
u.fragment && u.fragment.l(h), h.forEach(te);
|
|
2274
2309
|
} else
|
|
2275
2310
|
u.fragment && u.fragment.c();
|
|
2276
|
-
t.intro && k(e.$$.fragment), we(e, t.target, t.anchor),
|
|
2311
|
+
t.intro && k(e.$$.fragment), we(e, t.target, t.anchor), rr();
|
|
2277
2312
|
}
|
|
2278
|
-
|
|
2313
|
+
Je(a);
|
|
2279
2314
|
}
|
|
2280
|
-
class
|
|
2315
|
+
class me {
|
|
2281
2316
|
constructor() {
|
|
2282
2317
|
this.$$ = void 0, this.$$set = void 0;
|
|
2283
2318
|
}
|
|
@@ -2292,7 +2327,7 @@ class ge {
|
|
|
2292
2327
|
* @returns {() => void}
|
|
2293
2328
|
*/
|
|
2294
2329
|
$on(t, n) {
|
|
2295
|
-
if (!
|
|
2330
|
+
if (!qt(n))
|
|
2296
2331
|
return Z;
|
|
2297
2332
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
2298
2333
|
return r.push(n), () => {
|
|
@@ -2305,30 +2340,30 @@ class ge {
|
|
|
2305
2340
|
* @returns {void}
|
|
2306
2341
|
*/
|
|
2307
2342
|
$set(t) {
|
|
2308
|
-
this.$$set && !
|
|
2343
|
+
this.$$set && !io(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
2309
2344
|
}
|
|
2310
2345
|
}
|
|
2311
|
-
const
|
|
2346
|
+
const vo = "4";
|
|
2312
2347
|
typeof window < "u" && (window.__svelte || (window.__svelte = {
|
|
2313
2348
|
v: /* @__PURE__ */ new Set()
|
|
2314
|
-
})).v.add(
|
|
2315
|
-
function
|
|
2349
|
+
})).v.add(vo);
|
|
2350
|
+
function bo(e) {
|
|
2316
2351
|
let t, n, r, i, o;
|
|
2317
2352
|
return {
|
|
2318
2353
|
c() {
|
|
2319
|
-
t =
|
|
2354
|
+
t = ae("button"), M(t, "aria-label", n = /*label*/
|
|
2320
2355
|
e[3] ? (
|
|
2321
2356
|
/*label*/
|
|
2322
2357
|
e[3]
|
|
2323
|
-
) : null),
|
|
2358
|
+
) : null), M(t, "class", r = `${/*classes*/
|
|
2324
2359
|
e[1] || ""} shepherd-button ${/*secondary*/
|
|
2325
2360
|
e[4] ? "shepherd-button-secondary" : ""}`), t.disabled = /*disabled*/
|
|
2326
|
-
e[2],
|
|
2361
|
+
e[2], M(t, "tabindex", "0"), M(t, "type", "button");
|
|
2327
2362
|
},
|
|
2328
2363
|
m(s, c) {
|
|
2329
2364
|
se(s, t, c), t.innerHTML = /*text*/
|
|
2330
|
-
e[5], i || (o =
|
|
2331
|
-
|
|
2365
|
+
e[5], i || (o = vt(t, "click", function() {
|
|
2366
|
+
qt(
|
|
2332
2367
|
/*action*/
|
|
2333
2368
|
e[0]
|
|
2334
2369
|
) && e[0].apply(this, arguments);
|
|
@@ -2342,10 +2377,10 @@ function po(e) {
|
|
|
2342
2377
|
e[3] ? (
|
|
2343
2378
|
/*label*/
|
|
2344
2379
|
e[3]
|
|
2345
|
-
) : null) &&
|
|
2380
|
+
) : null) && M(t, "aria-label", n), c & /*classes, secondary*/
|
|
2346
2381
|
18 && r !== (r = `${/*classes*/
|
|
2347
2382
|
e[1] || ""} shepherd-button ${/*secondary*/
|
|
2348
|
-
e[4] ? "shepherd-button-secondary" : ""}`) &&
|
|
2383
|
+
e[4] ? "shepherd-button-secondary" : ""}`) && M(t, "class", r), c & /*disabled*/
|
|
2349
2384
|
4 && (t.disabled = /*disabled*/
|
|
2350
2385
|
e[2]);
|
|
2351
2386
|
},
|
|
@@ -2356,13 +2391,13 @@ function po(e) {
|
|
|
2356
2391
|
}
|
|
2357
2392
|
};
|
|
2358
2393
|
}
|
|
2359
|
-
function
|
|
2394
|
+
function yo(e, t, n) {
|
|
2360
2395
|
let {
|
|
2361
2396
|
config: r,
|
|
2362
2397
|
step: i
|
|
2363
2398
|
} = t, o, s, c, a, u, d;
|
|
2364
2399
|
function h(f) {
|
|
2365
|
-
return
|
|
2400
|
+
return ve(f) ? f = f.call(i) : f;
|
|
2366
2401
|
}
|
|
2367
2402
|
return e.$$set = (f) => {
|
|
2368
2403
|
"config" in f && n(6, r = f.config), "step" in f && n(7, i = f.step);
|
|
@@ -2371,25 +2406,25 @@ function go(e, t, n) {
|
|
|
2371
2406
|
192 && (n(0, o = r.action ? r.action.bind(i.tour) : null), n(1, s = r.classes), n(2, c = r.disabled ? h(r.disabled) : !1), n(3, a = r.label ? h(r.label) : null), n(4, u = r.secondary), n(5, d = r.text ? h(r.text) : null));
|
|
2372
2407
|
}, [o, s, c, a, u, d, r, i];
|
|
2373
2408
|
}
|
|
2374
|
-
class
|
|
2409
|
+
class wo extends me {
|
|
2375
2410
|
constructor(t) {
|
|
2376
|
-
super(),
|
|
2411
|
+
super(), ge(this, t, yo, bo, pe, {
|
|
2377
2412
|
config: 6,
|
|
2378
2413
|
step: 7
|
|
2379
2414
|
});
|
|
2380
2415
|
}
|
|
2381
2416
|
}
|
|
2382
|
-
function
|
|
2417
|
+
function An(e, t, n) {
|
|
2383
2418
|
const r = e.slice();
|
|
2384
2419
|
return r[2] = t[n], r;
|
|
2385
2420
|
}
|
|
2386
|
-
function
|
|
2387
|
-
let t, n, r =
|
|
2421
|
+
function Pn(e) {
|
|
2422
|
+
let t, n, r = Cn(
|
|
2388
2423
|
/*buttons*/
|
|
2389
2424
|
e[1]
|
|
2390
2425
|
), i = [];
|
|
2391
2426
|
for (let s = 0; s < r.length; s += 1)
|
|
2392
|
-
i[s] =
|
|
2427
|
+
i[s] = kn(An(e, r, s));
|
|
2393
2428
|
const o = (s) => H(i[s], 1, 1, () => {
|
|
2394
2429
|
i[s] = null;
|
|
2395
2430
|
});
|
|
@@ -2397,7 +2432,7 @@ function Tn(e) {
|
|
|
2397
2432
|
c() {
|
|
2398
2433
|
for (let s = 0; s < i.length; s += 1)
|
|
2399
2434
|
i[s].c();
|
|
2400
|
-
t =
|
|
2435
|
+
t = so();
|
|
2401
2436
|
},
|
|
2402
2437
|
m(s, c) {
|
|
2403
2438
|
for (let a = 0; a < i.length; a += 1)
|
|
@@ -2407,14 +2442,14 @@ function Tn(e) {
|
|
|
2407
2442
|
p(s, c) {
|
|
2408
2443
|
if (c & /*buttons, step*/
|
|
2409
2444
|
3) {
|
|
2410
|
-
r =
|
|
2445
|
+
r = Cn(
|
|
2411
2446
|
/*buttons*/
|
|
2412
2447
|
s[1]
|
|
2413
2448
|
);
|
|
2414
2449
|
let a;
|
|
2415
2450
|
for (a = 0; a < r.length; a += 1) {
|
|
2416
|
-
const u =
|
|
2417
|
-
i[a] ? (i[a].p(u, c), k(i[a], 1)) : (i[a] =
|
|
2451
|
+
const u = An(s, r, a);
|
|
2452
|
+
i[a] ? (i[a].p(u, c), k(i[a], 1)) : (i[a] = kn(u), i[a].c(), k(i[a], 1), i[a].m(t.parentNode, t));
|
|
2418
2453
|
}
|
|
2419
2454
|
for (Re(), a = r.length; a < i.length; a += 1)
|
|
2420
2455
|
o(a);
|
|
@@ -2435,13 +2470,13 @@ function Tn(e) {
|
|
|
2435
2470
|
n = !1;
|
|
2436
2471
|
},
|
|
2437
2472
|
d(s) {
|
|
2438
|
-
s && te(t),
|
|
2473
|
+
s && te(t), oo(i, s);
|
|
2439
2474
|
}
|
|
2440
2475
|
};
|
|
2441
2476
|
}
|
|
2442
|
-
function
|
|
2477
|
+
function kn(e) {
|
|
2443
2478
|
let t, n;
|
|
2444
|
-
return t = new
|
|
2479
|
+
return t = new wo({
|
|
2445
2480
|
props: {
|
|
2446
2481
|
config: (
|
|
2447
2482
|
/*config*/
|
|
@@ -2478,14 +2513,14 @@ function Cn(e) {
|
|
|
2478
2513
|
}
|
|
2479
2514
|
};
|
|
2480
2515
|
}
|
|
2481
|
-
function
|
|
2516
|
+
function _o(e) {
|
|
2482
2517
|
let t, n, r = (
|
|
2483
2518
|
/*buttons*/
|
|
2484
|
-
e[1] &&
|
|
2519
|
+
e[1] && Pn(e)
|
|
2485
2520
|
);
|
|
2486
2521
|
return {
|
|
2487
2522
|
c() {
|
|
2488
|
-
t =
|
|
2523
|
+
t = ae("footer"), r && r.c(), M(t, "class", "shepherd-footer");
|
|
2489
2524
|
},
|
|
2490
2525
|
m(i, o) {
|
|
2491
2526
|
se(i, t, o), r && r.m(t, null), n = !0;
|
|
@@ -2493,7 +2528,7 @@ function vo(e) {
|
|
|
2493
2528
|
p(i, [o]) {
|
|
2494
2529
|
/*buttons*/
|
|
2495
2530
|
i[1] ? r ? (r.p(i, o), o & /*buttons*/
|
|
2496
|
-
2 && k(r, 1)) : (r =
|
|
2531
|
+
2 && k(r, 1)) : (r = Pn(i), r.c(), k(r, 1), r.m(t, null)) : r && (Re(), H(r, 1, 1, () => {
|
|
2497
2532
|
r = null;
|
|
2498
2533
|
}), Te());
|
|
2499
2534
|
},
|
|
@@ -2508,7 +2543,7 @@ function vo(e) {
|
|
|
2508
2543
|
}
|
|
2509
2544
|
};
|
|
2510
2545
|
}
|
|
2511
|
-
function
|
|
2546
|
+
function Eo(e, t, n) {
|
|
2512
2547
|
let r, {
|
|
2513
2548
|
step: i
|
|
2514
2549
|
} = t;
|
|
@@ -2519,25 +2554,25 @@ function bo(e, t, n) {
|
|
|
2519
2554
|
1 && n(1, r = i.options.buttons);
|
|
2520
2555
|
}, [i, r];
|
|
2521
2556
|
}
|
|
2522
|
-
class
|
|
2557
|
+
class xo extends me {
|
|
2523
2558
|
constructor(t) {
|
|
2524
|
-
super(),
|
|
2559
|
+
super(), ge(this, t, Eo, _o, pe, {
|
|
2525
2560
|
step: 0
|
|
2526
2561
|
});
|
|
2527
2562
|
}
|
|
2528
2563
|
}
|
|
2529
|
-
function
|
|
2564
|
+
function So(e) {
|
|
2530
2565
|
let t, n, r, i, o;
|
|
2531
2566
|
return {
|
|
2532
2567
|
c() {
|
|
2533
|
-
t =
|
|
2568
|
+
t = ae("button"), n = ae("span"), n.textContent = "×", M(n, "aria-hidden", "true"), M(t, "aria-label", r = /*cancelIcon*/
|
|
2534
2569
|
e[0].label ? (
|
|
2535
2570
|
/*cancelIcon*/
|
|
2536
2571
|
e[0].label
|
|
2537
|
-
) : "Close Tour"),
|
|
2572
|
+
) : "Close Tour"), M(t, "class", "shepherd-cancel-icon"), M(t, "type", "button");
|
|
2538
2573
|
},
|
|
2539
2574
|
m(s, c) {
|
|
2540
|
-
se(s, t, c), Ne(t, n), i || (o =
|
|
2575
|
+
se(s, t, c), Ne(t, n), i || (o = vt(
|
|
2541
2576
|
t,
|
|
2542
2577
|
"click",
|
|
2543
2578
|
/*handleCancelClick*/
|
|
@@ -2550,7 +2585,7 @@ function wo(e) {
|
|
|
2550
2585
|
s[0].label ? (
|
|
2551
2586
|
/*cancelIcon*/
|
|
2552
2587
|
s[0].label
|
|
2553
|
-
) : "Close Tour") &&
|
|
2588
|
+
) : "Close Tour") && M(t, "aria-label", r);
|
|
2554
2589
|
},
|
|
2555
2590
|
i: Z,
|
|
2556
2591
|
o: Z,
|
|
@@ -2559,7 +2594,7 @@ function wo(e) {
|
|
|
2559
2594
|
}
|
|
2560
2595
|
};
|
|
2561
2596
|
}
|
|
2562
|
-
function
|
|
2597
|
+
function Oo(e, t, n) {
|
|
2563
2598
|
let {
|
|
2564
2599
|
cancelIcon: r,
|
|
2565
2600
|
step: i
|
|
@@ -2571,31 +2606,31 @@ function _o(e, t, n) {
|
|
|
2571
2606
|
"cancelIcon" in s && n(0, r = s.cancelIcon), "step" in s && n(2, i = s.step);
|
|
2572
2607
|
}, [r, o, i];
|
|
2573
2608
|
}
|
|
2574
|
-
class
|
|
2609
|
+
class Ro extends me {
|
|
2575
2610
|
constructor(t) {
|
|
2576
|
-
super(),
|
|
2611
|
+
super(), ge(this, t, Oo, So, pe, {
|
|
2577
2612
|
cancelIcon: 0,
|
|
2578
2613
|
step: 2
|
|
2579
2614
|
});
|
|
2580
2615
|
}
|
|
2581
2616
|
}
|
|
2582
|
-
function
|
|
2617
|
+
function To(e) {
|
|
2583
2618
|
let t;
|
|
2584
2619
|
return {
|
|
2585
2620
|
c() {
|
|
2586
|
-
t =
|
|
2621
|
+
t = ae("h3"), M(
|
|
2587
2622
|
t,
|
|
2588
2623
|
"id",
|
|
2589
2624
|
/*labelId*/
|
|
2590
2625
|
e[1]
|
|
2591
|
-
),
|
|
2626
|
+
), M(t, "class", "shepherd-title");
|
|
2592
2627
|
},
|
|
2593
2628
|
m(n, r) {
|
|
2594
2629
|
se(n, t, r), e[3](t);
|
|
2595
2630
|
},
|
|
2596
2631
|
p(n, [r]) {
|
|
2597
2632
|
r & /*labelId*/
|
|
2598
|
-
2 &&
|
|
2633
|
+
2 && M(
|
|
2599
2634
|
t,
|
|
2600
2635
|
"id",
|
|
2601
2636
|
/*labelId*/
|
|
@@ -2609,14 +2644,14 @@ function xo(e) {
|
|
|
2609
2644
|
}
|
|
2610
2645
|
};
|
|
2611
2646
|
}
|
|
2612
|
-
function
|
|
2647
|
+
function Co(e, t, n) {
|
|
2613
2648
|
let {
|
|
2614
2649
|
labelId: r,
|
|
2615
2650
|
element: i,
|
|
2616
2651
|
title: o
|
|
2617
2652
|
} = t;
|
|
2618
|
-
|
|
2619
|
-
|
|
2653
|
+
zt(() => {
|
|
2654
|
+
ve(o) && n(2, o = o()), n(0, i.innerHTML = o, i);
|
|
2620
2655
|
});
|
|
2621
2656
|
function s(c) {
|
|
2622
2657
|
We[c ? "unshift" : "push"](() => {
|
|
@@ -2627,18 +2662,18 @@ function So(e, t, n) {
|
|
|
2627
2662
|
"labelId" in c && n(1, r = c.labelId), "element" in c && n(0, i = c.element), "title" in c && n(2, o = c.title);
|
|
2628
2663
|
}, [i, r, o, s];
|
|
2629
2664
|
}
|
|
2630
|
-
class
|
|
2665
|
+
class Ao extends me {
|
|
2631
2666
|
constructor(t) {
|
|
2632
|
-
super(),
|
|
2667
|
+
super(), ge(this, t, Co, To, pe, {
|
|
2633
2668
|
labelId: 1,
|
|
2634
2669
|
element: 0,
|
|
2635
2670
|
title: 2
|
|
2636
2671
|
});
|
|
2637
2672
|
}
|
|
2638
2673
|
}
|
|
2639
|
-
function
|
|
2674
|
+
function In(e) {
|
|
2640
2675
|
let t, n;
|
|
2641
|
-
return t = new
|
|
2676
|
+
return t = new Ao({
|
|
2642
2677
|
props: {
|
|
2643
2678
|
labelId: (
|
|
2644
2679
|
/*labelId*/
|
|
@@ -2675,9 +2710,9 @@ function An(e) {
|
|
|
2675
2710
|
}
|
|
2676
2711
|
};
|
|
2677
2712
|
}
|
|
2678
|
-
function
|
|
2713
|
+
function Mn(e) {
|
|
2679
2714
|
let t, n;
|
|
2680
|
-
return t = new
|
|
2715
|
+
return t = new Ro({
|
|
2681
2716
|
props: {
|
|
2682
2717
|
cancelIcon: (
|
|
2683
2718
|
/*cancelIcon*/
|
|
@@ -2714,18 +2749,18 @@ function Pn(e) {
|
|
|
2714
2749
|
}
|
|
2715
2750
|
};
|
|
2716
2751
|
}
|
|
2717
|
-
function
|
|
2752
|
+
function Po(e) {
|
|
2718
2753
|
let t, n, r, i = (
|
|
2719
2754
|
/*title*/
|
|
2720
|
-
e[2] &&
|
|
2755
|
+
e[2] && In(e)
|
|
2721
2756
|
), o = (
|
|
2722
2757
|
/*cancelIcon*/
|
|
2723
2758
|
e[3] && /*cancelIcon*/
|
|
2724
|
-
e[3].enabled &&
|
|
2759
|
+
e[3].enabled && Mn(e)
|
|
2725
2760
|
);
|
|
2726
2761
|
return {
|
|
2727
2762
|
c() {
|
|
2728
|
-
t =
|
|
2763
|
+
t = ae("header"), i && i.c(), n = ht(), o && o.c(), M(t, "class", "shepherd-header");
|
|
2729
2764
|
},
|
|
2730
2765
|
m(s, c) {
|
|
2731
2766
|
se(s, t, c), i && i.m(t, null), Ne(t, n), o && o.m(t, null), r = !0;
|
|
@@ -2733,12 +2768,12 @@ function Ro(e) {
|
|
|
2733
2768
|
p(s, [c]) {
|
|
2734
2769
|
/*title*/
|
|
2735
2770
|
s[2] ? i ? (i.p(s, c), c & /*title*/
|
|
2736
|
-
4 && k(i, 1)) : (i =
|
|
2771
|
+
4 && k(i, 1)) : (i = In(s), i.c(), k(i, 1), i.m(t, n)) : i && (Re(), H(i, 1, 1, () => {
|
|
2737
2772
|
i = null;
|
|
2738
2773
|
}), Te()), /*cancelIcon*/
|
|
2739
2774
|
s[3] && /*cancelIcon*/
|
|
2740
2775
|
s[3].enabled ? o ? (o.p(s, c), c & /*cancelIcon*/
|
|
2741
|
-
8 && k(o, 1)) : (o =
|
|
2776
|
+
8 && k(o, 1)) : (o = Mn(s), o.c(), k(o, 1), o.m(t, null)) : o && (Re(), H(o, 1, 1, () => {
|
|
2742
2777
|
o = null;
|
|
2743
2778
|
}), Te());
|
|
2744
2779
|
},
|
|
@@ -2753,7 +2788,7 @@ function Ro(e) {
|
|
|
2753
2788
|
}
|
|
2754
2789
|
};
|
|
2755
2790
|
}
|
|
2756
|
-
function
|
|
2791
|
+
function ko(e, t, n) {
|
|
2757
2792
|
let {
|
|
2758
2793
|
labelId: r,
|
|
2759
2794
|
step: i
|
|
@@ -2765,19 +2800,19 @@ function To(e, t, n) {
|
|
|
2765
2800
|
2 && (n(2, o = i.options.title), n(3, s = i.options.cancelIcon));
|
|
2766
2801
|
}, [r, i, o, s];
|
|
2767
2802
|
}
|
|
2768
|
-
class
|
|
2803
|
+
class Io extends me {
|
|
2769
2804
|
constructor(t) {
|
|
2770
|
-
super(),
|
|
2805
|
+
super(), ge(this, t, ko, Po, pe, {
|
|
2771
2806
|
labelId: 0,
|
|
2772
2807
|
step: 1
|
|
2773
2808
|
});
|
|
2774
2809
|
}
|
|
2775
2810
|
}
|
|
2776
|
-
function
|
|
2811
|
+
function Mo(e) {
|
|
2777
2812
|
let t;
|
|
2778
2813
|
return {
|
|
2779
2814
|
c() {
|
|
2780
|
-
t =
|
|
2815
|
+
t = ae("div"), M(t, "class", "shepherd-text"), M(
|
|
2781
2816
|
t,
|
|
2782
2817
|
"id",
|
|
2783
2818
|
/*descriptionId*/
|
|
@@ -2789,7 +2824,7 @@ function Ao(e) {
|
|
|
2789
2824
|
},
|
|
2790
2825
|
p(n, [r]) {
|
|
2791
2826
|
r & /*descriptionId*/
|
|
2792
|
-
2 &&
|
|
2827
|
+
2 && M(
|
|
2793
2828
|
t,
|
|
2794
2829
|
"id",
|
|
2795
2830
|
/*descriptionId*/
|
|
@@ -2803,17 +2838,17 @@ function Ao(e) {
|
|
|
2803
2838
|
}
|
|
2804
2839
|
};
|
|
2805
2840
|
}
|
|
2806
|
-
function
|
|
2841
|
+
function Fo(e, t, n) {
|
|
2807
2842
|
let {
|
|
2808
2843
|
descriptionId: r,
|
|
2809
2844
|
element: i,
|
|
2810
2845
|
step: o
|
|
2811
2846
|
} = t;
|
|
2812
|
-
|
|
2847
|
+
zt(() => {
|
|
2813
2848
|
let {
|
|
2814
2849
|
text: c
|
|
2815
2850
|
} = o.options;
|
|
2816
|
-
|
|
2851
|
+
ve(c) && (c = c.call(o)), He(c) ? i.appendChild(c) : n(0, i.innerHTML = c, i);
|
|
2817
2852
|
});
|
|
2818
2853
|
function s(c) {
|
|
2819
2854
|
We[c ? "unshift" : "push"](() => {
|
|
@@ -2824,18 +2859,18 @@ function Po(e, t, n) {
|
|
|
2824
2859
|
"descriptionId" in c && n(1, r = c.descriptionId), "element" in c && n(0, i = c.element), "step" in c && n(2, o = c.step);
|
|
2825
2860
|
}, [i, r, o, s];
|
|
2826
2861
|
}
|
|
2827
|
-
class
|
|
2862
|
+
class Lo extends me {
|
|
2828
2863
|
constructor(t) {
|
|
2829
|
-
super(),
|
|
2864
|
+
super(), ge(this, t, Fo, Mo, pe, {
|
|
2830
2865
|
descriptionId: 1,
|
|
2831
2866
|
element: 0,
|
|
2832
2867
|
step: 2
|
|
2833
2868
|
});
|
|
2834
2869
|
}
|
|
2835
2870
|
}
|
|
2836
|
-
function
|
|
2871
|
+
function Fn(e) {
|
|
2837
2872
|
let t, n;
|
|
2838
|
-
return t = new
|
|
2873
|
+
return t = new Io({
|
|
2839
2874
|
props: {
|
|
2840
2875
|
labelId: (
|
|
2841
2876
|
/*labelId*/
|
|
@@ -2872,9 +2907,9 @@ function kn(e) {
|
|
|
2872
2907
|
}
|
|
2873
2908
|
};
|
|
2874
2909
|
}
|
|
2875
|
-
function
|
|
2910
|
+
function Ln(e) {
|
|
2876
2911
|
let t, n;
|
|
2877
|
-
return t = new
|
|
2912
|
+
return t = new Lo({
|
|
2878
2913
|
props: {
|
|
2879
2914
|
descriptionId: (
|
|
2880
2915
|
/*descriptionId*/
|
|
@@ -2911,9 +2946,9 @@ function In(e) {
|
|
|
2911
2946
|
}
|
|
2912
2947
|
};
|
|
2913
2948
|
}
|
|
2914
|
-
function
|
|
2949
|
+
function Dn(e) {
|
|
2915
2950
|
let t, n;
|
|
2916
|
-
return t = new
|
|
2951
|
+
return t = new xo({
|
|
2917
2952
|
props: {
|
|
2918
2953
|
step: (
|
|
2919
2954
|
/*step*/
|
|
@@ -2944,7 +2979,7 @@ function Mn(e) {
|
|
|
2944
2979
|
}
|
|
2945
2980
|
};
|
|
2946
2981
|
}
|
|
2947
|
-
function
|
|
2982
|
+
function Do(e) {
|
|
2948
2983
|
let t, n = !U(
|
|
2949
2984
|
/*step*/
|
|
2950
2985
|
e[2].options.title
|
|
@@ -2957,10 +2992,10 @@ function Io(e) {
|
|
|
2957
2992
|
/*step*/
|
|
2958
2993
|
e[2].options.buttons
|
|
2959
2994
|
) && /*step*/
|
|
2960
|
-
e[2].options.buttons.length, c, a = n &&
|
|
2995
|
+
e[2].options.buttons.length, c, a = n && Fn(e), u = i && Ln(e), d = s && Dn(e);
|
|
2961
2996
|
return {
|
|
2962
2997
|
c() {
|
|
2963
|
-
t =
|
|
2998
|
+
t = ae("div"), a && a.c(), r = ht(), u && u.c(), o = ht(), d && d.c(), M(t, "class", "shepherd-content");
|
|
2964
2999
|
},
|
|
2965
3000
|
m(h, f) {
|
|
2966
3001
|
se(h, t, f), a && a.m(t, null), Ne(t, r), u && u.m(t, null), Ne(t, o), d && d.m(t, null), c = !0;
|
|
@@ -2973,14 +3008,14 @@ function Io(e) {
|
|
|
2973
3008
|
) || /*step*/
|
|
2974
3009
|
h[2].options.cancelIcon && /*step*/
|
|
2975
3010
|
h[2].options.cancelIcon.enabled), n ? a ? (a.p(h, f), f & /*step*/
|
|
2976
|
-
4 && k(a, 1)) : (a =
|
|
3011
|
+
4 && k(a, 1)) : (a = Fn(h), a.c(), k(a, 1), a.m(t, r)) : a && (Re(), H(a, 1, 1, () => {
|
|
2977
3012
|
a = null;
|
|
2978
3013
|
}), Te()), f & /*step*/
|
|
2979
3014
|
4 && (i = !U(
|
|
2980
3015
|
/*step*/
|
|
2981
3016
|
h[2].options.text
|
|
2982
3017
|
)), i ? u ? (u.p(h, f), f & /*step*/
|
|
2983
|
-
4 && k(u, 1)) : (u =
|
|
3018
|
+
4 && k(u, 1)) : (u = Ln(h), u.c(), k(u, 1), u.m(t, o)) : u && (Re(), H(u, 1, 1, () => {
|
|
2984
3019
|
u = null;
|
|
2985
3020
|
}), Te()), f & /*step*/
|
|
2986
3021
|
4 && (s = Array.isArray(
|
|
@@ -2988,7 +3023,7 @@ function Io(e) {
|
|
|
2988
3023
|
h[2].options.buttons
|
|
2989
3024
|
) && /*step*/
|
|
2990
3025
|
h[2].options.buttons.length), s ? d ? (d.p(h, f), f & /*step*/
|
|
2991
|
-
4 && k(d, 1)) : (d =
|
|
3026
|
+
4 && k(d, 1)) : (d = Dn(h), d.c(), k(d, 1), d.m(t, null)) : d && (Re(), H(d, 1, 1, () => {
|
|
2992
3027
|
d = null;
|
|
2993
3028
|
}), Te());
|
|
2994
3029
|
},
|
|
@@ -3003,7 +3038,7 @@ function Io(e) {
|
|
|
3003
3038
|
}
|
|
3004
3039
|
};
|
|
3005
3040
|
}
|
|
3006
|
-
function
|
|
3041
|
+
function jo(e, t, n) {
|
|
3007
3042
|
let {
|
|
3008
3043
|
descriptionId: r,
|
|
3009
3044
|
labelId: i,
|
|
@@ -3013,20 +3048,20 @@ function Mo(e, t, n) {
|
|
|
3013
3048
|
"descriptionId" in s && n(0, r = s.descriptionId), "labelId" in s && n(1, i = s.labelId), "step" in s && n(2, o = s.step);
|
|
3014
3049
|
}, [r, i, o];
|
|
3015
3050
|
}
|
|
3016
|
-
class
|
|
3051
|
+
class Ho extends me {
|
|
3017
3052
|
constructor(t) {
|
|
3018
|
-
super(),
|
|
3053
|
+
super(), ge(this, t, jo, Do, pe, {
|
|
3019
3054
|
descriptionId: 0,
|
|
3020
3055
|
labelId: 1,
|
|
3021
3056
|
step: 2
|
|
3022
3057
|
});
|
|
3023
3058
|
}
|
|
3024
3059
|
}
|
|
3025
|
-
function
|
|
3060
|
+
function jn(e) {
|
|
3026
3061
|
let t;
|
|
3027
3062
|
return {
|
|
3028
3063
|
c() {
|
|
3029
|
-
t =
|
|
3064
|
+
t = ae("div"), M(t, "class", "shepherd-arrow"), M(t, "data-popper-arrow", "");
|
|
3030
3065
|
},
|
|
3031
3066
|
m(n, r) {
|
|
3032
3067
|
se(n, t, r);
|
|
@@ -3036,15 +3071,15 @@ function Fn(e) {
|
|
|
3036
3071
|
}
|
|
3037
3072
|
};
|
|
3038
3073
|
}
|
|
3039
|
-
function
|
|
3074
|
+
function $o(e) {
|
|
3040
3075
|
let t, n, r, i, o, s, c, a, u = (
|
|
3041
3076
|
/*step*/
|
|
3042
3077
|
e[4].options.arrow && /*step*/
|
|
3043
3078
|
e[4].options.attachTo && /*step*/
|
|
3044
3079
|
e[4].options.attachTo.element && /*step*/
|
|
3045
|
-
e[4].options.attachTo.on &&
|
|
3080
|
+
e[4].options.attachTo.on && jn()
|
|
3046
3081
|
);
|
|
3047
|
-
r = new
|
|
3082
|
+
r = new Ho({
|
|
3048
3083
|
props: {
|
|
3049
3084
|
descriptionId: (
|
|
3050
3085
|
/*descriptionId*/
|
|
@@ -3084,10 +3119,10 @@ function Lo(e) {
|
|
|
3084
3119
|
}
|
|
3085
3120
|
], h = {};
|
|
3086
3121
|
for (let f = 0; f < d.length; f += 1)
|
|
3087
|
-
h =
|
|
3122
|
+
h = ro(h, d[f]);
|
|
3088
3123
|
return {
|
|
3089
3124
|
c() {
|
|
3090
|
-
t =
|
|
3125
|
+
t = ae("dialog"), u && u.c(), n = ht(), Pe(r.$$.fragment), Rn(t, h), Me(
|
|
3091
3126
|
t,
|
|
3092
3127
|
"shepherd-has-cancel-icon",
|
|
3093
3128
|
/*hasCancelIcon*/
|
|
@@ -3100,7 +3135,7 @@ function Lo(e) {
|
|
|
3100
3135
|
), Me(t, "shepherd-element", !0);
|
|
3101
3136
|
},
|
|
3102
3137
|
m(f, g) {
|
|
3103
|
-
se(f, t, g), u && u.m(t, null), Ne(t, n), we(r, t, null), e[13](t), s = !0, c || (a =
|
|
3138
|
+
se(f, t, g), u && u.m(t, null), Ne(t, n), we(r, t, null), e[13](t), s = !0, c || (a = vt(
|
|
3104
3139
|
t,
|
|
3105
3140
|
"keydown",
|
|
3106
3141
|
/*handleKeyDown*/
|
|
@@ -3112,7 +3147,7 @@ function Lo(e) {
|
|
|
3112
3147
|
f[4].options.arrow && /*step*/
|
|
3113
3148
|
f[4].options.attachTo && /*step*/
|
|
3114
3149
|
f[4].options.attachTo.element && /*step*/
|
|
3115
|
-
f[4].options.attachTo.on ? u || (u =
|
|
3150
|
+
f[4].options.attachTo.on ? u || (u = jn(), u.c(), u.m(t, n)) : u && (u.d(1), u = null);
|
|
3116
3151
|
const b = {};
|
|
3117
3152
|
g & /*descriptionId*/
|
|
3118
3153
|
4 && (b.descriptionId = /*descriptionId*/
|
|
@@ -3120,7 +3155,7 @@ function Lo(e) {
|
|
|
3120
3155
|
8 && (b.labelId = /*labelId*/
|
|
3121
3156
|
f[3]), g & /*step*/
|
|
3122
3157
|
16 && (b.step = /*step*/
|
|
3123
|
-
f[4]), r.$set(b),
|
|
3158
|
+
f[4]), r.$set(b), Rn(t, h = go(d, [(!s || g & /*step, descriptionId*/
|
|
3124
3159
|
20 && i !== (i = U(
|
|
3125
3160
|
/*step*/
|
|
3126
3161
|
f[4].options.text
|
|
@@ -3163,11 +3198,11 @@ function Lo(e) {
|
|
|
3163
3198
|
}
|
|
3164
3199
|
};
|
|
3165
3200
|
}
|
|
3166
|
-
const
|
|
3167
|
-
function
|
|
3201
|
+
const Bo = 9, Vo = 27, No = 37, Wo = 39;
|
|
3202
|
+
function Hn(e) {
|
|
3168
3203
|
return e.split(" ").filter((t) => !!t.length);
|
|
3169
3204
|
}
|
|
3170
|
-
function
|
|
3205
|
+
function Yo(e, t, n) {
|
|
3171
3206
|
let {
|
|
3172
3207
|
classPrefix: r,
|
|
3173
3208
|
element: i,
|
|
@@ -3180,25 +3215,25 @@ function Vo(e, t, n) {
|
|
|
3180
3215
|
dataStepId: h
|
|
3181
3216
|
} = t, f, g, b;
|
|
3182
3217
|
const E = () => i;
|
|
3183
|
-
|
|
3218
|
+
ao(() => {
|
|
3184
3219
|
n(1, h = {
|
|
3185
3220
|
[`data-${r}shepherd-step-id`]: d.id
|
|
3186
3221
|
}), n(9, c = i.querySelectorAll('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]')), n(8, s = c[0]), n(10, u = c[c.length - 1]);
|
|
3187
|
-
}),
|
|
3222
|
+
}), zt(() => {
|
|
3188
3223
|
b !== d.options.classes && S();
|
|
3189
3224
|
});
|
|
3190
3225
|
function S() {
|
|
3191
|
-
|
|
3226
|
+
w(b), b = d.options.classes, _(b);
|
|
3192
3227
|
}
|
|
3193
|
-
function
|
|
3194
|
-
if (
|
|
3195
|
-
const R =
|
|
3228
|
+
function w(m) {
|
|
3229
|
+
if (Ke(m)) {
|
|
3230
|
+
const R = Hn(m);
|
|
3196
3231
|
R.length && i.classList.remove(...R);
|
|
3197
3232
|
}
|
|
3198
3233
|
}
|
|
3199
|
-
function
|
|
3200
|
-
if (
|
|
3201
|
-
const R =
|
|
3234
|
+
function _(m) {
|
|
3235
|
+
if (Ke(m)) {
|
|
3236
|
+
const R = Hn(m);
|
|
3202
3237
|
R.length && i.classList.add(...R);
|
|
3203
3238
|
}
|
|
3204
3239
|
}
|
|
@@ -3207,20 +3242,20 @@ function Vo(e, t, n) {
|
|
|
3207
3242
|
tour: R
|
|
3208
3243
|
} = d;
|
|
3209
3244
|
switch (m.keyCode) {
|
|
3210
|
-
case
|
|
3245
|
+
case Bo:
|
|
3211
3246
|
if (c.length === 0) {
|
|
3212
3247
|
m.preventDefault();
|
|
3213
3248
|
break;
|
|
3214
3249
|
}
|
|
3215
3250
|
m.shiftKey ? (document.activeElement === s || document.activeElement.classList.contains("shepherd-element")) && (m.preventDefault(), u.focus()) : document.activeElement === u && (m.preventDefault(), s.focus());
|
|
3216
3251
|
break;
|
|
3217
|
-
case
|
|
3252
|
+
case Vo:
|
|
3218
3253
|
R.options.exitOnEsc && (m.preventDefault(), m.stopPropagation(), d.cancel());
|
|
3219
3254
|
break;
|
|
3220
|
-
case
|
|
3255
|
+
case No:
|
|
3221
3256
|
R.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), R.back());
|
|
3222
3257
|
break;
|
|
3223
|
-
case
|
|
3258
|
+
case Wo:
|
|
3224
3259
|
R.options.keyboardNavigation && (m.preventDefault(), m.stopPropagation(), R.next());
|
|
3225
3260
|
break;
|
|
3226
3261
|
}
|
|
@@ -3237,9 +3272,9 @@ function Vo(e, t, n) {
|
|
|
3237
3272
|
16 && (n(5, f = d.options && d.options.cancelIcon && d.options.cancelIcon.enabled), n(6, g = d.options && d.options.title));
|
|
3238
3273
|
}, [i, h, o, a, d, f, g, O, s, c, u, r, E, y];
|
|
3239
3274
|
}
|
|
3240
|
-
class
|
|
3275
|
+
class Uo extends me {
|
|
3241
3276
|
constructor(t) {
|
|
3242
|
-
super(),
|
|
3277
|
+
super(), ge(this, t, Yo, $o, pe, {
|
|
3243
3278
|
classPrefix: 11,
|
|
3244
3279
|
element: 0,
|
|
3245
3280
|
descriptionId: 2,
|
|
@@ -3258,7 +3293,7 @@ class Bo extends ge {
|
|
|
3258
3293
|
}
|
|
3259
3294
|
class Mt extends Ft {
|
|
3260
3295
|
constructor(t, n = {}) {
|
|
3261
|
-
return super(), this._resolvedAttachTo = void 0, this._resolvedExtraHighlightElements = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ?
|
|
3296
|
+
return super(), this._resolvedAttachTo = void 0, this._resolvedExtraHighlightElements = void 0, this.classPrefix = void 0, this.el = void 0, this.target = void 0, this.tour = void 0, this.tour = t, this.classPrefix = this.tour.options ? Nn(this.tour.options.classPrefix) : "", this.styles = t.styles, this._resolvedAttachTo = null, jt(this), this._setOptions(n), this;
|
|
3262
3297
|
}
|
|
3263
3298
|
/**
|
|
3264
3299
|
* Cancel the tour
|
|
@@ -3279,7 +3314,7 @@ class Mt extends Ft {
|
|
|
3279
3314
|
* Triggers `destroy` event
|
|
3280
3315
|
*/
|
|
3281
3316
|
destroy() {
|
|
3282
|
-
|
|
3317
|
+
Gi(this), He(this.el) && (this.el.remove(), this.el = null), this._updateStepTargetOnHide(), this.trigger("destroy");
|
|
3283
3318
|
}
|
|
3284
3319
|
/**
|
|
3285
3320
|
* Returns the tour for the step
|
|
@@ -3300,14 +3335,14 @@ class Mt extends Ft {
|
|
|
3300
3335
|
* @returns {{}|{element, on}}
|
|
3301
3336
|
*/
|
|
3302
3337
|
_resolveExtraHiglightElements() {
|
|
3303
|
-
return this._resolvedExtraHighlightElements =
|
|
3338
|
+
return this._resolvedExtraHighlightElements = li(this), this._resolvedExtraHighlightElements;
|
|
3304
3339
|
}
|
|
3305
3340
|
/**
|
|
3306
3341
|
* Resolves attachTo options.
|
|
3307
3342
|
* @returns {{}|{element, on}}
|
|
3308
3343
|
*/
|
|
3309
3344
|
_resolveAttachToOptions() {
|
|
3310
|
-
return this._resolvedAttachTo =
|
|
3345
|
+
return this._resolvedAttachTo = si(this), this._resolvedAttachTo;
|
|
3311
3346
|
}
|
|
3312
3347
|
/**
|
|
3313
3348
|
* A selector for resolved attachTo options.
|
|
@@ -3328,7 +3363,7 @@ class Mt extends Ft {
|
|
|
3328
3363
|
* Wraps `_show` and ensures `beforeShowPromise` resolves before calling show
|
|
3329
3364
|
*/
|
|
3330
3365
|
show() {
|
|
3331
|
-
return
|
|
3366
|
+
return ve(this.options.beforeShowPromise) ? Promise.resolve(this.options.beforeShowPromise()).then(() => this._show()) : Promise.resolve(this._show());
|
|
3332
3367
|
}
|
|
3333
3368
|
/**
|
|
3334
3369
|
* Updates the options of the step.
|
|
@@ -3362,7 +3397,7 @@ class Mt extends Ft {
|
|
|
3362
3397
|
*/
|
|
3363
3398
|
_createTooltipContent() {
|
|
3364
3399
|
const t = `${this.id}-description`, n = `${this.id}-label`;
|
|
3365
|
-
return this.shepherdElementComponent = new
|
|
3400
|
+
return this.shepherdElementComponent = new Uo({
|
|
3366
3401
|
target: this.tour.options.stepsContainer || document.body,
|
|
3367
3402
|
props: {
|
|
3368
3403
|
classPrefix: this.classPrefix,
|
|
@@ -3386,7 +3421,7 @@ class Mt extends Ft {
|
|
|
3386
3421
|
const {
|
|
3387
3422
|
element: n
|
|
3388
3423
|
} = this._getResolvedAttachToOptions();
|
|
3389
|
-
|
|
3424
|
+
ve(this.options.scrollToHandler) ? this.options.scrollToHandler(n) : $r(n) && typeof n.scrollIntoView == "function" && n.scrollIntoView(t);
|
|
3390
3425
|
}
|
|
3391
3426
|
/**
|
|
3392
3427
|
* _getClassOptions gets all possible classes for the step
|
|
@@ -3405,11 +3440,11 @@ class Mt extends Ft {
|
|
|
3405
3440
|
let n = this.tour && this.tour.options && this.tour.options.defaultStepOptions;
|
|
3406
3441
|
n = Dt({}, n || {}), this.options = Object.assign({
|
|
3407
3442
|
arrow: !0
|
|
3408
|
-
}, n, t,
|
|
3443
|
+
}, n, t, Xi(n, t));
|
|
3409
3444
|
const {
|
|
3410
3445
|
when: r
|
|
3411
3446
|
} = this.options;
|
|
3412
|
-
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${
|
|
3447
|
+
this.options.classes = this._getClassOptions(t), this.destroy(), this.id = this.options.id || `step-${Yn()}`, r && Object.keys(r).forEach((i) => {
|
|
3413
3448
|
this.on(i, r[i], this);
|
|
3414
3449
|
});
|
|
3415
3450
|
}
|
|
@@ -3418,7 +3453,7 @@ class Mt extends Ft {
|
|
|
3418
3453
|
* @private
|
|
3419
3454
|
*/
|
|
3420
3455
|
_setupElements() {
|
|
3421
|
-
U(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn &&
|
|
3456
|
+
U(this.el) || this.destroy(), this.el = this._createTooltipContent(), this.options.advanceOn && ri(this), Ki(this);
|
|
3422
3457
|
}
|
|
3423
3458
|
/**
|
|
3424
3459
|
* Triggers `before-show`, generates the tooltip DOM content,
|
|
@@ -3461,7 +3496,7 @@ class Mt extends Ft {
|
|
|
3461
3496
|
});
|
|
3462
3497
|
}
|
|
3463
3498
|
}
|
|
3464
|
-
function
|
|
3499
|
+
function qo(e) {
|
|
3465
3500
|
if (e) {
|
|
3466
3501
|
const {
|
|
3467
3502
|
steps: t
|
|
@@ -3473,7 +3508,7 @@ function No(e) {
|
|
|
3473
3508
|
});
|
|
3474
3509
|
}
|
|
3475
3510
|
}
|
|
3476
|
-
function
|
|
3511
|
+
function zo(e) {
|
|
3477
3512
|
let t = "";
|
|
3478
3513
|
const {
|
|
3479
3514
|
innerWidth: n,
|
|
@@ -3500,20 +3535,20 @@ function Wo(e) {
|
|
|
3500
3535
|
t += `M${c + d},${a} a${d},${d},0,0,0-${d},${d} V${s + a - g} a${g},${g},0,0,0,${g},${g} H${o + c - f} a${f},${f},0,0,0,${f}-${f} V${a + h} a${h},${h},0,0,0-${h}-${h} Z`;
|
|
3501
3536
|
}), `M${n},${r} H0 V0 H${n} V${r} Z ${t}`.replace(/\s/g, "");
|
|
3502
3537
|
}
|
|
3503
|
-
function
|
|
3538
|
+
function Jo(e) {
|
|
3504
3539
|
let t, n, r, i, o;
|
|
3505
3540
|
return {
|
|
3506
3541
|
c() {
|
|
3507
|
-
t =
|
|
3542
|
+
t = On("svg"), n = On("path"), M(
|
|
3508
3543
|
n,
|
|
3509
3544
|
"d",
|
|
3510
3545
|
/*pathDefinition*/
|
|
3511
3546
|
e[2]
|
|
3512
|
-
),
|
|
3547
|
+
), M(t, "class", r = `${/*modalIsVisible*/
|
|
3513
3548
|
e[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`);
|
|
3514
3549
|
},
|
|
3515
3550
|
m(s, c) {
|
|
3516
|
-
se(s, t, c), Ne(t, n), e[11](t), i || (o =
|
|
3551
|
+
se(s, t, c), Ne(t, n), e[11](t), i || (o = vt(
|
|
3517
3552
|
t,
|
|
3518
3553
|
"touchmove",
|
|
3519
3554
|
/*_preventModalOverlayTouch*/
|
|
@@ -3522,14 +3557,14 @@ function Yo(e) {
|
|
|
3522
3557
|
},
|
|
3523
3558
|
p(s, [c]) {
|
|
3524
3559
|
c & /*pathDefinition*/
|
|
3525
|
-
4 &&
|
|
3560
|
+
4 && M(
|
|
3526
3561
|
n,
|
|
3527
3562
|
"d",
|
|
3528
3563
|
/*pathDefinition*/
|
|
3529
3564
|
s[2]
|
|
3530
3565
|
), c & /*modalIsVisible*/
|
|
3531
3566
|
2 && r !== (r = `${/*modalIsVisible*/
|
|
3532
|
-
s[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) &&
|
|
3567
|
+
s[1] ? "shepherd-modal-is-visible" : ""} shepherd-modal-overlay-container`) && M(t, "class", r);
|
|
3533
3568
|
},
|
|
3534
3569
|
i: Z,
|
|
3535
3570
|
o: Z,
|
|
@@ -3538,13 +3573,13 @@ function Yo(e) {
|
|
|
3538
3573
|
}
|
|
3539
3574
|
};
|
|
3540
3575
|
}
|
|
3541
|
-
function
|
|
3576
|
+
function ir(e) {
|
|
3542
3577
|
if (!e)
|
|
3543
3578
|
return null;
|
|
3544
3579
|
const n = e instanceof HTMLElement && window.getComputedStyle(e).overflowY;
|
|
3545
|
-
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e :
|
|
3580
|
+
return n !== "hidden" && n !== "visible" && e.scrollHeight >= e.clientHeight ? e : ir(e.parentElement);
|
|
3546
3581
|
}
|
|
3547
|
-
function
|
|
3582
|
+
function Ko(e) {
|
|
3548
3583
|
let t = {
|
|
3549
3584
|
top: 0,
|
|
3550
3585
|
left: 0
|
|
@@ -3564,7 +3599,7 @@ function Uo(e) {
|
|
|
3564
3599
|
}
|
|
3565
3600
|
return t;
|
|
3566
3601
|
}
|
|
3567
|
-
function
|
|
3602
|
+
function Xo(e, t) {
|
|
3568
3603
|
const n = e.getBoundingClientRect();
|
|
3569
3604
|
let r = n.y || n.top, i = n.bottom || r + n.height;
|
|
3570
3605
|
if (t) {
|
|
@@ -3577,7 +3612,7 @@ function qo(e, t) {
|
|
|
3577
3612
|
height: o
|
|
3578
3613
|
};
|
|
3579
3614
|
}
|
|
3580
|
-
function
|
|
3615
|
+
function Go(e, t, n) {
|
|
3581
3616
|
let {
|
|
3582
3617
|
element: r,
|
|
3583
3618
|
openingProperties: i
|
|
@@ -3594,7 +3629,7 @@ function zo(e, t, n) {
|
|
|
3594
3629
|
}]);
|
|
3595
3630
|
}
|
|
3596
3631
|
function d() {
|
|
3597
|
-
n(1, o = !1),
|
|
3632
|
+
n(1, o = !1), w();
|
|
3598
3633
|
}
|
|
3599
3634
|
function h(y = 0, m = 0, R = 0, D = 0, K, W, X) {
|
|
3600
3635
|
if (W) {
|
|
@@ -3606,19 +3641,19 @@ function zo(e, t, n) {
|
|
|
3606
3641
|
const {
|
|
3607
3642
|
y: F,
|
|
3608
3643
|
height: L
|
|
3609
|
-
} =
|
|
3610
|
-
x:
|
|
3644
|
+
} = Xo(A, K), {
|
|
3645
|
+
x: V,
|
|
3611
3646
|
width: N,
|
|
3612
3647
|
left: ne
|
|
3613
3648
|
} = A.getBoundingClientRect();
|
|
3614
3649
|
$.some((Q) => {
|
|
3615
3650
|
if (Q === A) return !1;
|
|
3616
3651
|
const Y = Q.getBoundingClientRect();
|
|
3617
|
-
return
|
|
3652
|
+
return V >= Y.left && V + N <= Y.right && F >= Y.top && F + L <= Y.bottom;
|
|
3618
3653
|
}) || i.push({
|
|
3619
3654
|
width: N + y * 2,
|
|
3620
3655
|
height: L + y * 2,
|
|
3621
|
-
x: (
|
|
3656
|
+
x: (V || ne) + R - y,
|
|
3622
3657
|
y: F + D - y,
|
|
3623
3658
|
r: m
|
|
3624
3659
|
});
|
|
@@ -3627,7 +3662,7 @@ function zo(e, t, n) {
|
|
|
3627
3662
|
u();
|
|
3628
3663
|
}
|
|
3629
3664
|
function f(y) {
|
|
3630
|
-
|
|
3665
|
+
w(), y.tour.options.useModalOverlay ? (_(y), g()) : d();
|
|
3631
3666
|
}
|
|
3632
3667
|
function g() {
|
|
3633
3668
|
n(1, o = !0);
|
|
@@ -3642,18 +3677,18 @@ function zo(e, t, n) {
|
|
|
3642
3677
|
passive: !1
|
|
3643
3678
|
});
|
|
3644
3679
|
}
|
|
3645
|
-
function
|
|
3680
|
+
function w() {
|
|
3646
3681
|
s && (cancelAnimationFrame(s), s = void 0), window.removeEventListener("touchmove", b, {
|
|
3647
3682
|
passive: !1
|
|
3648
3683
|
});
|
|
3649
3684
|
}
|
|
3650
|
-
function
|
|
3685
|
+
function _(y) {
|
|
3651
3686
|
const {
|
|
3652
3687
|
modalOverlayOpeningPadding: m,
|
|
3653
3688
|
modalOverlayOpeningRadius: R,
|
|
3654
3689
|
modalOverlayOpeningXOffset: D = 0,
|
|
3655
3690
|
modalOverlayOpeningYOffset: K = 0
|
|
3656
|
-
} = y.options, W =
|
|
3691
|
+
} = y.options, W = Ko(y.target), X = ir(y.target), $ = () => {
|
|
3657
3692
|
s = void 0, h(m, R, D + W.left, K + W.top, X, y.target, y._resolvedExtraHighlightElements), s = requestAnimationFrame($);
|
|
3658
3693
|
};
|
|
3659
3694
|
$(), S();
|
|
@@ -3667,12 +3702,12 @@ function zo(e, t, n) {
|
|
|
3667
3702
|
"element" in y && n(0, r = y.element), "openingProperties" in y && n(4, i = y.openingProperties);
|
|
3668
3703
|
}, e.$$.update = () => {
|
|
3669
3704
|
e.$$.dirty & /*openingProperties*/
|
|
3670
|
-
16 && n(2, c =
|
|
3705
|
+
16 && n(2, c = zo(i));
|
|
3671
3706
|
}, [r, o, c, E, i, a, u, d, h, f, g, O];
|
|
3672
3707
|
}
|
|
3673
|
-
class
|
|
3708
|
+
class Zo extends me {
|
|
3674
3709
|
constructor(t) {
|
|
3675
|
-
super(),
|
|
3710
|
+
super(), ge(this, t, Go, Jo, pe, {
|
|
3676
3711
|
element: 0,
|
|
3677
3712
|
openingProperties: 4,
|
|
3678
3713
|
getElement: 5,
|
|
@@ -3702,19 +3737,19 @@ class Jo extends ge {
|
|
|
3702
3737
|
return this.$$.ctx[10];
|
|
3703
3738
|
}
|
|
3704
3739
|
}
|
|
3705
|
-
class
|
|
3740
|
+
class Qo extends Ft {
|
|
3706
3741
|
constructor() {
|
|
3707
3742
|
super(), this.activeTour = void 0, jt(this);
|
|
3708
3743
|
}
|
|
3709
3744
|
}
|
|
3710
|
-
class
|
|
3745
|
+
class es extends Ft {
|
|
3711
3746
|
constructor(t = {}) {
|
|
3712
3747
|
super(), this.trackedEvents = ["active", "cancel", "complete", "show"], this.classPrefix = void 0, this.currentStep = void 0, this.focusedElBeforeOpen = void 0, this.id = void 0, this.modal = void 0, this.options = void 0, this.steps = void 0, jt(this);
|
|
3713
3748
|
const n = {
|
|
3714
3749
|
exitOnEsc: !0,
|
|
3715
3750
|
keyboardNavigation: !0
|
|
3716
3751
|
};
|
|
3717
|
-
return this.options = Object.assign({}, n, t), this.classPrefix =
|
|
3752
|
+
return this.options = Object.assign({}, n, t), this.classPrefix = Nn(this.options.classPrefix), this.steps = [], this.addSteps(this.options.steps), ["active", "cancel", "complete", "inactive", "show", "start"].map((i) => {
|
|
3718
3753
|
((o) => {
|
|
3719
3754
|
this.on(o, (s) => {
|
|
3720
3755
|
s = s || {}, s.tour = this, Se.trigger(o, s);
|
|
@@ -3759,7 +3794,7 @@ class Xo extends Ft {
|
|
|
3759
3794
|
if (this.options.confirmCancel) {
|
|
3760
3795
|
const t = this.options.confirmCancelMessage || "Are you sure you want to stop the tour?";
|
|
3761
3796
|
let n;
|
|
3762
|
-
|
|
3797
|
+
ve(this.options.confirmCancel) ? n = await this.options.confirmCancel() : n = window.confirm(t), n && this._done("cancel");
|
|
3763
3798
|
} else
|
|
3764
3799
|
this._done("cancel");
|
|
3765
3800
|
}
|
|
@@ -3822,8 +3857,8 @@ class Xo extends Ft {
|
|
|
3822
3857
|
* @param {boolean} forward - True if we are going forward, false if backward
|
|
3823
3858
|
*/
|
|
3824
3859
|
show(t = 0, n = !0) {
|
|
3825
|
-
const r =
|
|
3826
|
-
r && (this._updateStateBeforeShow(),
|
|
3860
|
+
const r = Ke(t) ? this.getById(t) : this.steps[t];
|
|
3861
|
+
r && (this._updateStateBeforeShow(), ve(r.options.showOn) && !r.options.showOn() ? this._skipStep(r, n) : (this.currentStep = r, this.trigger("show", {
|
|
3827
3862
|
step: r,
|
|
3828
3863
|
previous: this.currentStep
|
|
3829
3864
|
}), r.show()));
|
|
@@ -3841,7 +3876,7 @@ class Xo extends Ft {
|
|
|
3841
3876
|
*/
|
|
3842
3877
|
_done(t) {
|
|
3843
3878
|
const n = this.steps.indexOf(this.currentStep);
|
|
3844
|
-
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()),
|
|
3879
|
+
if (Array.isArray(this.steps) && this.steps.forEach((r) => r.destroy()), qo(this), this.trigger(t, {
|
|
3845
3880
|
index: n
|
|
3846
3881
|
}), Se.activeTour = null, this.trigger("inactive", {
|
|
3847
3882
|
tour: this
|
|
@@ -3863,7 +3898,7 @@ class Xo extends Ft {
|
|
|
3863
3898
|
* setupModal create the modal container and instance
|
|
3864
3899
|
*/
|
|
3865
3900
|
setupModal() {
|
|
3866
|
-
this.modal = new
|
|
3901
|
+
this.modal = new Zo({
|
|
3867
3902
|
target: this.options.modalContainer || document.body,
|
|
3868
3903
|
props: {
|
|
3869
3904
|
// @ts-expect-error TODO: investigate where styles comes from
|
|
@@ -3900,29 +3935,29 @@ class Xo extends Ft {
|
|
|
3900
3935
|
* @private
|
|
3901
3936
|
*/
|
|
3902
3937
|
_setTourID(t) {
|
|
3903
|
-
const n = this.options.tourName || "tour", r = t ||
|
|
3938
|
+
const n = this.options.tourName || "tour", r = t || Yn();
|
|
3904
3939
|
this.id = `${n}--${r}`;
|
|
3905
3940
|
}
|
|
3906
3941
|
}
|
|
3907
|
-
const Se = new
|
|
3908
|
-
Se.Step =
|
|
3909
|
-
Se.Tour =
|
|
3910
|
-
const
|
|
3942
|
+
const Se = new Qo(), or = typeof window > "u";
|
|
3943
|
+
Se.Step = or ? ii : Mt;
|
|
3944
|
+
Se.Tour = or ? oi : es;
|
|
3945
|
+
const Jt = Mr(
|
|
3911
3946
|
void 0
|
|
3912
|
-
),
|
|
3913
|
-
const e =
|
|
3947
|
+
), ns = Jt.Consumer, rs = () => {
|
|
3948
|
+
const e = Fr(Jt);
|
|
3914
3949
|
if (!e)
|
|
3915
3950
|
throw new Error(
|
|
3916
3951
|
"useShepherd must be used within a ShepherdJourneyProvider"
|
|
3917
3952
|
);
|
|
3918
3953
|
const { Shepherd: t } = e;
|
|
3919
3954
|
return t;
|
|
3920
|
-
},
|
|
3955
|
+
}, is = ({
|
|
3921
3956
|
children: e
|
|
3922
|
-
}) => /* @__PURE__ */
|
|
3957
|
+
}) => /* @__PURE__ */ Hr.jsx(Jt.Provider, { value: { Shepherd: Se }, children: e });
|
|
3923
3958
|
export {
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3959
|
+
ns as JourneyMethods,
|
|
3960
|
+
Jt as ShepherdJourneyContext,
|
|
3961
|
+
is as ShepherdJourneyProvider,
|
|
3962
|
+
rs as useShepherd
|
|
3928
3963
|
};
|