@fluidattacks/design 3.1.13 → 3.2.0
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/components/@core/index.js +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -20
- package/dist/components/accordion/index.js +5 -76
- package/dist/components/alert/index.js +4 -162
- package/dist/components/button/index.js +4 -67
- package/dist/components/card/card-header/index.js +4 -81
- package/dist/components/card/card-with-image/index.js +5 -91
- package/dist/components/card/card-with-input/index.js +5 -103
- package/dist/components/card/card-with-selector/index.js +4 -69
- package/dist/components/card/card-with-switch/index.js +4 -48
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -73
- package/dist/components/checkbox/index.js +4 -116
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -70
- package/dist/components/code-snippet/location-code/index.js +7 -169
- package/dist/components/colors/index.js +7 -222
- package/dist/components/confirm-dialog/index.js +4 -43
- package/dist/components/container/index.js +4 -49
- package/dist/components/content-card/category-tag/index.js +4 -40
- package/dist/components/content-card/event-date/index.js +5 -59
- package/dist/components/content-card/index.js +4 -166
- package/dist/components/content-card-carousel/index.js +4 -93
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -23
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -83
- package/dist/components/file-preview/index.js +3 -42
- package/dist/components/form/index.js +4 -61
- package/dist/components/grid-container/index.js +4 -46
- package/dist/components/group-selector/index.js +6 -133
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -106
- package/dist/components/icon-button/index.js +4 -74
- package/dist/components/indicator-card/index.js +5 -72
- package/dist/components/info-sidebar/index.js +4 -114
- package/dist/components/inputs/fields/combobox/index.js +7 -144
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
- package/dist/components/inputs/fields/date/calendar/index.js +6 -28
- package/dist/components/inputs/fields/date/index.js +8 -66
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-range/index.js +6 -106
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
- package/dist/components/inputs/fields/date-time/index.js +6 -67
- package/dist/components/inputs/fields/editable/index.js +4 -26
- package/dist/components/inputs/fields/input/index.js +5 -75
- package/dist/components/inputs/fields/input-file/index.js +6 -123
- package/dist/components/inputs/fields/input-tags/index.js +4 -66
- package/dist/components/inputs/fields/number/index.js +4 -55
- package/dist/components/inputs/fields/number-range/index.js +4 -47
- package/dist/components/inputs/fields/phone/index.js +7 -577
- package/dist/components/inputs/fields/text-area/index.js +5 -79
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -36
- package/dist/components/inputs/outline-container/index.js +4 -102
- package/dist/components/inputs/utils/action-button/index.js +4 -29
- package/dist/components/inputs/utils/calendar-button/index.js +5 -35
- package/dist/components/inputs/utils/date-selector/index.js +3 -60
- package/dist/components/inputs/utils/date-time-field/index.js +10 -131
- package/dist/components/inputs/utils/dialog/index.js +5 -12
- package/dist/components/inputs/utils/number-field/index.js +5 -84
- package/dist/components/inputs/utils/popover/index.js +5 -42
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -116
- package/dist/components/language-selector/index.js +4 -35
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -104
- package/dist/components/list-item/index.js +6 -65
- package/dist/components/little-flag/index.js +3 -30
- package/dist/components/loading/index.js +4 -92
- package/dist/components/logo/index.js +2 -10
- package/dist/components/logo-carousel/index.js +4 -85
- package/dist/components/lottie/index.js +3 -18
- package/dist/components/menu/index.js +5 -64
- package/dist/components/message-banner/index.js +5 -99
- package/dist/components/modal/index.js +6 -63
- package/dist/components/modal/modal-confirm/index.js +3 -49
- package/dist/components/modal/modal-footer/index.js +5 -23
- package/dist/components/modal/modal-header/index.js +6 -49
- package/dist/components/notification/index.js +5 -111
- package/dist/components/notification-sign/index.js +4 -45
- package/dist/components/number-input/index.js +5 -87
- package/dist/components/oauth-selector/index.js +6 -98
- package/dist/components/oauth-selector/option-container/index.js +4 -74
- package/dist/components/plan-card/index.js +3 -153
- package/dist/components/plan-card/recommended-tag/index.js +3 -29
- package/dist/components/pop-up/description/index.js +5 -49
- package/dist/components/pop-up/index.js +7 -150
- package/dist/components/premium-feature/index.js +4 -83
- package/dist/components/priority-score/index.js +4 -27
- package/dist/components/progress/index.js +5 -45
- package/dist/components/progress-bar/index.js +3 -151
- package/dist/components/radio-button/index.js +4 -123
- package/dist/components/scroll-button/index.js +4 -40
- package/dist/components/search/index.js +7 -103
- package/dist/components/search-bar/index.js +4 -217
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -72
- package/dist/components/severity-overview/badge/index.js +4 -67
- package/dist/components/severity-overview/index.js +3 -15
- package/dist/components/show-on-hover/index.js +3 -29
- package/dist/components/slide-out-menu/index.js +6 -3453
- package/dist/components/slide-out-menu/menu-item/index.js +4 -65
- package/dist/components/slider/index.js +7 -122
- package/dist/components/slider/thumb/index.js +5 -15
- package/dist/components/step-lapse/index.js +4 -157
- package/dist/components/table-button/index.js +4 -95
- package/dist/components/tabs/fixed-tabs/index.js +3 -27
- package/dist/components/tabs/index.js +6 -55
- package/dist/components/tabs/tab/index.js +3 -37
- package/dist/components/tag/index.js +4 -182
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -15
- package/dist/components/toggle/index.js +4 -101
- package/dist/components/toggle-buttons/index.js +4 -101
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -4582
- package/dist/components/typography/heading/index.js +4 -45
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -39
- package/dist/components/typography/text/index.js +4 -45
- package/dist/components/web-form/index.js +4 -78
- package/dist/components-C7JPRIEW.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +112 -204
- package/dist/vendor-_XDhaIzo.mjs +14504 -0
- package/package.json +3 -7
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/index-BMHVi812.mjs +0 -234
- package/dist/index-BzAniA2J.mjs +0 -135
- package/dist/index-C6LbClYh.mjs +0 -146
- package/dist/index-CAIe8hBv.mjs +0 -130
- package/dist/index-CUQBAqt_.mjs +0 -75
- package/dist/index-CWlrSlUk.mjs +0 -68
- package/dist/index-Ckmu1TfV.mjs +0 -86
- package/dist/index-DwznImvK.mjs +0 -1678
- package/dist/index-maWH3JYC.mjs +0 -3561
- package/dist/styles-B2N0JLw1.mjs +0 -114
- package/dist/styles-B64DVBIF.mjs +0 -115
- package/dist/styles-BXFVwnWT.mjs +0 -133
- package/dist/styles-BZQOqe8p.mjs +0 -141
- package/dist/styles-Bdque9TT.mjs +0 -65
- package/dist/styles-BlHspTrz.mjs +0 -144
- package/dist/styles-CROOwXEH.mjs +0 -76
- package/dist/styles-CplEd2kw.mjs +0 -228
- package/dist/styles-D1eTIklB.mjs +0 -110
- package/dist/styles-ePGii_9g.mjs +0 -74
- package/dist/use-carousel-CgAF78h3.mjs +0 -23
- package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
- package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
- package/dist/use-modal-CtgexKnf.mjs +0 -14
- package/dist/use-search-Dj47QDw9.mjs +0 -15
- package/dist/utils-V0EumEPM.mjs +0 -6
- /package/dist/assets/{index2.css → vendor.css} +0 -0
|
@@ -1,4584 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import * as pt from "react-dom";
|
|
7
|
-
import Qe, { createPortal as bn } from "react-dom";
|
|
8
|
-
function Ar(e) {
|
|
9
|
-
return (t) => typeof t === e;
|
|
10
|
-
}
|
|
11
|
-
var En = Ar("function"), On = (e) => e === null, zt = (e) => Object.prototype.toString.call(e).slice(8, -1) === "RegExp", qt = (e) => !wn(e) && !On(e) && (En(e) || typeof e == "object"), wn = Ar("undefined");
|
|
12
|
-
function Sn(e, t) {
|
|
13
|
-
const { length: r } = e;
|
|
14
|
-
if (r !== t.length)
|
|
15
|
-
return !1;
|
|
16
|
-
for (let n = r; n-- !== 0; )
|
|
17
|
-
if (!X(e[n], t[n]))
|
|
18
|
-
return !1;
|
|
19
|
-
return !0;
|
|
20
|
-
}
|
|
21
|
-
function Tn(e, t) {
|
|
22
|
-
if (e.byteLength !== t.byteLength)
|
|
23
|
-
return !1;
|
|
24
|
-
const r = new DataView(e.buffer), n = new DataView(t.buffer);
|
|
25
|
-
let o = e.byteLength;
|
|
26
|
-
for (; o--; )
|
|
27
|
-
if (r.getUint8(o) !== n.getUint8(o))
|
|
28
|
-
return !1;
|
|
29
|
-
return !0;
|
|
30
|
-
}
|
|
31
|
-
function Pn(e, t) {
|
|
32
|
-
if (e.size !== t.size)
|
|
33
|
-
return !1;
|
|
34
|
-
for (const r of e.entries())
|
|
35
|
-
if (!t.has(r[0]))
|
|
36
|
-
return !1;
|
|
37
|
-
for (const r of e.entries())
|
|
38
|
-
if (!X(r[1], t.get(r[0])))
|
|
39
|
-
return !1;
|
|
40
|
-
return !0;
|
|
41
|
-
}
|
|
42
|
-
function xn(e, t) {
|
|
43
|
-
if (e.size !== t.size)
|
|
44
|
-
return !1;
|
|
45
|
-
for (const r of e.entries())
|
|
46
|
-
if (!t.has(r[0]))
|
|
47
|
-
return !1;
|
|
48
|
-
return !0;
|
|
49
|
-
}
|
|
50
|
-
function X(e, t) {
|
|
51
|
-
if (e === t)
|
|
52
|
-
return !0;
|
|
53
|
-
if (e && qt(e) && t && qt(t)) {
|
|
54
|
-
if (e.constructor !== t.constructor)
|
|
55
|
-
return !1;
|
|
56
|
-
if (Array.isArray(e) && Array.isArray(t))
|
|
57
|
-
return Sn(e, t);
|
|
58
|
-
if (e instanceof Map && t instanceof Map)
|
|
59
|
-
return Pn(e, t);
|
|
60
|
-
if (e instanceof Set && t instanceof Set)
|
|
61
|
-
return xn(e, t);
|
|
62
|
-
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t))
|
|
63
|
-
return Tn(e, t);
|
|
64
|
-
if (zt(e) && zt(t))
|
|
65
|
-
return e.source === t.source && e.flags === t.flags;
|
|
66
|
-
if (e.valueOf !== Object.prototype.valueOf)
|
|
67
|
-
return e.valueOf() === t.valueOf();
|
|
68
|
-
if (e.toString !== Object.prototype.toString)
|
|
69
|
-
return e.toString() === t.toString();
|
|
70
|
-
const r = Object.keys(e), n = Object.keys(t);
|
|
71
|
-
if (r.length !== n.length)
|
|
72
|
-
return !1;
|
|
73
|
-
for (let o = r.length; o-- !== 0; )
|
|
74
|
-
if (!Object.prototype.hasOwnProperty.call(t, r[o]))
|
|
75
|
-
return !1;
|
|
76
|
-
for (let o = r.length; o-- !== 0; ) {
|
|
77
|
-
const i = r[o];
|
|
78
|
-
if (!(i === "_owner" && e.$$typeof) && !X(e[i], t[i]))
|
|
79
|
-
return !1;
|
|
80
|
-
}
|
|
81
|
-
return !0;
|
|
82
|
-
}
|
|
83
|
-
return Number.isNaN(e) && Number.isNaN(t) ? !0 : e === t;
|
|
84
|
-
}
|
|
85
|
-
var Cn = [
|
|
86
|
-
"Array",
|
|
87
|
-
"ArrayBuffer",
|
|
88
|
-
"AsyncFunction",
|
|
89
|
-
"AsyncGenerator",
|
|
90
|
-
"AsyncGeneratorFunction",
|
|
91
|
-
"Date",
|
|
92
|
-
"Error",
|
|
93
|
-
"Function",
|
|
94
|
-
"Generator",
|
|
95
|
-
"GeneratorFunction",
|
|
96
|
-
"HTMLElement",
|
|
97
|
-
"Map",
|
|
98
|
-
"Object",
|
|
99
|
-
"Promise",
|
|
100
|
-
"RegExp",
|
|
101
|
-
"Set",
|
|
102
|
-
"WeakMap",
|
|
103
|
-
"WeakSet"
|
|
104
|
-
], Rn = [
|
|
105
|
-
"bigint",
|
|
106
|
-
"boolean",
|
|
107
|
-
"null",
|
|
108
|
-
"number",
|
|
109
|
-
"string",
|
|
110
|
-
"symbol",
|
|
111
|
-
"undefined"
|
|
112
|
-
];
|
|
113
|
-
function st(e) {
|
|
114
|
-
const t = Object.prototype.toString.call(e).slice(8, -1);
|
|
115
|
-
if (/HTML\w+Element/.test(t))
|
|
116
|
-
return "HTMLElement";
|
|
117
|
-
if (Nn(t))
|
|
118
|
-
return t;
|
|
119
|
-
}
|
|
120
|
-
function oe(e) {
|
|
121
|
-
return (t) => st(t) === e;
|
|
122
|
-
}
|
|
123
|
-
function Nn(e) {
|
|
124
|
-
return Cn.includes(e);
|
|
125
|
-
}
|
|
126
|
-
function Ce(e) {
|
|
127
|
-
return (t) => typeof t === e;
|
|
128
|
-
}
|
|
129
|
-
function In(e) {
|
|
130
|
-
return Rn.includes(e);
|
|
131
|
-
}
|
|
132
|
-
var _n = [
|
|
133
|
-
"innerHTML",
|
|
134
|
-
"ownerDocument",
|
|
135
|
-
"style",
|
|
136
|
-
"attributes",
|
|
137
|
-
"nodeValue"
|
|
138
|
-
];
|
|
139
|
-
function P(e) {
|
|
140
|
-
if (e === null)
|
|
141
|
-
return "null";
|
|
142
|
-
switch (typeof e) {
|
|
143
|
-
case "bigint":
|
|
144
|
-
return "bigint";
|
|
145
|
-
case "boolean":
|
|
146
|
-
return "boolean";
|
|
147
|
-
case "number":
|
|
148
|
-
return "number";
|
|
149
|
-
case "string":
|
|
150
|
-
return "string";
|
|
151
|
-
case "symbol":
|
|
152
|
-
return "symbol";
|
|
153
|
-
case "undefined":
|
|
154
|
-
return "undefined";
|
|
155
|
-
}
|
|
156
|
-
if (P.array(e))
|
|
157
|
-
return "Array";
|
|
158
|
-
if (P.plainFunction(e))
|
|
159
|
-
return "Function";
|
|
160
|
-
const t = st(e);
|
|
161
|
-
return t || "Object";
|
|
162
|
-
}
|
|
163
|
-
P.array = Array.isArray;
|
|
164
|
-
P.arrayOf = (e, t) => !P.array(e) && !P.function(t) ? !1 : e.every((r) => t(r));
|
|
165
|
-
P.asyncGeneratorFunction = (e) => st(e) === "AsyncGeneratorFunction";
|
|
166
|
-
P.asyncFunction = oe("AsyncFunction");
|
|
167
|
-
P.bigint = Ce("bigint");
|
|
168
|
-
P.boolean = (e) => e === !0 || e === !1;
|
|
169
|
-
P.date = oe("Date");
|
|
170
|
-
P.defined = (e) => !P.undefined(e);
|
|
171
|
-
P.domElement = (e) => P.object(e) && !P.plainObject(e) && e.nodeType === 1 && P.string(e.nodeName) && _n.every((t) => t in e);
|
|
172
|
-
P.empty = (e) => P.string(e) && e.length === 0 || P.array(e) && e.length === 0 || P.object(e) && !P.map(e) && !P.set(e) && Object.keys(e).length === 0 || P.set(e) && e.size === 0 || P.map(e) && e.size === 0;
|
|
173
|
-
P.error = oe("Error");
|
|
174
|
-
P.function = Ce("function");
|
|
175
|
-
P.generator = (e) => P.iterable(e) && P.function(e.next) && P.function(e.throw);
|
|
176
|
-
P.generatorFunction = oe("GeneratorFunction");
|
|
177
|
-
P.instanceOf = (e, t) => !e || !t ? !1 : Object.getPrototypeOf(e) === t.prototype;
|
|
178
|
-
P.iterable = (e) => !P.nullOrUndefined(e) && P.function(e[Symbol.iterator]);
|
|
179
|
-
P.map = oe("Map");
|
|
180
|
-
P.nan = (e) => Number.isNaN(e);
|
|
181
|
-
P.null = (e) => e === null;
|
|
182
|
-
P.nullOrUndefined = (e) => P.null(e) || P.undefined(e);
|
|
183
|
-
P.number = (e) => Ce("number")(e) && !P.nan(e);
|
|
184
|
-
P.numericString = (e) => P.string(e) && e.length > 0 && !Number.isNaN(Number(e));
|
|
185
|
-
P.object = (e) => !P.nullOrUndefined(e) && (P.function(e) || typeof e == "object");
|
|
186
|
-
P.oneOf = (e, t) => P.array(e) ? e.indexOf(t) > -1 : !1;
|
|
187
|
-
P.plainFunction = oe("Function");
|
|
188
|
-
P.plainObject = (e) => {
|
|
189
|
-
if (st(e) !== "Object")
|
|
190
|
-
return !1;
|
|
191
|
-
const t = Object.getPrototypeOf(e);
|
|
192
|
-
return t === null || t === Object.getPrototypeOf({});
|
|
193
|
-
};
|
|
194
|
-
P.primitive = (e) => P.null(e) || In(typeof e);
|
|
195
|
-
P.promise = oe("Promise");
|
|
196
|
-
P.propertyOf = (e, t, r) => {
|
|
197
|
-
if (!P.object(e) || !t)
|
|
198
|
-
return !1;
|
|
199
|
-
const n = e[t];
|
|
200
|
-
return P.function(r) ? r(n) : P.defined(n);
|
|
201
|
-
};
|
|
202
|
-
P.regexp = oe("RegExp");
|
|
203
|
-
P.set = oe("Set");
|
|
204
|
-
P.string = Ce("string");
|
|
205
|
-
P.symbol = Ce("symbol");
|
|
206
|
-
P.undefined = Ce("undefined");
|
|
207
|
-
P.weakMap = oe("WeakMap");
|
|
208
|
-
P.weakSet = oe("WeakSet");
|
|
209
|
-
var x = P;
|
|
210
|
-
function An(...e) {
|
|
211
|
-
return e.every((t) => x.string(t) || x.array(t) || x.plainObject(t));
|
|
212
|
-
}
|
|
213
|
-
function kn(e, t, r) {
|
|
214
|
-
return kr(e, t) ? [e, t].every(x.array) ? !e.some(Kt(r)) && t.some(Kt(r)) : [e, t].every(x.plainObject) ? !Object.entries(e).some(Yt(r)) && Object.entries(t).some(Yt(r)) : t === r : !1;
|
|
215
|
-
}
|
|
216
|
-
function Ht(e, t, r) {
|
|
217
|
-
const { actual: n, key: o, previous: i, type: s } = r, a = fe(e, o), l = fe(t, o);
|
|
218
|
-
let u = [a, l].every(x.number) && (s === "increased" ? a < l : a > l);
|
|
219
|
-
return x.undefined(n) || (u = u && l === n), x.undefined(i) || (u = u && a === i), u;
|
|
220
|
-
}
|
|
221
|
-
function Vt(e, t, r) {
|
|
222
|
-
const { key: n, type: o, value: i } = r, s = fe(e, n), a = fe(t, n), l = o === "added" ? s : a, u = o === "added" ? a : s;
|
|
223
|
-
if (!x.nullOrUndefined(i)) {
|
|
224
|
-
if (x.defined(l)) {
|
|
225
|
-
if (x.array(l) || x.plainObject(l))
|
|
226
|
-
return kn(l, u, i);
|
|
227
|
-
} else
|
|
228
|
-
return X(u, i);
|
|
229
|
-
return !1;
|
|
230
|
-
}
|
|
231
|
-
return [s, a].every(x.array) ? !u.every(_t(l)) : [s, a].every(x.plainObject) ? jn(Object.keys(l), Object.keys(u)) : ![s, a].every((f) => x.primitive(f) && x.defined(f)) && (o === "added" ? !x.defined(s) && x.defined(a) : x.defined(s) && !x.defined(a));
|
|
232
|
-
}
|
|
233
|
-
function Gt(e, t, { key: r } = {}) {
|
|
234
|
-
let n = fe(e, r), o = fe(t, r);
|
|
235
|
-
if (!kr(n, o))
|
|
236
|
-
throw new TypeError("Inputs have different types");
|
|
237
|
-
if (!An(n, o))
|
|
238
|
-
throw new TypeError("Inputs don't have length");
|
|
239
|
-
return [n, o].every(x.plainObject) && (n = Object.keys(n), o = Object.keys(o)), [n, o];
|
|
240
|
-
}
|
|
241
|
-
function Yt(e) {
|
|
242
|
-
return ([t, r]) => x.array(e) ? X(e, r) || e.some((n) => X(n, r) || x.array(r) && _t(r)(n)) : x.plainObject(e) && e[t] ? !!e[t] && X(e[t], r) : X(e, r);
|
|
243
|
-
}
|
|
244
|
-
function jn(e, t) {
|
|
245
|
-
return t.some((r) => !e.includes(r));
|
|
246
|
-
}
|
|
247
|
-
function Kt(e) {
|
|
248
|
-
return (t) => x.array(e) ? e.some((r) => X(r, t) || x.array(t) && _t(t)(r)) : X(e, t);
|
|
249
|
-
}
|
|
250
|
-
function Ie(e, t) {
|
|
251
|
-
return x.array(e) ? e.some((r) => X(r, t)) : X(e, t);
|
|
252
|
-
}
|
|
253
|
-
function _t(e) {
|
|
254
|
-
return (t) => e.some((r) => X(r, t));
|
|
255
|
-
}
|
|
256
|
-
function kr(...e) {
|
|
257
|
-
return e.every(x.array) || e.every(x.number) || e.every(x.plainObject) || e.every(x.string);
|
|
258
|
-
}
|
|
259
|
-
function fe(e, t) {
|
|
260
|
-
return x.plainObject(e) || x.array(e) ? x.string(t) ? t.split(".").reduce((n, o) => n && n[o], e) : x.number(t) ? e[t] : e : e;
|
|
261
|
-
}
|
|
262
|
-
function rt(e, t) {
|
|
263
|
-
if ([e, t].some(x.nullOrUndefined))
|
|
264
|
-
throw new Error("Missing required parameters");
|
|
265
|
-
if (![e, t].every((f) => x.plainObject(f) || x.array(f)))
|
|
266
|
-
throw new Error("Expected plain objects or array");
|
|
267
|
-
return { added: (f, c) => {
|
|
268
|
-
try {
|
|
269
|
-
return Vt(e, t, { key: f, type: "added", value: c });
|
|
270
|
-
} catch {
|
|
271
|
-
return !1;
|
|
272
|
-
}
|
|
273
|
-
}, changed: (f, c, p) => {
|
|
274
|
-
try {
|
|
275
|
-
const d = fe(e, f), h = fe(t, f), m = x.defined(c), w = x.defined(p);
|
|
276
|
-
if (m || w) {
|
|
277
|
-
const g = w ? Ie(p, d) : !Ie(c, d), v = Ie(c, h);
|
|
278
|
-
return g && v;
|
|
279
|
-
}
|
|
280
|
-
return [d, h].every(x.array) || [d, h].every(x.plainObject) ? !X(d, h) : d !== h;
|
|
281
|
-
} catch {
|
|
282
|
-
return !1;
|
|
283
|
-
}
|
|
284
|
-
}, changedFrom: (f, c, p) => {
|
|
285
|
-
if (!x.defined(f))
|
|
286
|
-
return !1;
|
|
287
|
-
try {
|
|
288
|
-
const d = fe(e, f), h = fe(t, f), m = x.defined(p);
|
|
289
|
-
return Ie(c, d) && (m ? Ie(p, h) : !m);
|
|
290
|
-
} catch {
|
|
291
|
-
return !1;
|
|
292
|
-
}
|
|
293
|
-
}, decreased: (f, c, p) => {
|
|
294
|
-
if (!x.defined(f))
|
|
295
|
-
return !1;
|
|
296
|
-
try {
|
|
297
|
-
return Ht(e, t, { key: f, actual: c, previous: p, type: "decreased" });
|
|
298
|
-
} catch {
|
|
299
|
-
return !1;
|
|
300
|
-
}
|
|
301
|
-
}, emptied: (f) => {
|
|
302
|
-
try {
|
|
303
|
-
const [c, p] = Gt(e, t, { key: f });
|
|
304
|
-
return !!c.length && !p.length;
|
|
305
|
-
} catch {
|
|
306
|
-
return !1;
|
|
307
|
-
}
|
|
308
|
-
}, filled: (f) => {
|
|
309
|
-
try {
|
|
310
|
-
const [c, p] = Gt(e, t, { key: f });
|
|
311
|
-
return !c.length && !!p.length;
|
|
312
|
-
} catch {
|
|
313
|
-
return !1;
|
|
314
|
-
}
|
|
315
|
-
}, increased: (f, c, p) => {
|
|
316
|
-
if (!x.defined(f))
|
|
317
|
-
return !1;
|
|
318
|
-
try {
|
|
319
|
-
return Ht(e, t, { key: f, actual: c, previous: p, type: "increased" });
|
|
320
|
-
} catch {
|
|
321
|
-
return !1;
|
|
322
|
-
}
|
|
323
|
-
}, removed: (f, c) => {
|
|
324
|
-
try {
|
|
325
|
-
return Vt(e, t, { key: f, type: "removed", value: c });
|
|
326
|
-
} catch {
|
|
327
|
-
return !1;
|
|
328
|
-
}
|
|
329
|
-
} };
|
|
330
|
-
}
|
|
331
|
-
var dt, Jt;
|
|
332
|
-
function Ln() {
|
|
333
|
-
if (Jt) return dt;
|
|
334
|
-
Jt = 1;
|
|
335
|
-
var e = new Error("Element already at target scroll position"), t = new Error("Scroll cancelled"), r = Math.min, n = Date.now;
|
|
336
|
-
dt = {
|
|
337
|
-
left: o("scrollLeft"),
|
|
338
|
-
top: o("scrollTop")
|
|
339
|
-
};
|
|
340
|
-
function o(a) {
|
|
341
|
-
return function(u, f, c, p) {
|
|
342
|
-
c = c || {}, typeof c == "function" && (p = c, c = {}), typeof p != "function" && (p = s);
|
|
343
|
-
var d = n(), h = u[a], m = c.ease || i, w = isNaN(c.duration) ? 350 : +c.duration, g = !1;
|
|
344
|
-
return h === f ? p(e, u[a]) : requestAnimationFrame(S), v;
|
|
345
|
-
function v() {
|
|
346
|
-
g = !0;
|
|
347
|
-
}
|
|
348
|
-
function S(N) {
|
|
349
|
-
if (g) return p(t, u[a]);
|
|
350
|
-
var b = n(), j = r(1, (b - d) / w), K = m(j);
|
|
351
|
-
u[a] = K * (f - h) + h, j < 1 ? requestAnimationFrame(S) : requestAnimationFrame(function() {
|
|
352
|
-
p(null, u[a]);
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
function i(a) {
|
|
358
|
-
return 0.5 * (1 - Math.cos(Math.PI * a));
|
|
359
|
-
}
|
|
360
|
-
function s() {
|
|
361
|
-
}
|
|
362
|
-
return dt;
|
|
363
|
-
}
|
|
364
|
-
var Mn = Ln();
|
|
365
|
-
const Fn = /* @__PURE__ */ Fe(Mn);
|
|
366
|
-
var et = { exports: {} }, Dn = et.exports, Xt;
|
|
367
|
-
function $n() {
|
|
368
|
-
return Xt || (Xt = 1, function(e) {
|
|
369
|
-
(function(t, r) {
|
|
370
|
-
e.exports ? e.exports = r() : t.Scrollparent = r();
|
|
371
|
-
})(Dn, function() {
|
|
372
|
-
function t(n) {
|
|
373
|
-
var o = getComputedStyle(n, null).getPropertyValue("overflow");
|
|
374
|
-
return o.indexOf("scroll") > -1 || o.indexOf("auto") > -1;
|
|
375
|
-
}
|
|
376
|
-
function r(n) {
|
|
377
|
-
if (n instanceof HTMLElement || n instanceof SVGElement) {
|
|
378
|
-
for (var o = n.parentNode; o.parentNode; ) {
|
|
379
|
-
if (t(o))
|
|
380
|
-
return o;
|
|
381
|
-
o = o.parentNode;
|
|
382
|
-
}
|
|
383
|
-
return document.scrollingElement || document.documentElement;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
return r;
|
|
387
|
-
});
|
|
388
|
-
}(et)), et.exports;
|
|
389
|
-
}
|
|
390
|
-
var Wn = $n();
|
|
391
|
-
const jr = /* @__PURE__ */ Fe(Wn);
|
|
392
|
-
var ht, Zt;
|
|
393
|
-
function Bn() {
|
|
394
|
-
if (Zt) return ht;
|
|
395
|
-
Zt = 1;
|
|
396
|
-
var e = function(n) {
|
|
397
|
-
return Object.prototype.hasOwnProperty.call(n, "props");
|
|
398
|
-
}, t = function(n, o) {
|
|
399
|
-
return n + r(o);
|
|
400
|
-
}, r = function(n) {
|
|
401
|
-
return n === null || typeof n == "boolean" || typeof n > "u" ? "" : typeof n == "number" ? n.toString() : typeof n == "string" ? n : Array.isArray(n) ? n.reduce(t, "") : e(n) && Object.prototype.hasOwnProperty.call(n.props, "children") ? r(n.props.children) : "";
|
|
402
|
-
};
|
|
403
|
-
return r.default = r, ht = r, ht;
|
|
404
|
-
}
|
|
405
|
-
var Un = Bn();
|
|
406
|
-
const Qt = /* @__PURE__ */ Fe(Un);
|
|
407
|
-
var yt, er;
|
|
408
|
-
function zn() {
|
|
409
|
-
if (er) return yt;
|
|
410
|
-
er = 1;
|
|
411
|
-
var e = function(v) {
|
|
412
|
-
return t(v) && !r(v);
|
|
413
|
-
};
|
|
414
|
-
function t(g) {
|
|
415
|
-
return !!g && typeof g == "object";
|
|
416
|
-
}
|
|
417
|
-
function r(g) {
|
|
418
|
-
var v = Object.prototype.toString.call(g);
|
|
419
|
-
return v === "[object RegExp]" || v === "[object Date]" || i(g);
|
|
420
|
-
}
|
|
421
|
-
var n = typeof Symbol == "function" && Symbol.for, o = n ? Symbol.for("react.element") : 60103;
|
|
422
|
-
function i(g) {
|
|
423
|
-
return g.$$typeof === o;
|
|
424
|
-
}
|
|
425
|
-
function s(g) {
|
|
426
|
-
return Array.isArray(g) ? [] : {};
|
|
427
|
-
}
|
|
428
|
-
function a(g, v) {
|
|
429
|
-
return v.clone !== !1 && v.isMergeableObject(g) ? m(s(g), g, v) : g;
|
|
430
|
-
}
|
|
431
|
-
function l(g, v, S) {
|
|
432
|
-
return g.concat(v).map(function(N) {
|
|
433
|
-
return a(N, S);
|
|
434
|
-
});
|
|
435
|
-
}
|
|
436
|
-
function u(g, v) {
|
|
437
|
-
if (!v.customMerge)
|
|
438
|
-
return m;
|
|
439
|
-
var S = v.customMerge(g);
|
|
440
|
-
return typeof S == "function" ? S : m;
|
|
441
|
-
}
|
|
442
|
-
function f(g) {
|
|
443
|
-
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(g).filter(function(v) {
|
|
444
|
-
return Object.propertyIsEnumerable.call(g, v);
|
|
445
|
-
}) : [];
|
|
446
|
-
}
|
|
447
|
-
function c(g) {
|
|
448
|
-
return Object.keys(g).concat(f(g));
|
|
449
|
-
}
|
|
450
|
-
function p(g, v) {
|
|
451
|
-
try {
|
|
452
|
-
return v in g;
|
|
453
|
-
} catch {
|
|
454
|
-
return !1;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
function d(g, v) {
|
|
458
|
-
return p(g, v) && !(Object.hasOwnProperty.call(g, v) && Object.propertyIsEnumerable.call(g, v));
|
|
459
|
-
}
|
|
460
|
-
function h(g, v, S) {
|
|
461
|
-
var N = {};
|
|
462
|
-
return S.isMergeableObject(g) && c(g).forEach(function(b) {
|
|
463
|
-
N[b] = a(g[b], S);
|
|
464
|
-
}), c(v).forEach(function(b) {
|
|
465
|
-
d(g, b) || (p(g, b) && S.isMergeableObject(v[b]) ? N[b] = u(b, S)(g[b], v[b], S) : N[b] = a(v[b], S));
|
|
466
|
-
}), N;
|
|
467
|
-
}
|
|
468
|
-
function m(g, v, S) {
|
|
469
|
-
S = S || {}, S.arrayMerge = S.arrayMerge || l, S.isMergeableObject = S.isMergeableObject || e, S.cloneUnlessOtherwiseSpecified = a;
|
|
470
|
-
var N = Array.isArray(v), b = Array.isArray(g), j = N === b;
|
|
471
|
-
return j ? N ? S.arrayMerge(g, v, S) : h(g, v, S) : a(v, S);
|
|
472
|
-
}
|
|
473
|
-
m.all = function(v, S) {
|
|
474
|
-
if (!Array.isArray(v))
|
|
475
|
-
throw new Error("first argument should be an array");
|
|
476
|
-
return v.reduce(function(N, b) {
|
|
477
|
-
return m(N, b, S);
|
|
478
|
-
}, {});
|
|
479
|
-
};
|
|
480
|
-
var w = m;
|
|
481
|
-
return yt = w, yt;
|
|
482
|
-
}
|
|
483
|
-
var qn = zn();
|
|
484
|
-
const ne = /* @__PURE__ */ Fe(qn);
|
|
485
|
-
var Je = { exports: {} }, Xe = { exports: {} }, H = {};
|
|
486
|
-
/** @license React v16.13.1
|
|
487
|
-
* react-is.production.min.js
|
|
488
|
-
*
|
|
489
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
490
|
-
*
|
|
491
|
-
* This source code is licensed under the MIT license found in the
|
|
492
|
-
* LICENSE file in the root directory of this source tree.
|
|
493
|
-
*/
|
|
494
|
-
var tr;
|
|
495
|
-
function Hn() {
|
|
496
|
-
if (tr) return H;
|
|
497
|
-
tr = 1;
|
|
498
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
499
|
-
function S(b) {
|
|
500
|
-
if (typeof b == "object" && b !== null) {
|
|
501
|
-
var j = b.$$typeof;
|
|
502
|
-
switch (j) {
|
|
503
|
-
case t:
|
|
504
|
-
switch (b = b.type, b) {
|
|
505
|
-
case l:
|
|
506
|
-
case u:
|
|
507
|
-
case n:
|
|
508
|
-
case i:
|
|
509
|
-
case o:
|
|
510
|
-
case c:
|
|
511
|
-
return b;
|
|
512
|
-
default:
|
|
513
|
-
switch (b = b && b.$$typeof, b) {
|
|
514
|
-
case a:
|
|
515
|
-
case f:
|
|
516
|
-
case h:
|
|
517
|
-
case d:
|
|
518
|
-
case s:
|
|
519
|
-
return b;
|
|
520
|
-
default:
|
|
521
|
-
return j;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
case r:
|
|
525
|
-
return j;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
function N(b) {
|
|
530
|
-
return S(b) === u;
|
|
531
|
-
}
|
|
532
|
-
return H.AsyncMode = l, H.ConcurrentMode = u, H.ContextConsumer = a, H.ContextProvider = s, H.Element = t, H.ForwardRef = f, H.Fragment = n, H.Lazy = h, H.Memo = d, H.Portal = r, H.Profiler = i, H.StrictMode = o, H.Suspense = c, H.isAsyncMode = function(b) {
|
|
533
|
-
return N(b) || S(b) === l;
|
|
534
|
-
}, H.isConcurrentMode = N, H.isContextConsumer = function(b) {
|
|
535
|
-
return S(b) === a;
|
|
536
|
-
}, H.isContextProvider = function(b) {
|
|
537
|
-
return S(b) === s;
|
|
538
|
-
}, H.isElement = function(b) {
|
|
539
|
-
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
540
|
-
}, H.isForwardRef = function(b) {
|
|
541
|
-
return S(b) === f;
|
|
542
|
-
}, H.isFragment = function(b) {
|
|
543
|
-
return S(b) === n;
|
|
544
|
-
}, H.isLazy = function(b) {
|
|
545
|
-
return S(b) === h;
|
|
546
|
-
}, H.isMemo = function(b) {
|
|
547
|
-
return S(b) === d;
|
|
548
|
-
}, H.isPortal = function(b) {
|
|
549
|
-
return S(b) === r;
|
|
550
|
-
}, H.isProfiler = function(b) {
|
|
551
|
-
return S(b) === i;
|
|
552
|
-
}, H.isStrictMode = function(b) {
|
|
553
|
-
return S(b) === o;
|
|
554
|
-
}, H.isSuspense = function(b) {
|
|
555
|
-
return S(b) === c;
|
|
556
|
-
}, H.isValidElementType = function(b) {
|
|
557
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === u || b === i || b === o || b === c || b === p || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === d || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === w || b.$$typeof === g || b.$$typeof === v || b.$$typeof === m);
|
|
558
|
-
}, H.typeOf = S, H;
|
|
559
|
-
}
|
|
560
|
-
var V = {};
|
|
561
|
-
/** @license React v16.13.1
|
|
562
|
-
* react-is.development.js
|
|
563
|
-
*
|
|
564
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
565
|
-
*
|
|
566
|
-
* This source code is licensed under the MIT license found in the
|
|
567
|
-
* LICENSE file in the root directory of this source tree.
|
|
568
|
-
*/
|
|
569
|
-
var rr;
|
|
570
|
-
function Vn() {
|
|
571
|
-
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
572
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, w = e ? Symbol.for("react.fundamental") : 60117, g = e ? Symbol.for("react.responder") : 60118, v = e ? Symbol.for("react.scope") : 60119;
|
|
573
|
-
function S(T) {
|
|
574
|
-
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
575
|
-
T === n || T === u || T === i || T === o || T === c || T === p || typeof T == "object" && T !== null && (T.$$typeof === h || T.$$typeof === d || T.$$typeof === s || T.$$typeof === a || T.$$typeof === f || T.$$typeof === w || T.$$typeof === g || T.$$typeof === v || T.$$typeof === m);
|
|
576
|
-
}
|
|
577
|
-
function N(T) {
|
|
578
|
-
if (typeof T == "object" && T !== null) {
|
|
579
|
-
var le = T.$$typeof;
|
|
580
|
-
switch (le) {
|
|
581
|
-
case t:
|
|
582
|
-
var Ke = T.type;
|
|
583
|
-
switch (Ke) {
|
|
584
|
-
case l:
|
|
585
|
-
case u:
|
|
586
|
-
case n:
|
|
587
|
-
case i:
|
|
588
|
-
case o:
|
|
589
|
-
case c:
|
|
590
|
-
return Ke;
|
|
591
|
-
default:
|
|
592
|
-
var Wt = Ke && Ke.$$typeof;
|
|
593
|
-
switch (Wt) {
|
|
594
|
-
case a:
|
|
595
|
-
case f:
|
|
596
|
-
case h:
|
|
597
|
-
case d:
|
|
598
|
-
case s:
|
|
599
|
-
return Wt;
|
|
600
|
-
default:
|
|
601
|
-
return le;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
case r:
|
|
605
|
-
return le;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
var b = l, j = u, K = a, se = s, Ve = t, re = f, Ge = n, lt = h, ct = d, Oe = r, ut = i, ae = o, ge = c, Ye = !1;
|
|
610
|
-
function ft(T) {
|
|
611
|
-
return Ye || (Ye = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), E(T) || N(T) === l;
|
|
612
|
-
}
|
|
613
|
-
function E(T) {
|
|
614
|
-
return N(T) === u;
|
|
615
|
-
}
|
|
616
|
-
function R(T) {
|
|
617
|
-
return N(T) === a;
|
|
618
|
-
}
|
|
619
|
-
function D(T) {
|
|
620
|
-
return N(T) === s;
|
|
621
|
-
}
|
|
622
|
-
function M(T) {
|
|
623
|
-
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
624
|
-
}
|
|
625
|
-
function A(T) {
|
|
626
|
-
return N(T) === f;
|
|
627
|
-
}
|
|
628
|
-
function B(T) {
|
|
629
|
-
return N(T) === n;
|
|
630
|
-
}
|
|
631
|
-
function L(T) {
|
|
632
|
-
return N(T) === h;
|
|
633
|
-
}
|
|
634
|
-
function F(T) {
|
|
635
|
-
return N(T) === d;
|
|
636
|
-
}
|
|
637
|
-
function U(T) {
|
|
638
|
-
return N(T) === r;
|
|
639
|
-
}
|
|
640
|
-
function G(T) {
|
|
641
|
-
return N(T) === i;
|
|
642
|
-
}
|
|
643
|
-
function z(T) {
|
|
644
|
-
return N(T) === o;
|
|
645
|
-
}
|
|
646
|
-
function Z(T) {
|
|
647
|
-
return N(T) === c;
|
|
648
|
-
}
|
|
649
|
-
V.AsyncMode = b, V.ConcurrentMode = j, V.ContextConsumer = K, V.ContextProvider = se, V.Element = Ve, V.ForwardRef = re, V.Fragment = Ge, V.Lazy = lt, V.Memo = ct, V.Portal = Oe, V.Profiler = ut, V.StrictMode = ae, V.Suspense = ge, V.isAsyncMode = ft, V.isConcurrentMode = E, V.isContextConsumer = R, V.isContextProvider = D, V.isElement = M, V.isForwardRef = A, V.isFragment = B, V.isLazy = L, V.isMemo = F, V.isPortal = U, V.isProfiler = G, V.isStrictMode = z, V.isSuspense = Z, V.isValidElementType = S, V.typeOf = N;
|
|
650
|
-
}()), V;
|
|
651
|
-
}
|
|
652
|
-
var nr;
|
|
653
|
-
function Lr() {
|
|
654
|
-
return nr || (nr = 1, process.env.NODE_ENV === "production" ? Xe.exports = Hn() : Xe.exports = Vn()), Xe.exports;
|
|
655
|
-
}
|
|
656
|
-
/*
|
|
657
|
-
object-assign
|
|
658
|
-
(c) Sindre Sorhus
|
|
659
|
-
@license MIT
|
|
660
|
-
*/
|
|
661
|
-
var mt, or;
|
|
662
|
-
function Gn() {
|
|
663
|
-
if (or) return mt;
|
|
664
|
-
or = 1;
|
|
665
|
-
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
666
|
-
function n(i) {
|
|
667
|
-
if (i == null)
|
|
668
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
669
|
-
return Object(i);
|
|
670
|
-
}
|
|
671
|
-
function o() {
|
|
672
|
-
try {
|
|
673
|
-
if (!Object.assign)
|
|
674
|
-
return !1;
|
|
675
|
-
var i = new String("abc");
|
|
676
|
-
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
677
|
-
return !1;
|
|
678
|
-
for (var s = {}, a = 0; a < 10; a++)
|
|
679
|
-
s["_" + String.fromCharCode(a)] = a;
|
|
680
|
-
var l = Object.getOwnPropertyNames(s).map(function(f) {
|
|
681
|
-
return s[f];
|
|
682
|
-
});
|
|
683
|
-
if (l.join("") !== "0123456789")
|
|
684
|
-
return !1;
|
|
685
|
-
var u = {};
|
|
686
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
687
|
-
u[f] = f;
|
|
688
|
-
}), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst";
|
|
689
|
-
} catch {
|
|
690
|
-
return !1;
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
return mt = o() ? Object.assign : function(i, s) {
|
|
694
|
-
for (var a, l = n(i), u, f = 1; f < arguments.length; f++) {
|
|
695
|
-
a = Object(arguments[f]);
|
|
696
|
-
for (var c in a)
|
|
697
|
-
t.call(a, c) && (l[c] = a[c]);
|
|
698
|
-
if (e) {
|
|
699
|
-
u = e(a);
|
|
700
|
-
for (var p = 0; p < u.length; p++)
|
|
701
|
-
r.call(a, u[p]) && (l[u[p]] = a[u[p]]);
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
return l;
|
|
705
|
-
}, mt;
|
|
706
|
-
}
|
|
707
|
-
var vt, ir;
|
|
708
|
-
function At() {
|
|
709
|
-
if (ir) return vt;
|
|
710
|
-
ir = 1;
|
|
711
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
712
|
-
return vt = e, vt;
|
|
713
|
-
}
|
|
714
|
-
var gt, sr;
|
|
715
|
-
function Mr() {
|
|
716
|
-
return sr || (sr = 1, gt = Function.call.bind(Object.prototype.hasOwnProperty)), gt;
|
|
717
|
-
}
|
|
718
|
-
var bt, ar;
|
|
719
|
-
function Yn() {
|
|
720
|
-
if (ar) return bt;
|
|
721
|
-
ar = 1;
|
|
722
|
-
var e = function() {
|
|
723
|
-
};
|
|
724
|
-
if (process.env.NODE_ENV !== "production") {
|
|
725
|
-
var t = /* @__PURE__ */ At(), r = {}, n = /* @__PURE__ */ Mr();
|
|
726
|
-
e = function(i) {
|
|
727
|
-
var s = "Warning: " + i;
|
|
728
|
-
typeof console < "u" && console.error(s);
|
|
729
|
-
try {
|
|
730
|
-
throw new Error(s);
|
|
731
|
-
} catch {
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
function o(i, s, a, l, u) {
|
|
736
|
-
if (process.env.NODE_ENV !== "production") {
|
|
737
|
-
for (var f in i)
|
|
738
|
-
if (n(i, f)) {
|
|
739
|
-
var c;
|
|
740
|
-
try {
|
|
741
|
-
if (typeof i[f] != "function") {
|
|
742
|
-
var p = Error(
|
|
743
|
-
(l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
744
|
-
);
|
|
745
|
-
throw p.name = "Invariant Violation", p;
|
|
746
|
-
}
|
|
747
|
-
c = i[f](s, f, l, a, null, t);
|
|
748
|
-
} catch (h) {
|
|
749
|
-
c = h;
|
|
750
|
-
}
|
|
751
|
-
if (c && !(c instanceof Error) && e(
|
|
752
|
-
(l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
753
|
-
), c instanceof Error && !(c.message in r)) {
|
|
754
|
-
r[c.message] = !0;
|
|
755
|
-
var d = u ? u() : "";
|
|
756
|
-
e(
|
|
757
|
-
"Failed " + a + " type: " + c.message + (d ?? "")
|
|
758
|
-
);
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
return o.resetWarningCache = function() {
|
|
764
|
-
process.env.NODE_ENV !== "production" && (r = {});
|
|
765
|
-
}, bt = o, bt;
|
|
766
|
-
}
|
|
767
|
-
var Et, lr;
|
|
768
|
-
function Kn() {
|
|
769
|
-
if (lr) return Et;
|
|
770
|
-
lr = 1;
|
|
771
|
-
var e = Lr(), t = Gn(), r = /* @__PURE__ */ At(), n = /* @__PURE__ */ Mr(), o = /* @__PURE__ */ Yn(), i = function() {
|
|
772
|
-
};
|
|
773
|
-
process.env.NODE_ENV !== "production" && (i = function(a) {
|
|
774
|
-
var l = "Warning: " + a;
|
|
775
|
-
typeof console < "u" && console.error(l);
|
|
776
|
-
try {
|
|
777
|
-
throw new Error(l);
|
|
778
|
-
} catch {
|
|
779
|
-
}
|
|
780
|
-
});
|
|
781
|
-
function s() {
|
|
782
|
-
return null;
|
|
783
|
-
}
|
|
784
|
-
return Et = function(a, l) {
|
|
785
|
-
var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
786
|
-
function c(E) {
|
|
787
|
-
var R = E && (u && E[u] || E[f]);
|
|
788
|
-
if (typeof R == "function")
|
|
789
|
-
return R;
|
|
790
|
-
}
|
|
791
|
-
var p = "<<anonymous>>", d = {
|
|
792
|
-
array: g("array"),
|
|
793
|
-
bigint: g("bigint"),
|
|
794
|
-
bool: g("boolean"),
|
|
795
|
-
func: g("function"),
|
|
796
|
-
number: g("number"),
|
|
797
|
-
object: g("object"),
|
|
798
|
-
string: g("string"),
|
|
799
|
-
symbol: g("symbol"),
|
|
800
|
-
any: v(),
|
|
801
|
-
arrayOf: S,
|
|
802
|
-
element: N(),
|
|
803
|
-
elementType: b(),
|
|
804
|
-
instanceOf: j,
|
|
805
|
-
node: re(),
|
|
806
|
-
objectOf: se,
|
|
807
|
-
oneOf: K,
|
|
808
|
-
oneOfType: Ve,
|
|
809
|
-
shape: lt,
|
|
810
|
-
exact: ct
|
|
811
|
-
};
|
|
812
|
-
function h(E, R) {
|
|
813
|
-
return E === R ? E !== 0 || 1 / E === 1 / R : E !== E && R !== R;
|
|
814
|
-
}
|
|
815
|
-
function m(E, R) {
|
|
816
|
-
this.message = E, this.data = R && typeof R == "object" ? R : {}, this.stack = "";
|
|
817
|
-
}
|
|
818
|
-
m.prototype = Error.prototype;
|
|
819
|
-
function w(E) {
|
|
820
|
-
if (process.env.NODE_ENV !== "production")
|
|
821
|
-
var R = {}, D = 0;
|
|
822
|
-
function M(B, L, F, U, G, z, Z) {
|
|
823
|
-
if (U = U || p, z = z || F, Z !== r) {
|
|
824
|
-
if (l) {
|
|
825
|
-
var T = new Error(
|
|
826
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
827
|
-
);
|
|
828
|
-
throw T.name = "Invariant Violation", T;
|
|
829
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
830
|
-
var le = U + ":" + F;
|
|
831
|
-
!R[le] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
832
|
-
D < 3 && (i(
|
|
833
|
-
"You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
834
|
-
), R[le] = !0, D++);
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
return L[F] == null ? B ? L[F] === null ? new m("The " + G + " `" + z + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new m("The " + G + " `" + z + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : E(L, F, U, G, z);
|
|
838
|
-
}
|
|
839
|
-
var A = M.bind(null, !1);
|
|
840
|
-
return A.isRequired = M.bind(null, !0), A;
|
|
841
|
-
}
|
|
842
|
-
function g(E) {
|
|
843
|
-
function R(D, M, A, B, L, F) {
|
|
844
|
-
var U = D[M], G = ae(U);
|
|
845
|
-
if (G !== E) {
|
|
846
|
-
var z = ge(U);
|
|
847
|
-
return new m(
|
|
848
|
-
"Invalid " + B + " `" + L + "` of type " + ("`" + z + "` supplied to `" + A + "`, expected ") + ("`" + E + "`."),
|
|
849
|
-
{ expectedType: E }
|
|
850
|
-
);
|
|
851
|
-
}
|
|
852
|
-
return null;
|
|
853
|
-
}
|
|
854
|
-
return w(R);
|
|
855
|
-
}
|
|
856
|
-
function v() {
|
|
857
|
-
return w(s);
|
|
858
|
-
}
|
|
859
|
-
function S(E) {
|
|
860
|
-
function R(D, M, A, B, L) {
|
|
861
|
-
if (typeof E != "function")
|
|
862
|
-
return new m("Property `" + L + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
863
|
-
var F = D[M];
|
|
864
|
-
if (!Array.isArray(F)) {
|
|
865
|
-
var U = ae(F);
|
|
866
|
-
return new m("Invalid " + B + " `" + L + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected an array."));
|
|
867
|
-
}
|
|
868
|
-
for (var G = 0; G < F.length; G++) {
|
|
869
|
-
var z = E(F, G, A, B, L + "[" + G + "]", r);
|
|
870
|
-
if (z instanceof Error)
|
|
871
|
-
return z;
|
|
872
|
-
}
|
|
873
|
-
return null;
|
|
874
|
-
}
|
|
875
|
-
return w(R);
|
|
876
|
-
}
|
|
877
|
-
function N() {
|
|
878
|
-
function E(R, D, M, A, B) {
|
|
879
|
-
var L = R[D];
|
|
880
|
-
if (!a(L)) {
|
|
881
|
-
var F = ae(L);
|
|
882
|
-
return new m("Invalid " + A + " `" + B + "` of type " + ("`" + F + "` supplied to `" + M + "`, expected a single ReactElement."));
|
|
883
|
-
}
|
|
884
|
-
return null;
|
|
885
|
-
}
|
|
886
|
-
return w(E);
|
|
887
|
-
}
|
|
888
|
-
function b() {
|
|
889
|
-
function E(R, D, M, A, B) {
|
|
890
|
-
var L = R[D];
|
|
891
|
-
if (!e.isValidElementType(L)) {
|
|
892
|
-
var F = ae(L);
|
|
893
|
-
return new m("Invalid " + A + " `" + B + "` of type " + ("`" + F + "` supplied to `" + M + "`, expected a single ReactElement type."));
|
|
894
|
-
}
|
|
895
|
-
return null;
|
|
896
|
-
}
|
|
897
|
-
return w(E);
|
|
898
|
-
}
|
|
899
|
-
function j(E) {
|
|
900
|
-
function R(D, M, A, B, L) {
|
|
901
|
-
if (!(D[M] instanceof E)) {
|
|
902
|
-
var F = E.name || p, U = ft(D[M]);
|
|
903
|
-
return new m("Invalid " + B + " `" + L + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected ") + ("instance of `" + F + "`."));
|
|
904
|
-
}
|
|
905
|
-
return null;
|
|
906
|
-
}
|
|
907
|
-
return w(R);
|
|
908
|
-
}
|
|
909
|
-
function K(E) {
|
|
910
|
-
if (!Array.isArray(E))
|
|
911
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
912
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
913
|
-
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
914
|
-
function R(D, M, A, B, L) {
|
|
915
|
-
for (var F = D[M], U = 0; U < E.length; U++)
|
|
916
|
-
if (h(F, E[U]))
|
|
917
|
-
return null;
|
|
918
|
-
var G = JSON.stringify(E, function(Z, T) {
|
|
919
|
-
var le = ge(T);
|
|
920
|
-
return le === "symbol" ? String(T) : T;
|
|
921
|
-
});
|
|
922
|
-
return new m("Invalid " + B + " `" + L + "` of value `" + String(F) + "` " + ("supplied to `" + A + "`, expected one of " + G + "."));
|
|
923
|
-
}
|
|
924
|
-
return w(R);
|
|
925
|
-
}
|
|
926
|
-
function se(E) {
|
|
927
|
-
function R(D, M, A, B, L) {
|
|
928
|
-
if (typeof E != "function")
|
|
929
|
-
return new m("Property `" + L + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
930
|
-
var F = D[M], U = ae(F);
|
|
931
|
-
if (U !== "object")
|
|
932
|
-
return new m("Invalid " + B + " `" + L + "` of type " + ("`" + U + "` supplied to `" + A + "`, expected an object."));
|
|
933
|
-
for (var G in F)
|
|
934
|
-
if (n(F, G)) {
|
|
935
|
-
var z = E(F, G, A, B, L + "." + G, r);
|
|
936
|
-
if (z instanceof Error)
|
|
937
|
-
return z;
|
|
938
|
-
}
|
|
939
|
-
return null;
|
|
940
|
-
}
|
|
941
|
-
return w(R);
|
|
942
|
-
}
|
|
943
|
-
function Ve(E) {
|
|
944
|
-
if (!Array.isArray(E))
|
|
945
|
-
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
946
|
-
for (var R = 0; R < E.length; R++) {
|
|
947
|
-
var D = E[R];
|
|
948
|
-
if (typeof D != "function")
|
|
949
|
-
return i(
|
|
950
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ye(D) + " at index " + R + "."
|
|
951
|
-
), s;
|
|
952
|
-
}
|
|
953
|
-
function M(A, B, L, F, U) {
|
|
954
|
-
for (var G = [], z = 0; z < E.length; z++) {
|
|
955
|
-
var Z = E[z], T = Z(A, B, L, F, U, r);
|
|
956
|
-
if (T == null)
|
|
957
|
-
return null;
|
|
958
|
-
T.data && n(T.data, "expectedType") && G.push(T.data.expectedType);
|
|
959
|
-
}
|
|
960
|
-
var le = G.length > 0 ? ", expected one of type [" + G.join(", ") + "]" : "";
|
|
961
|
-
return new m("Invalid " + F + " `" + U + "` supplied to " + ("`" + L + "`" + le + "."));
|
|
962
|
-
}
|
|
963
|
-
return w(M);
|
|
964
|
-
}
|
|
965
|
-
function re() {
|
|
966
|
-
function E(R, D, M, A, B) {
|
|
967
|
-
return Oe(R[D]) ? null : new m("Invalid " + A + " `" + B + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
|
|
968
|
-
}
|
|
969
|
-
return w(E);
|
|
970
|
-
}
|
|
971
|
-
function Ge(E, R, D, M, A) {
|
|
972
|
-
return new m(
|
|
973
|
-
(E || "React class") + ": " + R + " type `" + D + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
974
|
-
);
|
|
975
|
-
}
|
|
976
|
-
function lt(E) {
|
|
977
|
-
function R(D, M, A, B, L) {
|
|
978
|
-
var F = D[M], U = ae(F);
|
|
979
|
-
if (U !== "object")
|
|
980
|
-
return new m("Invalid " + B + " `" + L + "` of type `" + U + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
981
|
-
for (var G in E) {
|
|
982
|
-
var z = E[G];
|
|
983
|
-
if (typeof z != "function")
|
|
984
|
-
return Ge(A, B, L, G, ge(z));
|
|
985
|
-
var Z = z(F, G, A, B, L + "." + G, r);
|
|
986
|
-
if (Z)
|
|
987
|
-
return Z;
|
|
988
|
-
}
|
|
989
|
-
return null;
|
|
990
|
-
}
|
|
991
|
-
return w(R);
|
|
992
|
-
}
|
|
993
|
-
function ct(E) {
|
|
994
|
-
function R(D, M, A, B, L) {
|
|
995
|
-
var F = D[M], U = ae(F);
|
|
996
|
-
if (U !== "object")
|
|
997
|
-
return new m("Invalid " + B + " `" + L + "` of type `" + U + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
998
|
-
var G = t({}, D[M], E);
|
|
999
|
-
for (var z in G) {
|
|
1000
|
-
var Z = E[z];
|
|
1001
|
-
if (n(E, z) && typeof Z != "function")
|
|
1002
|
-
return Ge(A, B, L, z, ge(Z));
|
|
1003
|
-
if (!Z)
|
|
1004
|
-
return new m(
|
|
1005
|
-
"Invalid " + B + " `" + L + "` key `" + z + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(D[M], null, " ") + `
|
|
1006
|
-
Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
|
|
1007
|
-
);
|
|
1008
|
-
var T = Z(F, z, A, B, L + "." + z, r);
|
|
1009
|
-
if (T)
|
|
1010
|
-
return T;
|
|
1011
|
-
}
|
|
1012
|
-
return null;
|
|
1013
|
-
}
|
|
1014
|
-
return w(R);
|
|
1015
|
-
}
|
|
1016
|
-
function Oe(E) {
|
|
1017
|
-
switch (typeof E) {
|
|
1018
|
-
case "number":
|
|
1019
|
-
case "string":
|
|
1020
|
-
case "undefined":
|
|
1021
|
-
return !0;
|
|
1022
|
-
case "boolean":
|
|
1023
|
-
return !E;
|
|
1024
|
-
case "object":
|
|
1025
|
-
if (Array.isArray(E))
|
|
1026
|
-
return E.every(Oe);
|
|
1027
|
-
if (E === null || a(E))
|
|
1028
|
-
return !0;
|
|
1029
|
-
var R = c(E);
|
|
1030
|
-
if (R) {
|
|
1031
|
-
var D = R.call(E), M;
|
|
1032
|
-
if (R !== E.entries) {
|
|
1033
|
-
for (; !(M = D.next()).done; )
|
|
1034
|
-
if (!Oe(M.value))
|
|
1035
|
-
return !1;
|
|
1036
|
-
} else
|
|
1037
|
-
for (; !(M = D.next()).done; ) {
|
|
1038
|
-
var A = M.value;
|
|
1039
|
-
if (A && !Oe(A[1]))
|
|
1040
|
-
return !1;
|
|
1041
|
-
}
|
|
1042
|
-
} else
|
|
1043
|
-
return !1;
|
|
1044
|
-
return !0;
|
|
1045
|
-
default:
|
|
1046
|
-
return !1;
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
function ut(E, R) {
|
|
1050
|
-
return E === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1;
|
|
1051
|
-
}
|
|
1052
|
-
function ae(E) {
|
|
1053
|
-
var R = typeof E;
|
|
1054
|
-
return Array.isArray(E) ? "array" : E instanceof RegExp ? "object" : ut(R, E) ? "symbol" : R;
|
|
1055
|
-
}
|
|
1056
|
-
function ge(E) {
|
|
1057
|
-
if (typeof E > "u" || E === null)
|
|
1058
|
-
return "" + E;
|
|
1059
|
-
var R = ae(E);
|
|
1060
|
-
if (R === "object") {
|
|
1061
|
-
if (E instanceof Date)
|
|
1062
|
-
return "date";
|
|
1063
|
-
if (E instanceof RegExp)
|
|
1064
|
-
return "regexp";
|
|
1065
|
-
}
|
|
1066
|
-
return R;
|
|
1067
|
-
}
|
|
1068
|
-
function Ye(E) {
|
|
1069
|
-
var R = ge(E);
|
|
1070
|
-
switch (R) {
|
|
1071
|
-
case "array":
|
|
1072
|
-
case "object":
|
|
1073
|
-
return "an " + R;
|
|
1074
|
-
case "boolean":
|
|
1075
|
-
case "date":
|
|
1076
|
-
case "regexp":
|
|
1077
|
-
return "a " + R;
|
|
1078
|
-
default:
|
|
1079
|
-
return R;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
function ft(E) {
|
|
1083
|
-
return !E.constructor || !E.constructor.name ? p : E.constructor.name;
|
|
1084
|
-
}
|
|
1085
|
-
return d.checkPropTypes = o, d.resetWarningCache = o.resetWarningCache, d.PropTypes = d, d;
|
|
1086
|
-
}, Et;
|
|
1087
|
-
}
|
|
1088
|
-
var Ot, cr;
|
|
1089
|
-
function Jn() {
|
|
1090
|
-
if (cr) return Ot;
|
|
1091
|
-
cr = 1;
|
|
1092
|
-
var e = /* @__PURE__ */ At();
|
|
1093
|
-
function t() {
|
|
1094
|
-
}
|
|
1095
|
-
function r() {
|
|
1096
|
-
}
|
|
1097
|
-
return r.resetWarningCache = t, Ot = function() {
|
|
1098
|
-
function n(s, a, l, u, f, c) {
|
|
1099
|
-
if (c !== e) {
|
|
1100
|
-
var p = new Error(
|
|
1101
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1102
|
-
);
|
|
1103
|
-
throw p.name = "Invariant Violation", p;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
n.isRequired = n;
|
|
1107
|
-
function o() {
|
|
1108
|
-
return n;
|
|
1109
|
-
}
|
|
1110
|
-
var i = {
|
|
1111
|
-
array: n,
|
|
1112
|
-
bigint: n,
|
|
1113
|
-
bool: n,
|
|
1114
|
-
func: n,
|
|
1115
|
-
number: n,
|
|
1116
|
-
object: n,
|
|
1117
|
-
string: n,
|
|
1118
|
-
symbol: n,
|
|
1119
|
-
any: n,
|
|
1120
|
-
arrayOf: o,
|
|
1121
|
-
element: n,
|
|
1122
|
-
elementType: n,
|
|
1123
|
-
instanceOf: o,
|
|
1124
|
-
node: n,
|
|
1125
|
-
objectOf: o,
|
|
1126
|
-
oneOf: o,
|
|
1127
|
-
oneOfType: o,
|
|
1128
|
-
shape: o,
|
|
1129
|
-
exact: o,
|
|
1130
|
-
checkPropTypes: r,
|
|
1131
|
-
resetWarningCache: t
|
|
1132
|
-
};
|
|
1133
|
-
return i.PropTypes = i, i;
|
|
1134
|
-
}, Ot;
|
|
1135
|
-
}
|
|
1136
|
-
var ur;
|
|
1137
|
-
function Xn() {
|
|
1138
|
-
if (ur) return Je.exports;
|
|
1139
|
-
if (ur = 1, process.env.NODE_ENV !== "production") {
|
|
1140
|
-
var e = Lr(), t = !0;
|
|
1141
|
-
Je.exports = /* @__PURE__ */ Kn()(e.isElement, t);
|
|
1142
|
-
} else
|
|
1143
|
-
Je.exports = /* @__PURE__ */ Jn()();
|
|
1144
|
-
return Je.exports;
|
|
1145
|
-
}
|
|
1146
|
-
var Zn = /* @__PURE__ */ Xn();
|
|
1147
|
-
const O = /* @__PURE__ */ Fe(Zn);
|
|
1148
|
-
/**!
|
|
1149
|
-
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
1150
|
-
* @version 1.16.1
|
|
1151
|
-
* @license
|
|
1152
|
-
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
1153
|
-
*
|
|
1154
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1155
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
1156
|
-
* in the Software without restriction, including without limitation the rights
|
|
1157
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1158
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
1159
|
-
* furnished to do so, subject to the following conditions:
|
|
1160
|
-
*
|
|
1161
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
1162
|
-
* copies or substantial portions of the Software.
|
|
1163
|
-
*
|
|
1164
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1165
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1166
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1167
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1168
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1169
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1170
|
-
* SOFTWARE.
|
|
1171
|
-
*/
|
|
1172
|
-
var De = typeof window < "u" && typeof document < "u" && typeof navigator < "u", Qn = function() {
|
|
1173
|
-
for (var e = ["Edge", "Trident", "Firefox"], t = 0; t < e.length; t += 1)
|
|
1174
|
-
if (De && navigator.userAgent.indexOf(e[t]) >= 0)
|
|
1175
|
-
return 1;
|
|
1176
|
-
return 0;
|
|
1177
|
-
}();
|
|
1178
|
-
function eo(e) {
|
|
1179
|
-
var t = !1;
|
|
1180
|
-
return function() {
|
|
1181
|
-
t || (t = !0, window.Promise.resolve().then(function() {
|
|
1182
|
-
t = !1, e();
|
|
1183
|
-
}));
|
|
1184
|
-
};
|
|
1185
|
-
}
|
|
1186
|
-
function to(e) {
|
|
1187
|
-
var t = !1;
|
|
1188
|
-
return function() {
|
|
1189
|
-
t || (t = !0, setTimeout(function() {
|
|
1190
|
-
t = !1, e();
|
|
1191
|
-
}, Qn));
|
|
1192
|
-
};
|
|
1193
|
-
}
|
|
1194
|
-
var ro = De && window.Promise, no = ro ? eo : to;
|
|
1195
|
-
function Fr(e) {
|
|
1196
|
-
var t = {};
|
|
1197
|
-
return e && t.toString.call(e) === "[object Function]";
|
|
1198
|
-
}
|
|
1199
|
-
function Ee(e, t) {
|
|
1200
|
-
if (e.nodeType !== 1)
|
|
1201
|
-
return [];
|
|
1202
|
-
var r = e.ownerDocument.defaultView, n = r.getComputedStyle(e, null);
|
|
1203
|
-
return t ? n[t] : n;
|
|
1204
|
-
}
|
|
1205
|
-
function kt(e) {
|
|
1206
|
-
return e.nodeName === "HTML" ? e : e.parentNode || e.host;
|
|
1207
|
-
}
|
|
1208
|
-
function $e(e) {
|
|
1209
|
-
if (!e)
|
|
1210
|
-
return document.body;
|
|
1211
|
-
switch (e.nodeName) {
|
|
1212
|
-
case "HTML":
|
|
1213
|
-
case "BODY":
|
|
1214
|
-
return e.ownerDocument.body;
|
|
1215
|
-
case "#document":
|
|
1216
|
-
return e.body;
|
|
1217
|
-
}
|
|
1218
|
-
var t = Ee(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
1219
|
-
return /(auto|scroll|overlay)/.test(r + o + n) ? e : $e(kt(e));
|
|
1220
|
-
}
|
|
1221
|
-
function Dr(e) {
|
|
1222
|
-
return e && e.referenceNode ? e.referenceNode : e;
|
|
1223
|
-
}
|
|
1224
|
-
var fr = De && !!(window.MSInputMethodContext && document.documentMode), pr = De && /MSIE 10/.test(navigator.userAgent);
|
|
1225
|
-
function Re(e) {
|
|
1226
|
-
return e === 11 ? fr : e === 10 ? pr : fr || pr;
|
|
1227
|
-
}
|
|
1228
|
-
function Se(e) {
|
|
1229
|
-
if (!e)
|
|
1230
|
-
return document.documentElement;
|
|
1231
|
-
for (var t = Re(10) ? document.body : null, r = e.offsetParent || null; r === t && e.nextElementSibling; )
|
|
1232
|
-
r = (e = e.nextElementSibling).offsetParent;
|
|
1233
|
-
var n = r && r.nodeName;
|
|
1234
|
-
return !n || n === "BODY" || n === "HTML" ? e ? e.ownerDocument.documentElement : document.documentElement : ["TH", "TD", "TABLE"].indexOf(r.nodeName) !== -1 && Ee(r, "position") === "static" ? Se(r) : r;
|
|
1235
|
-
}
|
|
1236
|
-
function oo(e) {
|
|
1237
|
-
var t = e.nodeName;
|
|
1238
|
-
return t === "BODY" ? !1 : t === "HTML" || Se(e.firstElementChild) === e;
|
|
1239
|
-
}
|
|
1240
|
-
function Pt(e) {
|
|
1241
|
-
return e.parentNode !== null ? Pt(e.parentNode) : e;
|
|
1242
|
-
}
|
|
1243
|
-
function nt(e, t) {
|
|
1244
|
-
if (!e || !e.nodeType || !t || !t.nodeType)
|
|
1245
|
-
return document.documentElement;
|
|
1246
|
-
var r = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, n = r ? e : t, o = r ? t : e, i = document.createRange();
|
|
1247
|
-
i.setStart(n, 0), i.setEnd(o, 0);
|
|
1248
|
-
var s = i.commonAncestorContainer;
|
|
1249
|
-
if (e !== s && t !== s || n.contains(o))
|
|
1250
|
-
return oo(s) ? s : Se(s);
|
|
1251
|
-
var a = Pt(e);
|
|
1252
|
-
return a.host ? nt(a.host, t) : nt(e, Pt(t).host);
|
|
1253
|
-
}
|
|
1254
|
-
function Te(e) {
|
|
1255
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "top", r = t === "top" ? "scrollTop" : "scrollLeft", n = e.nodeName;
|
|
1256
|
-
if (n === "BODY" || n === "HTML") {
|
|
1257
|
-
var o = e.ownerDocument.documentElement, i = e.ownerDocument.scrollingElement || o;
|
|
1258
|
-
return i[r];
|
|
1259
|
-
}
|
|
1260
|
-
return e[r];
|
|
1261
|
-
}
|
|
1262
|
-
function io(e, t) {
|
|
1263
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = Te(t, "top"), o = Te(t, "left"), i = r ? -1 : 1;
|
|
1264
|
-
return e.top += n * i, e.bottom += n * i, e.left += o * i, e.right += o * i, e;
|
|
1265
|
-
}
|
|
1266
|
-
function dr(e, t) {
|
|
1267
|
-
var r = t === "x" ? "Left" : "Top", n = r === "Left" ? "Right" : "Bottom";
|
|
1268
|
-
return parseFloat(e["border" + r + "Width"]) + parseFloat(e["border" + n + "Width"]);
|
|
1269
|
-
}
|
|
1270
|
-
function hr(e, t, r, n) {
|
|
1271
|
-
return Math.max(t["offset" + e], t["scroll" + e], r["client" + e], r["offset" + e], r["scroll" + e], Re(10) ? parseInt(r["offset" + e]) + parseInt(n["margin" + (e === "Height" ? "Top" : "Left")]) + parseInt(n["margin" + (e === "Height" ? "Bottom" : "Right")]) : 0);
|
|
1272
|
-
}
|
|
1273
|
-
function $r(e) {
|
|
1274
|
-
var t = e.body, r = e.documentElement, n = Re(10) && getComputedStyle(r);
|
|
1275
|
-
return {
|
|
1276
|
-
height: hr("Height", t, r, n),
|
|
1277
|
-
width: hr("Width", t, r, n)
|
|
1278
|
-
};
|
|
1279
|
-
}
|
|
1280
|
-
var so = function(e, t) {
|
|
1281
|
-
if (!(e instanceof t))
|
|
1282
|
-
throw new TypeError("Cannot call a class as a function");
|
|
1283
|
-
}, ao = /* @__PURE__ */ function() {
|
|
1284
|
-
function e(t, r) {
|
|
1285
|
-
for (var n = 0; n < r.length; n++) {
|
|
1286
|
-
var o = r[n];
|
|
1287
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, o.key, o);
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
return function(t, r, n) {
|
|
1291
|
-
return r && e(t.prototype, r), n && e(t, n), t;
|
|
1292
|
-
};
|
|
1293
|
-
}(), Pe = function(e, t, r) {
|
|
1294
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
1295
|
-
value: r,
|
|
1296
|
-
enumerable: !0,
|
|
1297
|
-
configurable: !0,
|
|
1298
|
-
writable: !0
|
|
1299
|
-
}) : e[t] = r, e;
|
|
1300
|
-
}, te = Object.assign || function(e) {
|
|
1301
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1302
|
-
var r = arguments[t];
|
|
1303
|
-
for (var n in r)
|
|
1304
|
-
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
1305
|
-
}
|
|
1306
|
-
return e;
|
|
1307
|
-
};
|
|
1308
|
-
function me(e) {
|
|
1309
|
-
return te({}, e, {
|
|
1310
|
-
right: e.left + e.width,
|
|
1311
|
-
bottom: e.top + e.height
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1314
|
-
function xt(e) {
|
|
1315
|
-
var t = {};
|
|
1316
|
-
try {
|
|
1317
|
-
if (Re(10)) {
|
|
1318
|
-
t = e.getBoundingClientRect();
|
|
1319
|
-
var r = Te(e, "top"), n = Te(e, "left");
|
|
1320
|
-
t.top += r, t.left += n, t.bottom += r, t.right += n;
|
|
1321
|
-
} else
|
|
1322
|
-
t = e.getBoundingClientRect();
|
|
1323
|
-
} catch {
|
|
1324
|
-
}
|
|
1325
|
-
var o = {
|
|
1326
|
-
left: t.left,
|
|
1327
|
-
top: t.top,
|
|
1328
|
-
width: t.right - t.left,
|
|
1329
|
-
height: t.bottom - t.top
|
|
1330
|
-
}, i = e.nodeName === "HTML" ? $r(e.ownerDocument) : {}, s = i.width || e.clientWidth || o.width, a = i.height || e.clientHeight || o.height, l = e.offsetWidth - s, u = e.offsetHeight - a;
|
|
1331
|
-
if (l || u) {
|
|
1332
|
-
var f = Ee(e);
|
|
1333
|
-
l -= dr(f, "x"), u -= dr(f, "y"), o.width -= l, o.height -= u;
|
|
1334
|
-
}
|
|
1335
|
-
return me(o);
|
|
1336
|
-
}
|
|
1337
|
-
function jt(e, t) {
|
|
1338
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, n = Re(10), o = t.nodeName === "HTML", i = xt(e), s = xt(t), a = $e(e), l = Ee(t), u = parseFloat(l.borderTopWidth), f = parseFloat(l.borderLeftWidth);
|
|
1339
|
-
r && o && (s.top = Math.max(s.top, 0), s.left = Math.max(s.left, 0));
|
|
1340
|
-
var c = me({
|
|
1341
|
-
top: i.top - s.top - u,
|
|
1342
|
-
left: i.left - s.left - f,
|
|
1343
|
-
width: i.width,
|
|
1344
|
-
height: i.height
|
|
1345
|
-
});
|
|
1346
|
-
if (c.marginTop = 0, c.marginLeft = 0, !n && o) {
|
|
1347
|
-
var p = parseFloat(l.marginTop), d = parseFloat(l.marginLeft);
|
|
1348
|
-
c.top -= u - p, c.bottom -= u - p, c.left -= f - d, c.right -= f - d, c.marginTop = p, c.marginLeft = d;
|
|
1349
|
-
}
|
|
1350
|
-
return (n && !r ? t.contains(a) : t === a && a.nodeName !== "BODY") && (c = io(c, t)), c;
|
|
1351
|
-
}
|
|
1352
|
-
function lo(e) {
|
|
1353
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = e.ownerDocument.documentElement, n = jt(e, r), o = Math.max(r.clientWidth, window.innerWidth || 0), i = Math.max(r.clientHeight, window.innerHeight || 0), s = t ? 0 : Te(r), a = t ? 0 : Te(r, "left"), l = {
|
|
1354
|
-
top: s - n.top + n.marginTop,
|
|
1355
|
-
left: a - n.left + n.marginLeft,
|
|
1356
|
-
width: o,
|
|
1357
|
-
height: i
|
|
1358
|
-
};
|
|
1359
|
-
return me(l);
|
|
1360
|
-
}
|
|
1361
|
-
function Wr(e) {
|
|
1362
|
-
var t = e.nodeName;
|
|
1363
|
-
if (t === "BODY" || t === "HTML")
|
|
1364
|
-
return !1;
|
|
1365
|
-
if (Ee(e, "position") === "fixed")
|
|
1366
|
-
return !0;
|
|
1367
|
-
var r = kt(e);
|
|
1368
|
-
return r ? Wr(r) : !1;
|
|
1369
|
-
}
|
|
1370
|
-
function Br(e) {
|
|
1371
|
-
if (!e || !e.parentElement || Re())
|
|
1372
|
-
return document.documentElement;
|
|
1373
|
-
for (var t = e.parentElement; t && Ee(t, "transform") === "none"; )
|
|
1374
|
-
t = t.parentElement;
|
|
1375
|
-
return t || document.documentElement;
|
|
1376
|
-
}
|
|
1377
|
-
function Lt(e, t, r, n) {
|
|
1378
|
-
var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1, i = { top: 0, left: 0 }, s = o ? Br(e) : nt(e, Dr(t));
|
|
1379
|
-
if (n === "viewport")
|
|
1380
|
-
i = lo(s, o);
|
|
1381
|
-
else {
|
|
1382
|
-
var a = void 0;
|
|
1383
|
-
n === "scrollParent" ? (a = $e(kt(t)), a.nodeName === "BODY" && (a = e.ownerDocument.documentElement)) : n === "window" ? a = e.ownerDocument.documentElement : a = n;
|
|
1384
|
-
var l = jt(a, s, o);
|
|
1385
|
-
if (a.nodeName === "HTML" && !Wr(s)) {
|
|
1386
|
-
var u = $r(e.ownerDocument), f = u.height, c = u.width;
|
|
1387
|
-
i.top += l.top - l.marginTop, i.bottom = f + l.top, i.left += l.left - l.marginLeft, i.right = c + l.left;
|
|
1388
|
-
} else
|
|
1389
|
-
i = l;
|
|
1390
|
-
}
|
|
1391
|
-
r = r || 0;
|
|
1392
|
-
var p = typeof r == "number";
|
|
1393
|
-
return i.left += p ? r : r.left || 0, i.top += p ? r : r.top || 0, i.right -= p ? r : r.right || 0, i.bottom -= p ? r : r.bottom || 0, i;
|
|
1394
|
-
}
|
|
1395
|
-
function co(e) {
|
|
1396
|
-
var t = e.width, r = e.height;
|
|
1397
|
-
return t * r;
|
|
1398
|
-
}
|
|
1399
|
-
function Ur(e, t, r, n, o) {
|
|
1400
|
-
var i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0;
|
|
1401
|
-
if (e.indexOf("auto") === -1)
|
|
1402
|
-
return e;
|
|
1403
|
-
var s = Lt(r, n, i, o), a = {
|
|
1404
|
-
top: {
|
|
1405
|
-
width: s.width,
|
|
1406
|
-
height: t.top - s.top
|
|
1407
|
-
},
|
|
1408
|
-
right: {
|
|
1409
|
-
width: s.right - t.right,
|
|
1410
|
-
height: s.height
|
|
1411
|
-
},
|
|
1412
|
-
bottom: {
|
|
1413
|
-
width: s.width,
|
|
1414
|
-
height: s.bottom - t.bottom
|
|
1415
|
-
},
|
|
1416
|
-
left: {
|
|
1417
|
-
width: t.left - s.left,
|
|
1418
|
-
height: s.height
|
|
1419
|
-
}
|
|
1420
|
-
}, l = Object.keys(a).map(function(p) {
|
|
1421
|
-
return te({
|
|
1422
|
-
key: p
|
|
1423
|
-
}, a[p], {
|
|
1424
|
-
area: co(a[p])
|
|
1425
|
-
});
|
|
1426
|
-
}).sort(function(p, d) {
|
|
1427
|
-
return d.area - p.area;
|
|
1428
|
-
}), u = l.filter(function(p) {
|
|
1429
|
-
var d = p.width, h = p.height;
|
|
1430
|
-
return d >= r.clientWidth && h >= r.clientHeight;
|
|
1431
|
-
}), f = u.length > 0 ? u[0].key : l[0].key, c = e.split("-")[1];
|
|
1432
|
-
return f + (c ? "-" + c : "");
|
|
1433
|
-
}
|
|
1434
|
-
function zr(e, t, r) {
|
|
1435
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null, o = n ? Br(t) : nt(t, Dr(r));
|
|
1436
|
-
return jt(r, o, n);
|
|
1437
|
-
}
|
|
1438
|
-
function qr(e) {
|
|
1439
|
-
var t = e.ownerDocument.defaultView, r = t.getComputedStyle(e), n = parseFloat(r.marginTop || 0) + parseFloat(r.marginBottom || 0), o = parseFloat(r.marginLeft || 0) + parseFloat(r.marginRight || 0), i = {
|
|
1440
|
-
width: e.offsetWidth + o,
|
|
1441
|
-
height: e.offsetHeight + n
|
|
1442
|
-
};
|
|
1443
|
-
return i;
|
|
1444
|
-
}
|
|
1445
|
-
function ot(e) {
|
|
1446
|
-
var t = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
1447
|
-
return e.replace(/left|right|bottom|top/g, function(r) {
|
|
1448
|
-
return t[r];
|
|
1449
|
-
});
|
|
1450
|
-
}
|
|
1451
|
-
function Hr(e, t, r) {
|
|
1452
|
-
r = r.split("-")[0];
|
|
1453
|
-
var n = qr(e), o = {
|
|
1454
|
-
width: n.width,
|
|
1455
|
-
height: n.height
|
|
1456
|
-
}, i = ["right", "left"].indexOf(r) !== -1, s = i ? "top" : "left", a = i ? "left" : "top", l = i ? "height" : "width", u = i ? "width" : "height";
|
|
1457
|
-
return o[s] = t[s] + t[l] / 2 - n[l] / 2, r === a ? o[a] = t[a] - n[u] : o[a] = t[ot(a)], o;
|
|
1458
|
-
}
|
|
1459
|
-
function We(e, t) {
|
|
1460
|
-
return Array.prototype.find ? e.find(t) : e.filter(t)[0];
|
|
1461
|
-
}
|
|
1462
|
-
function uo(e, t, r) {
|
|
1463
|
-
if (Array.prototype.findIndex)
|
|
1464
|
-
return e.findIndex(function(o) {
|
|
1465
|
-
return o[t] === r;
|
|
1466
|
-
});
|
|
1467
|
-
var n = We(e, function(o) {
|
|
1468
|
-
return o[t] === r;
|
|
1469
|
-
});
|
|
1470
|
-
return e.indexOf(n);
|
|
1471
|
-
}
|
|
1472
|
-
function Vr(e, t, r) {
|
|
1473
|
-
var n = r === void 0 ? e : e.slice(0, uo(e, "name", r));
|
|
1474
|
-
return n.forEach(function(o) {
|
|
1475
|
-
o.function && console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
|
|
1476
|
-
var i = o.function || o.fn;
|
|
1477
|
-
o.enabled && Fr(i) && (t.offsets.popper = me(t.offsets.popper), t.offsets.reference = me(t.offsets.reference), t = i(t, o));
|
|
1478
|
-
}), t;
|
|
1479
|
-
}
|
|
1480
|
-
function fo() {
|
|
1481
|
-
if (!this.state.isDestroyed) {
|
|
1482
|
-
var e = {
|
|
1483
|
-
instance: this,
|
|
1484
|
-
styles: {},
|
|
1485
|
-
arrowStyles: {},
|
|
1486
|
-
attributes: {},
|
|
1487
|
-
flipped: !1,
|
|
1488
|
-
offsets: {}
|
|
1489
|
-
};
|
|
1490
|
-
e.offsets.reference = zr(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = Ur(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = Hr(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? "fixed" : "absolute", e = Vr(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e));
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
function Gr(e, t) {
|
|
1494
|
-
return e.some(function(r) {
|
|
1495
|
-
var n = r.name, o = r.enabled;
|
|
1496
|
-
return o && n === t;
|
|
1497
|
-
});
|
|
1498
|
-
}
|
|
1499
|
-
function Mt(e) {
|
|
1500
|
-
for (var t = [!1, "ms", "Webkit", "Moz", "O"], r = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length; n++) {
|
|
1501
|
-
var o = t[n], i = o ? "" + o + r : e;
|
|
1502
|
-
if (typeof document.body.style[i] < "u")
|
|
1503
|
-
return i;
|
|
1504
|
-
}
|
|
1505
|
-
return null;
|
|
1506
|
-
}
|
|
1507
|
-
function po() {
|
|
1508
|
-
return this.state.isDestroyed = !0, Gr(this.modifiers, "applyStyle") && (this.popper.removeAttribute("x-placement"), this.popper.style.position = "", this.popper.style.top = "", this.popper.style.left = "", this.popper.style.right = "", this.popper.style.bottom = "", this.popper.style.willChange = "", this.popper.style[Mt("transform")] = ""), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this;
|
|
1509
|
-
}
|
|
1510
|
-
function Yr(e) {
|
|
1511
|
-
var t = e.ownerDocument;
|
|
1512
|
-
return t ? t.defaultView : window;
|
|
1513
|
-
}
|
|
1514
|
-
function Kr(e, t, r, n) {
|
|
1515
|
-
var o = e.nodeName === "BODY", i = o ? e.ownerDocument.defaultView : e;
|
|
1516
|
-
i.addEventListener(t, r, { passive: !0 }), o || Kr($e(i.parentNode), t, r, n), n.push(i);
|
|
1517
|
-
}
|
|
1518
|
-
function ho(e, t, r, n) {
|
|
1519
|
-
r.updateBound = n, Yr(e).addEventListener("resize", r.updateBound, { passive: !0 });
|
|
1520
|
-
var o = $e(e);
|
|
1521
|
-
return Kr(o, "scroll", r.updateBound, r.scrollParents), r.scrollElement = o, r.eventsEnabled = !0, r;
|
|
1522
|
-
}
|
|
1523
|
-
function yo() {
|
|
1524
|
-
this.state.eventsEnabled || (this.state = ho(this.reference, this.options, this.state, this.scheduleUpdate));
|
|
1525
|
-
}
|
|
1526
|
-
function mo(e, t) {
|
|
1527
|
-
return Yr(e).removeEventListener("resize", t.updateBound), t.scrollParents.forEach(function(r) {
|
|
1528
|
-
r.removeEventListener("scroll", t.updateBound);
|
|
1529
|
-
}), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t;
|
|
1530
|
-
}
|
|
1531
|
-
function vo() {
|
|
1532
|
-
this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = mo(this.reference, this.state));
|
|
1533
|
-
}
|
|
1534
|
-
function Ft(e) {
|
|
1535
|
-
return e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
|
|
1536
|
-
}
|
|
1537
|
-
function Ct(e, t) {
|
|
1538
|
-
Object.keys(t).forEach(function(r) {
|
|
1539
|
-
var n = "";
|
|
1540
|
-
["width", "height", "top", "right", "bottom", "left"].indexOf(r) !== -1 && Ft(t[r]) && (n = "px"), e.style[r] = t[r] + n;
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
function go(e, t) {
|
|
1544
|
-
Object.keys(t).forEach(function(r) {
|
|
1545
|
-
var n = t[r];
|
|
1546
|
-
n !== !1 ? e.setAttribute(r, t[r]) : e.removeAttribute(r);
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
function bo(e) {
|
|
1550
|
-
return Ct(e.instance.popper, e.styles), go(e.instance.popper, e.attributes), e.arrowElement && Object.keys(e.arrowStyles).length && Ct(e.arrowElement, e.arrowStyles), e;
|
|
1551
|
-
}
|
|
1552
|
-
function Eo(e, t, r, n, o) {
|
|
1553
|
-
var i = zr(o, t, e, r.positionFixed), s = Ur(r.placement, i, t, e, r.modifiers.flip.boundariesElement, r.modifiers.flip.padding);
|
|
1554
|
-
return t.setAttribute("x-placement", s), Ct(t, { position: r.positionFixed ? "fixed" : "absolute" }), r;
|
|
1555
|
-
}
|
|
1556
|
-
function Oo(e, t) {
|
|
1557
|
-
var r = e.offsets, n = r.popper, o = r.reference, i = Math.round, s = Math.floor, a = function(g) {
|
|
1558
|
-
return g;
|
|
1559
|
-
}, l = i(o.width), u = i(n.width), f = ["left", "right"].indexOf(e.placement) !== -1, c = e.placement.indexOf("-") !== -1, p = l % 2 === u % 2, d = l % 2 === 1 && u % 2 === 1, h = t ? f || c || p ? i : s : a, m = t ? i : a;
|
|
1560
|
-
return {
|
|
1561
|
-
left: h(d && !c && t ? n.left - 1 : n.left),
|
|
1562
|
-
top: m(n.top),
|
|
1563
|
-
bottom: m(n.bottom),
|
|
1564
|
-
right: h(n.right)
|
|
1565
|
-
};
|
|
1566
|
-
}
|
|
1567
|
-
var wo = De && /Firefox/i.test(navigator.userAgent);
|
|
1568
|
-
function So(e, t) {
|
|
1569
|
-
var r = t.x, n = t.y, o = e.offsets.popper, i = We(e.instance.modifiers, function(S) {
|
|
1570
|
-
return S.name === "applyStyle";
|
|
1571
|
-
}).gpuAcceleration;
|
|
1572
|
-
i !== void 0 && console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");
|
|
1573
|
-
var s = i !== void 0 ? i : t.gpuAcceleration, a = Se(e.instance.popper), l = xt(a), u = {
|
|
1574
|
-
position: o.position
|
|
1575
|
-
}, f = Oo(e, window.devicePixelRatio < 2 || !wo), c = r === "bottom" ? "top" : "bottom", p = n === "right" ? "left" : "right", d = Mt("transform"), h = void 0, m = void 0;
|
|
1576
|
-
if (c === "bottom" ? a.nodeName === "HTML" ? m = -a.clientHeight + f.bottom : m = -l.height + f.bottom : m = f.top, p === "right" ? a.nodeName === "HTML" ? h = -a.clientWidth + f.right : h = -l.width + f.right : h = f.left, s && d)
|
|
1577
|
-
u[d] = "translate3d(" + h + "px, " + m + "px, 0)", u[c] = 0, u[p] = 0, u.willChange = "transform";
|
|
1578
|
-
else {
|
|
1579
|
-
var w = c === "bottom" ? -1 : 1, g = p === "right" ? -1 : 1;
|
|
1580
|
-
u[c] = m * w, u[p] = h * g, u.willChange = c + ", " + p;
|
|
1581
|
-
}
|
|
1582
|
-
var v = {
|
|
1583
|
-
"x-placement": e.placement
|
|
1584
|
-
};
|
|
1585
|
-
return e.attributes = te({}, v, e.attributes), e.styles = te({}, u, e.styles), e.arrowStyles = te({}, e.offsets.arrow, e.arrowStyles), e;
|
|
1586
|
-
}
|
|
1587
|
-
function Jr(e, t, r) {
|
|
1588
|
-
var n = We(e, function(a) {
|
|
1589
|
-
var l = a.name;
|
|
1590
|
-
return l === t;
|
|
1591
|
-
}), o = !!n && e.some(function(a) {
|
|
1592
|
-
return a.name === r && a.enabled && a.order < n.order;
|
|
1593
|
-
});
|
|
1594
|
-
if (!o) {
|
|
1595
|
-
var i = "`" + t + "`", s = "`" + r + "`";
|
|
1596
|
-
console.warn(s + " modifier is required by " + i + " modifier in order to work, be sure to include it before " + i + "!");
|
|
1597
|
-
}
|
|
1598
|
-
return o;
|
|
1599
|
-
}
|
|
1600
|
-
function To(e, t) {
|
|
1601
|
-
var r;
|
|
1602
|
-
if (!Jr(e.instance.modifiers, "arrow", "keepTogether"))
|
|
1603
|
-
return e;
|
|
1604
|
-
var n = t.element;
|
|
1605
|
-
if (typeof n == "string") {
|
|
1606
|
-
if (n = e.instance.popper.querySelector(n), !n)
|
|
1607
|
-
return e;
|
|
1608
|
-
} else if (!e.instance.popper.contains(n))
|
|
1609
|
-
return console.warn("WARNING: `arrow.element` must be child of its popper element!"), e;
|
|
1610
|
-
var o = e.placement.split("-")[0], i = e.offsets, s = i.popper, a = i.reference, l = ["left", "right"].indexOf(o) !== -1, u = l ? "height" : "width", f = l ? "Top" : "Left", c = f.toLowerCase(), p = l ? "left" : "top", d = l ? "bottom" : "right", h = qr(n)[u];
|
|
1611
|
-
a[d] - h < s[c] && (e.offsets.popper[c] -= s[c] - (a[d] - h)), a[c] + h > s[d] && (e.offsets.popper[c] += a[c] + h - s[d]), e.offsets.popper = me(e.offsets.popper);
|
|
1612
|
-
var m = a[c] + a[u] / 2 - h / 2, w = Ee(e.instance.popper), g = parseFloat(w["margin" + f]), v = parseFloat(w["border" + f + "Width"]), S = m - e.offsets.popper[c] - g - v;
|
|
1613
|
-
return S = Math.max(Math.min(s[u] - h, S), 0), e.arrowElement = n, e.offsets.arrow = (r = {}, Pe(r, c, Math.round(S)), Pe(r, p, ""), r), e;
|
|
1614
|
-
}
|
|
1615
|
-
function Po(e) {
|
|
1616
|
-
return e === "end" ? "start" : e === "start" ? "end" : e;
|
|
1617
|
-
}
|
|
1618
|
-
var Xr = ["auto-start", "auto", "auto-end", "top-start", "top", "top-end", "right-start", "right", "right-end", "bottom-end", "bottom", "bottom-start", "left-end", "left", "left-start"], wt = Xr.slice(3);
|
|
1619
|
-
function yr(e) {
|
|
1620
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, r = wt.indexOf(e), n = wt.slice(r + 1).concat(wt.slice(0, r));
|
|
1621
|
-
return t ? n.reverse() : n;
|
|
1622
|
-
}
|
|
1623
|
-
var St = {
|
|
1624
|
-
FLIP: "flip",
|
|
1625
|
-
CLOCKWISE: "clockwise",
|
|
1626
|
-
COUNTERCLOCKWISE: "counterclockwise"
|
|
1627
|
-
};
|
|
1628
|
-
function xo(e, t) {
|
|
1629
|
-
if (Gr(e.instance.modifiers, "inner") || e.flipped && e.placement === e.originalPlacement)
|
|
1630
|
-
return e;
|
|
1631
|
-
var r = Lt(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), n = e.placement.split("-")[0], o = ot(n), i = e.placement.split("-")[1] || "", s = [];
|
|
1632
|
-
switch (t.behavior) {
|
|
1633
|
-
case St.FLIP:
|
|
1634
|
-
s = [n, o];
|
|
1635
|
-
break;
|
|
1636
|
-
case St.CLOCKWISE:
|
|
1637
|
-
s = yr(n);
|
|
1638
|
-
break;
|
|
1639
|
-
case St.COUNTERCLOCKWISE:
|
|
1640
|
-
s = yr(n, !0);
|
|
1641
|
-
break;
|
|
1642
|
-
default:
|
|
1643
|
-
s = t.behavior;
|
|
1644
|
-
}
|
|
1645
|
-
return s.forEach(function(a, l) {
|
|
1646
|
-
if (n !== a || s.length === l + 1)
|
|
1647
|
-
return e;
|
|
1648
|
-
n = e.placement.split("-")[0], o = ot(n);
|
|
1649
|
-
var u = e.offsets.popper, f = e.offsets.reference, c = Math.floor, p = n === "left" && c(u.right) > c(f.left) || n === "right" && c(u.left) < c(f.right) || n === "top" && c(u.bottom) > c(f.top) || n === "bottom" && c(u.top) < c(f.bottom), d = c(u.left) < c(r.left), h = c(u.right) > c(r.right), m = c(u.top) < c(r.top), w = c(u.bottom) > c(r.bottom), g = n === "left" && d || n === "right" && h || n === "top" && m || n === "bottom" && w, v = ["top", "bottom"].indexOf(n) !== -1, S = !!t.flipVariations && (v && i === "start" && d || v && i === "end" && h || !v && i === "start" && m || !v && i === "end" && w), N = !!t.flipVariationsByContent && (v && i === "start" && h || v && i === "end" && d || !v && i === "start" && w || !v && i === "end" && m), b = S || N;
|
|
1650
|
-
(p || g || b) && (e.flipped = !0, (p || g) && (n = s[l + 1]), b && (i = Po(i)), e.placement = n + (i ? "-" + i : ""), e.offsets.popper = te({}, e.offsets.popper, Hr(e.instance.popper, e.offsets.reference, e.placement)), e = Vr(e.instance.modifiers, e, "flip"));
|
|
1651
|
-
}), e;
|
|
1652
|
-
}
|
|
1653
|
-
function Co(e) {
|
|
1654
|
-
var t = e.offsets, r = t.popper, n = t.reference, o = e.placement.split("-")[0], i = Math.floor, s = ["top", "bottom"].indexOf(o) !== -1, a = s ? "right" : "bottom", l = s ? "left" : "top", u = s ? "width" : "height";
|
|
1655
|
-
return r[a] < i(n[l]) && (e.offsets.popper[l] = i(n[l]) - r[u]), r[l] > i(n[a]) && (e.offsets.popper[l] = i(n[a])), e;
|
|
1656
|
-
}
|
|
1657
|
-
function Ro(e, t, r, n) {
|
|
1658
|
-
var o = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), i = +o[1], s = o[2];
|
|
1659
|
-
if (!i)
|
|
1660
|
-
return e;
|
|
1661
|
-
if (s.indexOf("%") === 0) {
|
|
1662
|
-
var a = void 0;
|
|
1663
|
-
switch (s) {
|
|
1664
|
-
case "%p":
|
|
1665
|
-
a = r;
|
|
1666
|
-
break;
|
|
1667
|
-
case "%":
|
|
1668
|
-
case "%r":
|
|
1669
|
-
default:
|
|
1670
|
-
a = n;
|
|
1671
|
-
}
|
|
1672
|
-
var l = me(a);
|
|
1673
|
-
return l[t] / 100 * i;
|
|
1674
|
-
} else if (s === "vh" || s === "vw") {
|
|
1675
|
-
var u = void 0;
|
|
1676
|
-
return s === "vh" ? u = Math.max(document.documentElement.clientHeight, window.innerHeight || 0) : u = Math.max(document.documentElement.clientWidth, window.innerWidth || 0), u / 100 * i;
|
|
1677
|
-
} else
|
|
1678
|
-
return i;
|
|
1679
|
-
}
|
|
1680
|
-
function No(e, t, r, n) {
|
|
1681
|
-
var o = [0, 0], i = ["right", "left"].indexOf(n) !== -1, s = e.split(/(\+|\-)/).map(function(f) {
|
|
1682
|
-
return f.trim();
|
|
1683
|
-
}), a = s.indexOf(We(s, function(f) {
|
|
1684
|
-
return f.search(/,|\s/) !== -1;
|
|
1685
|
-
}));
|
|
1686
|
-
s[a] && s[a].indexOf(",") === -1 && console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");
|
|
1687
|
-
var l = /\s*,\s*|\s+/, u = a !== -1 ? [s.slice(0, a).concat([s[a].split(l)[0]]), [s[a].split(l)[1]].concat(s.slice(a + 1))] : [s];
|
|
1688
|
-
return u = u.map(function(f, c) {
|
|
1689
|
-
var p = (c === 1 ? !i : i) ? "height" : "width", d = !1;
|
|
1690
|
-
return f.reduce(function(h, m) {
|
|
1691
|
-
return h[h.length - 1] === "" && ["+", "-"].indexOf(m) !== -1 ? (h[h.length - 1] = m, d = !0, h) : d ? (h[h.length - 1] += m, d = !1, h) : h.concat(m);
|
|
1692
|
-
}, []).map(function(h) {
|
|
1693
|
-
return Ro(h, p, t, r);
|
|
1694
|
-
});
|
|
1695
|
-
}), u.forEach(function(f, c) {
|
|
1696
|
-
f.forEach(function(p, d) {
|
|
1697
|
-
Ft(p) && (o[c] += p * (f[d - 1] === "-" ? -1 : 1));
|
|
1698
|
-
});
|
|
1699
|
-
}), o;
|
|
1700
|
-
}
|
|
1701
|
-
function Io(e, t) {
|
|
1702
|
-
var r = t.offset, n = e.placement, o = e.offsets, i = o.popper, s = o.reference, a = n.split("-")[0], l = void 0;
|
|
1703
|
-
return Ft(+r) ? l = [+r, 0] : l = No(r, i, s, a), a === "left" ? (i.top += l[0], i.left -= l[1]) : a === "right" ? (i.top += l[0], i.left += l[1]) : a === "top" ? (i.left += l[0], i.top -= l[1]) : a === "bottom" && (i.left += l[0], i.top += l[1]), e.popper = i, e;
|
|
1704
|
-
}
|
|
1705
|
-
function _o(e, t) {
|
|
1706
|
-
var r = t.boundariesElement || Se(e.instance.popper);
|
|
1707
|
-
e.instance.reference === r && (r = Se(r));
|
|
1708
|
-
var n = Mt("transform"), o = e.instance.popper.style, i = o.top, s = o.left, a = o[n];
|
|
1709
|
-
o.top = "", o.left = "", o[n] = "";
|
|
1710
|
-
var l = Lt(e.instance.popper, e.instance.reference, t.padding, r, e.positionFixed);
|
|
1711
|
-
o.top = i, o.left = s, o[n] = a, t.boundaries = l;
|
|
1712
|
-
var u = t.priority, f = e.offsets.popper, c = {
|
|
1713
|
-
primary: function(d) {
|
|
1714
|
-
var h = f[d];
|
|
1715
|
-
return f[d] < l[d] && !t.escapeWithReference && (h = Math.max(f[d], l[d])), Pe({}, d, h);
|
|
1716
|
-
},
|
|
1717
|
-
secondary: function(d) {
|
|
1718
|
-
var h = d === "right" ? "left" : "top", m = f[h];
|
|
1719
|
-
return f[d] > l[d] && !t.escapeWithReference && (m = Math.min(f[h], l[d] - (d === "right" ? f.width : f.height))), Pe({}, h, m);
|
|
1720
|
-
}
|
|
1721
|
-
};
|
|
1722
|
-
return u.forEach(function(p) {
|
|
1723
|
-
var d = ["left", "top"].indexOf(p) !== -1 ? "primary" : "secondary";
|
|
1724
|
-
f = te({}, f, c[d](p));
|
|
1725
|
-
}), e.offsets.popper = f, e;
|
|
1726
|
-
}
|
|
1727
|
-
function Ao(e) {
|
|
1728
|
-
var t = e.placement, r = t.split("-")[0], n = t.split("-")[1];
|
|
1729
|
-
if (n) {
|
|
1730
|
-
var o = e.offsets, i = o.reference, s = o.popper, a = ["bottom", "top"].indexOf(r) !== -1, l = a ? "left" : "top", u = a ? "width" : "height", f = {
|
|
1731
|
-
start: Pe({}, l, i[l]),
|
|
1732
|
-
end: Pe({}, l, i[l] + i[u] - s[u])
|
|
1733
|
-
};
|
|
1734
|
-
e.offsets.popper = te({}, s, f[n]);
|
|
1735
|
-
}
|
|
1736
|
-
return e;
|
|
1737
|
-
}
|
|
1738
|
-
function ko(e) {
|
|
1739
|
-
if (!Jr(e.instance.modifiers, "hide", "preventOverflow"))
|
|
1740
|
-
return e;
|
|
1741
|
-
var t = e.offsets.reference, r = We(e.instance.modifiers, function(n) {
|
|
1742
|
-
return n.name === "preventOverflow";
|
|
1743
|
-
}).boundaries;
|
|
1744
|
-
if (t.bottom < r.top || t.left > r.right || t.top > r.bottom || t.right < r.left) {
|
|
1745
|
-
if (e.hide === !0)
|
|
1746
|
-
return e;
|
|
1747
|
-
e.hide = !0, e.attributes["x-out-of-boundaries"] = "";
|
|
1748
|
-
} else {
|
|
1749
|
-
if (e.hide === !1)
|
|
1750
|
-
return e;
|
|
1751
|
-
e.hide = !1, e.attributes["x-out-of-boundaries"] = !1;
|
|
1752
|
-
}
|
|
1753
|
-
return e;
|
|
1754
|
-
}
|
|
1755
|
-
function jo(e) {
|
|
1756
|
-
var t = e.placement, r = t.split("-")[0], n = e.offsets, o = n.popper, i = n.reference, s = ["left", "right"].indexOf(r) !== -1, a = ["top", "left"].indexOf(r) === -1;
|
|
1757
|
-
return o[s ? "left" : "top"] = i[r] - (a ? o[s ? "width" : "height"] : 0), e.placement = ot(t), e.offsets.popper = me(o), e;
|
|
1758
|
-
}
|
|
1759
|
-
var Lo = {
|
|
1760
|
-
/**
|
|
1761
|
-
* Modifier used to shift the popper on the start or end of its reference
|
|
1762
|
-
* element.<br />
|
|
1763
|
-
* It will read the variation of the `placement` property.<br />
|
|
1764
|
-
* It can be one either `-end` or `-start`.
|
|
1765
|
-
* @memberof modifiers
|
|
1766
|
-
* @inner
|
|
1767
|
-
*/
|
|
1768
|
-
shift: {
|
|
1769
|
-
/** @prop {number} order=100 - Index used to define the order of execution */
|
|
1770
|
-
order: 100,
|
|
1771
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1772
|
-
enabled: !0,
|
|
1773
|
-
/** @prop {ModifierFn} */
|
|
1774
|
-
fn: Ao
|
|
1775
|
-
},
|
|
1776
|
-
/**
|
|
1777
|
-
* The `offset` modifier can shift your popper on both its axis.
|
|
1778
|
-
*
|
|
1779
|
-
* It accepts the following units:
|
|
1780
|
-
* - `px` or unit-less, interpreted as pixels
|
|
1781
|
-
* - `%` or `%r`, percentage relative to the length of the reference element
|
|
1782
|
-
* - `%p`, percentage relative to the length of the popper element
|
|
1783
|
-
* - `vw`, CSS viewport width unit
|
|
1784
|
-
* - `vh`, CSS viewport height unit
|
|
1785
|
-
*
|
|
1786
|
-
* For length is intended the main axis relative to the placement of the popper.<br />
|
|
1787
|
-
* This means that if the placement is `top` or `bottom`, the length will be the
|
|
1788
|
-
* `width`. In case of `left` or `right`, it will be the `height`.
|
|
1789
|
-
*
|
|
1790
|
-
* You can provide a single value (as `Number` or `String`), or a pair of values
|
|
1791
|
-
* as `String` divided by a comma or one (or more) white spaces.<br />
|
|
1792
|
-
* The latter is a deprecated method because it leads to confusion and will be
|
|
1793
|
-
* removed in v2.<br />
|
|
1794
|
-
* Additionally, it accepts additions and subtractions between different units.
|
|
1795
|
-
* Note that multiplications and divisions aren't supported.
|
|
1796
|
-
*
|
|
1797
|
-
* Valid examples are:
|
|
1798
|
-
* ```
|
|
1799
|
-
* 10
|
|
1800
|
-
* '10%'
|
|
1801
|
-
* '10, 10'
|
|
1802
|
-
* '10%, 10'
|
|
1803
|
-
* '10 + 10%'
|
|
1804
|
-
* '10 - 5vh + 3%'
|
|
1805
|
-
* '-10px + 5vh, 5px - 6%'
|
|
1806
|
-
* ```
|
|
1807
|
-
* > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap
|
|
1808
|
-
* > with their reference element, unfortunately, you will have to disable the `flip` modifier.
|
|
1809
|
-
* > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).
|
|
1810
|
-
*
|
|
1811
|
-
* @memberof modifiers
|
|
1812
|
-
* @inner
|
|
1813
|
-
*/
|
|
1814
|
-
offset: {
|
|
1815
|
-
/** @prop {number} order=200 - Index used to define the order of execution */
|
|
1816
|
-
order: 200,
|
|
1817
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1818
|
-
enabled: !0,
|
|
1819
|
-
/** @prop {ModifierFn} */
|
|
1820
|
-
fn: Io,
|
|
1821
|
-
/** @prop {Number|String} offset=0
|
|
1822
|
-
* The offset value as described in the modifier description
|
|
1823
|
-
*/
|
|
1824
|
-
offset: 0
|
|
1825
|
-
},
|
|
1826
|
-
/**
|
|
1827
|
-
* Modifier used to prevent the popper from being positioned outside the boundary.
|
|
1828
|
-
*
|
|
1829
|
-
* A scenario exists where the reference itself is not within the boundaries.<br />
|
|
1830
|
-
* We can say it has "escaped the boundaries" — or just "escaped".<br />
|
|
1831
|
-
* In this case we need to decide whether the popper should either:
|
|
1832
|
-
*
|
|
1833
|
-
* - detach from the reference and remain "trapped" in the boundaries, or
|
|
1834
|
-
* - if it should ignore the boundary and "escape with its reference"
|
|
1835
|
-
*
|
|
1836
|
-
* When `escapeWithReference` is set to`true` and reference is completely
|
|
1837
|
-
* outside its boundaries, the popper will overflow (or completely leave)
|
|
1838
|
-
* the boundaries in order to remain attached to the edge of the reference.
|
|
1839
|
-
*
|
|
1840
|
-
* @memberof modifiers
|
|
1841
|
-
* @inner
|
|
1842
|
-
*/
|
|
1843
|
-
preventOverflow: {
|
|
1844
|
-
/** @prop {number} order=300 - Index used to define the order of execution */
|
|
1845
|
-
order: 300,
|
|
1846
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1847
|
-
enabled: !0,
|
|
1848
|
-
/** @prop {ModifierFn} */
|
|
1849
|
-
fn: _o,
|
|
1850
|
-
/**
|
|
1851
|
-
* @prop {Array} [priority=['left','right','top','bottom']]
|
|
1852
|
-
* Popper will try to prevent overflow following these priorities by default,
|
|
1853
|
-
* then, it could overflow on the left and on top of the `boundariesElement`
|
|
1854
|
-
*/
|
|
1855
|
-
priority: ["left", "right", "top", "bottom"],
|
|
1856
|
-
/**
|
|
1857
|
-
* @prop {number} padding=5
|
|
1858
|
-
* Amount of pixel used to define a minimum distance between the boundaries
|
|
1859
|
-
* and the popper. This makes sure the popper always has a little padding
|
|
1860
|
-
* between the edges of its container
|
|
1861
|
-
*/
|
|
1862
|
-
padding: 5,
|
|
1863
|
-
/**
|
|
1864
|
-
* @prop {String|HTMLElement} boundariesElement='scrollParent'
|
|
1865
|
-
* Boundaries used by the modifier. Can be `scrollParent`, `window`,
|
|
1866
|
-
* `viewport` or any DOM element.
|
|
1867
|
-
*/
|
|
1868
|
-
boundariesElement: "scrollParent"
|
|
1869
|
-
},
|
|
1870
|
-
/**
|
|
1871
|
-
* Modifier used to make sure the reference and its popper stay near each other
|
|
1872
|
-
* without leaving any gap between the two. Especially useful when the arrow is
|
|
1873
|
-
* enabled and you want to ensure that it points to its reference element.
|
|
1874
|
-
* It cares only about the first axis. You can still have poppers with margin
|
|
1875
|
-
* between the popper and its reference element.
|
|
1876
|
-
* @memberof modifiers
|
|
1877
|
-
* @inner
|
|
1878
|
-
*/
|
|
1879
|
-
keepTogether: {
|
|
1880
|
-
/** @prop {number} order=400 - Index used to define the order of execution */
|
|
1881
|
-
order: 400,
|
|
1882
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1883
|
-
enabled: !0,
|
|
1884
|
-
/** @prop {ModifierFn} */
|
|
1885
|
-
fn: Co
|
|
1886
|
-
},
|
|
1887
|
-
/**
|
|
1888
|
-
* This modifier is used to move the `arrowElement` of the popper to make
|
|
1889
|
-
* sure it is positioned between the reference element and its popper element.
|
|
1890
|
-
* It will read the outer size of the `arrowElement` node to detect how many
|
|
1891
|
-
* pixels of conjunction are needed.
|
|
1892
|
-
*
|
|
1893
|
-
* It has no effect if no `arrowElement` is provided.
|
|
1894
|
-
* @memberof modifiers
|
|
1895
|
-
* @inner
|
|
1896
|
-
*/
|
|
1897
|
-
arrow: {
|
|
1898
|
-
/** @prop {number} order=500 - Index used to define the order of execution */
|
|
1899
|
-
order: 500,
|
|
1900
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1901
|
-
enabled: !0,
|
|
1902
|
-
/** @prop {ModifierFn} */
|
|
1903
|
-
fn: To,
|
|
1904
|
-
/** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */
|
|
1905
|
-
element: "[x-arrow]"
|
|
1906
|
-
},
|
|
1907
|
-
/**
|
|
1908
|
-
* Modifier used to flip the popper's placement when it starts to overlap its
|
|
1909
|
-
* reference element.
|
|
1910
|
-
*
|
|
1911
|
-
* Requires the `preventOverflow` modifier before it in order to work.
|
|
1912
|
-
*
|
|
1913
|
-
* **NOTE:** this modifier will interrupt the current update cycle and will
|
|
1914
|
-
* restart it if it detects the need to flip the placement.
|
|
1915
|
-
* @memberof modifiers
|
|
1916
|
-
* @inner
|
|
1917
|
-
*/
|
|
1918
|
-
flip: {
|
|
1919
|
-
/** @prop {number} order=600 - Index used to define the order of execution */
|
|
1920
|
-
order: 600,
|
|
1921
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1922
|
-
enabled: !0,
|
|
1923
|
-
/** @prop {ModifierFn} */
|
|
1924
|
-
fn: xo,
|
|
1925
|
-
/**
|
|
1926
|
-
* @prop {String|Array} behavior='flip'
|
|
1927
|
-
* The behavior used to change the popper's placement. It can be one of
|
|
1928
|
-
* `flip`, `clockwise`, `counterclockwise` or an array with a list of valid
|
|
1929
|
-
* placements (with optional variations)
|
|
1930
|
-
*/
|
|
1931
|
-
behavior: "flip",
|
|
1932
|
-
/**
|
|
1933
|
-
* @prop {number} padding=5
|
|
1934
|
-
* The popper will flip if it hits the edges of the `boundariesElement`
|
|
1935
|
-
*/
|
|
1936
|
-
padding: 5,
|
|
1937
|
-
/**
|
|
1938
|
-
* @prop {String|HTMLElement} boundariesElement='viewport'
|
|
1939
|
-
* The element which will define the boundaries of the popper position.
|
|
1940
|
-
* The popper will never be placed outside of the defined boundaries
|
|
1941
|
-
* (except if `keepTogether` is enabled)
|
|
1942
|
-
*/
|
|
1943
|
-
boundariesElement: "viewport",
|
|
1944
|
-
/**
|
|
1945
|
-
* @prop {Boolean} flipVariations=false
|
|
1946
|
-
* The popper will switch placement variation between `-start` and `-end` when
|
|
1947
|
-
* the reference element overlaps its boundaries.
|
|
1948
|
-
*
|
|
1949
|
-
* The original placement should have a set variation.
|
|
1950
|
-
*/
|
|
1951
|
-
flipVariations: !1,
|
|
1952
|
-
/**
|
|
1953
|
-
* @prop {Boolean} flipVariationsByContent=false
|
|
1954
|
-
* The popper will switch placement variation between `-start` and `-end` when
|
|
1955
|
-
* the popper element overlaps its reference boundaries.
|
|
1956
|
-
*
|
|
1957
|
-
* The original placement should have a set variation.
|
|
1958
|
-
*/
|
|
1959
|
-
flipVariationsByContent: !1
|
|
1960
|
-
},
|
|
1961
|
-
/**
|
|
1962
|
-
* Modifier used to make the popper flow toward the inner of the reference element.
|
|
1963
|
-
* By default, when this modifier is disabled, the popper will be placed outside
|
|
1964
|
-
* the reference element.
|
|
1965
|
-
* @memberof modifiers
|
|
1966
|
-
* @inner
|
|
1967
|
-
*/
|
|
1968
|
-
inner: {
|
|
1969
|
-
/** @prop {number} order=700 - Index used to define the order of execution */
|
|
1970
|
-
order: 700,
|
|
1971
|
-
/** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */
|
|
1972
|
-
enabled: !1,
|
|
1973
|
-
/** @prop {ModifierFn} */
|
|
1974
|
-
fn: jo
|
|
1975
|
-
},
|
|
1976
|
-
/**
|
|
1977
|
-
* Modifier used to hide the popper when its reference element is outside of the
|
|
1978
|
-
* popper boundaries. It will set a `x-out-of-boundaries` attribute which can
|
|
1979
|
-
* be used to hide with a CSS selector the popper when its reference is
|
|
1980
|
-
* out of boundaries.
|
|
1981
|
-
*
|
|
1982
|
-
* Requires the `preventOverflow` modifier before it in order to work.
|
|
1983
|
-
* @memberof modifiers
|
|
1984
|
-
* @inner
|
|
1985
|
-
*/
|
|
1986
|
-
hide: {
|
|
1987
|
-
/** @prop {number} order=800 - Index used to define the order of execution */
|
|
1988
|
-
order: 800,
|
|
1989
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
1990
|
-
enabled: !0,
|
|
1991
|
-
/** @prop {ModifierFn} */
|
|
1992
|
-
fn: ko
|
|
1993
|
-
},
|
|
1994
|
-
/**
|
|
1995
|
-
* Computes the style that will be applied to the popper element to gets
|
|
1996
|
-
* properly positioned.
|
|
1997
|
-
*
|
|
1998
|
-
* Note that this modifier will not touch the DOM, it just prepares the styles
|
|
1999
|
-
* so that `applyStyle` modifier can apply it. This separation is useful
|
|
2000
|
-
* in case you need to replace `applyStyle` with a custom implementation.
|
|
2001
|
-
*
|
|
2002
|
-
* This modifier has `850` as `order` value to maintain backward compatibility
|
|
2003
|
-
* with previous versions of Popper.js. Expect the modifiers ordering method
|
|
2004
|
-
* to change in future major versions of the library.
|
|
2005
|
-
*
|
|
2006
|
-
* @memberof modifiers
|
|
2007
|
-
* @inner
|
|
2008
|
-
*/
|
|
2009
|
-
computeStyle: {
|
|
2010
|
-
/** @prop {number} order=850 - Index used to define the order of execution */
|
|
2011
|
-
order: 850,
|
|
2012
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
2013
|
-
enabled: !0,
|
|
2014
|
-
/** @prop {ModifierFn} */
|
|
2015
|
-
fn: So,
|
|
2016
|
-
/**
|
|
2017
|
-
* @prop {Boolean} gpuAcceleration=true
|
|
2018
|
-
* If true, it uses the CSS 3D transformation to position the popper.
|
|
2019
|
-
* Otherwise, it will use the `top` and `left` properties
|
|
2020
|
-
*/
|
|
2021
|
-
gpuAcceleration: !0,
|
|
2022
|
-
/**
|
|
2023
|
-
* @prop {string} [x='bottom']
|
|
2024
|
-
* Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.
|
|
2025
|
-
* Change this if your popper should grow in a direction different from `bottom`
|
|
2026
|
-
*/
|
|
2027
|
-
x: "bottom",
|
|
2028
|
-
/**
|
|
2029
|
-
* @prop {string} [x='left']
|
|
2030
|
-
* Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.
|
|
2031
|
-
* Change this if your popper should grow in a direction different from `right`
|
|
2032
|
-
*/
|
|
2033
|
-
y: "right"
|
|
2034
|
-
},
|
|
2035
|
-
/**
|
|
2036
|
-
* Applies the computed styles to the popper element.
|
|
2037
|
-
*
|
|
2038
|
-
* All the DOM manipulations are limited to this modifier. This is useful in case
|
|
2039
|
-
* you want to integrate Popper.js inside a framework or view library and you
|
|
2040
|
-
* want to delegate all the DOM manipulations to it.
|
|
2041
|
-
*
|
|
2042
|
-
* Note that if you disable this modifier, you must make sure the popper element
|
|
2043
|
-
* has its position set to `absolute` before Popper.js can do its work!
|
|
2044
|
-
*
|
|
2045
|
-
* Just disable this modifier and define your own to achieve the desired effect.
|
|
2046
|
-
*
|
|
2047
|
-
* @memberof modifiers
|
|
2048
|
-
* @inner
|
|
2049
|
-
*/
|
|
2050
|
-
applyStyle: {
|
|
2051
|
-
/** @prop {number} order=900 - Index used to define the order of execution */
|
|
2052
|
-
order: 900,
|
|
2053
|
-
/** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */
|
|
2054
|
-
enabled: !0,
|
|
2055
|
-
/** @prop {ModifierFn} */
|
|
2056
|
-
fn: bo,
|
|
2057
|
-
/** @prop {Function} */
|
|
2058
|
-
onLoad: Eo,
|
|
2059
|
-
/**
|
|
2060
|
-
* @deprecated since version 1.10.0, the property moved to `computeStyle` modifier
|
|
2061
|
-
* @prop {Boolean} gpuAcceleration=true
|
|
2062
|
-
* If true, it uses the CSS 3D transformation to position the popper.
|
|
2063
|
-
* Otherwise, it will use the `top` and `left` properties
|
|
2064
|
-
*/
|
|
2065
|
-
gpuAcceleration: void 0
|
|
2066
|
-
}
|
|
2067
|
-
}, Mo = {
|
|
2068
|
-
/**
|
|
2069
|
-
* Popper's placement.
|
|
2070
|
-
* @prop {Popper.placements} placement='bottom'
|
|
2071
|
-
*/
|
|
2072
|
-
placement: "bottom",
|
|
2073
|
-
/**
|
|
2074
|
-
* Set this to true if you want popper to position it self in 'fixed' mode
|
|
2075
|
-
* @prop {Boolean} positionFixed=false
|
|
2076
|
-
*/
|
|
2077
|
-
positionFixed: !1,
|
|
2078
|
-
/**
|
|
2079
|
-
* Whether events (resize, scroll) are initially enabled.
|
|
2080
|
-
* @prop {Boolean} eventsEnabled=true
|
|
2081
|
-
*/
|
|
2082
|
-
eventsEnabled: !0,
|
|
2083
|
-
/**
|
|
2084
|
-
* Set to true if you want to automatically remove the popper when
|
|
2085
|
-
* you call the `destroy` method.
|
|
2086
|
-
* @prop {Boolean} removeOnDestroy=false
|
|
2087
|
-
*/
|
|
2088
|
-
removeOnDestroy: !1,
|
|
2089
|
-
/**
|
|
2090
|
-
* Callback called when the popper is created.<br />
|
|
2091
|
-
* By default, it is set to no-op.<br />
|
|
2092
|
-
* Access Popper.js instance with `data.instance`.
|
|
2093
|
-
* @prop {onCreate}
|
|
2094
|
-
*/
|
|
2095
|
-
onCreate: function() {
|
|
2096
|
-
},
|
|
2097
|
-
/**
|
|
2098
|
-
* Callback called when the popper is updated. This callback is not called
|
|
2099
|
-
* on the initialization/creation of the popper, but only on subsequent
|
|
2100
|
-
* updates.<br />
|
|
2101
|
-
* By default, it is set to no-op.<br />
|
|
2102
|
-
* Access Popper.js instance with `data.instance`.
|
|
2103
|
-
* @prop {onUpdate}
|
|
2104
|
-
*/
|
|
2105
|
-
onUpdate: function() {
|
|
2106
|
-
},
|
|
2107
|
-
/**
|
|
2108
|
-
* List of modifiers used to modify the offsets before they are applied to the popper.
|
|
2109
|
-
* They provide most of the functionalities of Popper.js.
|
|
2110
|
-
* @prop {modifiers}
|
|
2111
|
-
*/
|
|
2112
|
-
modifiers: Lo
|
|
2113
|
-
}, Le = function() {
|
|
2114
|
-
function e(t, r) {
|
|
2115
|
-
var n = this, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2116
|
-
so(this, e), this.scheduleUpdate = function() {
|
|
2117
|
-
return requestAnimationFrame(n.update);
|
|
2118
|
-
}, this.update = no(this.update.bind(this)), this.options = te({}, e.Defaults, o), this.state = {
|
|
2119
|
-
isDestroyed: !1,
|
|
2120
|
-
isCreated: !1,
|
|
2121
|
-
scrollParents: []
|
|
2122
|
-
}, this.reference = t && t.jquery ? t[0] : t, this.popper = r && r.jquery ? r[0] : r, this.options.modifiers = {}, Object.keys(te({}, e.Defaults.modifiers, o.modifiers)).forEach(function(s) {
|
|
2123
|
-
n.options.modifiers[s] = te({}, e.Defaults.modifiers[s] || {}, o.modifiers ? o.modifiers[s] : {});
|
|
2124
|
-
}), this.modifiers = Object.keys(this.options.modifiers).map(function(s) {
|
|
2125
|
-
return te({
|
|
2126
|
-
name: s
|
|
2127
|
-
}, n.options.modifiers[s]);
|
|
2128
|
-
}).sort(function(s, a) {
|
|
2129
|
-
return s.order - a.order;
|
|
2130
|
-
}), this.modifiers.forEach(function(s) {
|
|
2131
|
-
s.enabled && Fr(s.onLoad) && s.onLoad(n.reference, n.popper, n.options, s, n.state);
|
|
2132
|
-
}), this.update();
|
|
2133
|
-
var i = this.options.eventsEnabled;
|
|
2134
|
-
i && this.enableEventListeners(), this.state.eventsEnabled = i;
|
|
2135
|
-
}
|
|
2136
|
-
return ao(e, [{
|
|
2137
|
-
key: "update",
|
|
2138
|
-
value: function() {
|
|
2139
|
-
return fo.call(this);
|
|
2140
|
-
}
|
|
2141
|
-
}, {
|
|
2142
|
-
key: "destroy",
|
|
2143
|
-
value: function() {
|
|
2144
|
-
return po.call(this);
|
|
2145
|
-
}
|
|
2146
|
-
}, {
|
|
2147
|
-
key: "enableEventListeners",
|
|
2148
|
-
value: function() {
|
|
2149
|
-
return yo.call(this);
|
|
2150
|
-
}
|
|
2151
|
-
}, {
|
|
2152
|
-
key: "disableEventListeners",
|
|
2153
|
-
value: function() {
|
|
2154
|
-
return vo.call(this);
|
|
2155
|
-
}
|
|
2156
|
-
/**
|
|
2157
|
-
* Schedules an update. It will run on the next UI update available.
|
|
2158
|
-
* @method scheduleUpdate
|
|
2159
|
-
* @memberof Popper
|
|
2160
|
-
*/
|
|
2161
|
-
/**
|
|
2162
|
-
* Collection of utilities useful when writing custom modifiers.
|
|
2163
|
-
* Starting from version 1.7, this method is available only if you
|
|
2164
|
-
* include `popper-utils.js` before `popper.js`.
|
|
2165
|
-
*
|
|
2166
|
-
* **DEPRECATION**: This way to access PopperUtils is deprecated
|
|
2167
|
-
* and will be removed in v2! Use the PopperUtils module directly instead.
|
|
2168
|
-
* Due to the high instability of the methods contained in Utils, we can't
|
|
2169
|
-
* guarantee them to follow semver. Use them at your own risk!
|
|
2170
|
-
* @static
|
|
2171
|
-
* @private
|
|
2172
|
-
* @type {Object}
|
|
2173
|
-
* @deprecated since version 1.8
|
|
2174
|
-
* @member Utils
|
|
2175
|
-
* @memberof Popper
|
|
2176
|
-
*/
|
|
2177
|
-
}]), e;
|
|
2178
|
-
}();
|
|
2179
|
-
Le.Utils = (typeof window < "u" ? window : global).PopperUtils;
|
|
2180
|
-
Le.placements = Xr;
|
|
2181
|
-
Le.Defaults = Mo;
|
|
2182
|
-
var Fo = [
|
|
2183
|
-
"innerHTML",
|
|
2184
|
-
"ownerDocument",
|
|
2185
|
-
"style",
|
|
2186
|
-
"attributes",
|
|
2187
|
-
"nodeValue"
|
|
2188
|
-
], Do = [
|
|
2189
|
-
"Array",
|
|
2190
|
-
"ArrayBuffer",
|
|
2191
|
-
"AsyncFunction",
|
|
2192
|
-
"AsyncGenerator",
|
|
2193
|
-
"AsyncGeneratorFunction",
|
|
2194
|
-
"Date",
|
|
2195
|
-
"Error",
|
|
2196
|
-
"Function",
|
|
2197
|
-
"Generator",
|
|
2198
|
-
"GeneratorFunction",
|
|
2199
|
-
"HTMLElement",
|
|
2200
|
-
"Map",
|
|
2201
|
-
"Object",
|
|
2202
|
-
"Promise",
|
|
2203
|
-
"RegExp",
|
|
2204
|
-
"Set",
|
|
2205
|
-
"WeakMap",
|
|
2206
|
-
"WeakSet"
|
|
2207
|
-
], $o = [
|
|
2208
|
-
"bigint",
|
|
2209
|
-
"boolean",
|
|
2210
|
-
"null",
|
|
2211
|
-
"number",
|
|
2212
|
-
"string",
|
|
2213
|
-
"symbol",
|
|
2214
|
-
"undefined"
|
|
2215
|
-
];
|
|
2216
|
-
function at(e) {
|
|
2217
|
-
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
2218
|
-
if (/HTML\w+Element/.test(t))
|
|
2219
|
-
return "HTMLElement";
|
|
2220
|
-
if (Wo(t))
|
|
2221
|
-
return t;
|
|
2222
|
-
}
|
|
2223
|
-
function ie(e) {
|
|
2224
|
-
return function(t) {
|
|
2225
|
-
return at(t) === e;
|
|
2226
|
-
};
|
|
2227
|
-
}
|
|
2228
|
-
function Wo(e) {
|
|
2229
|
-
return Do.includes(e);
|
|
2230
|
-
}
|
|
2231
|
-
function Ne(e) {
|
|
2232
|
-
return function(t) {
|
|
2233
|
-
return typeof t === e;
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
|
-
function Bo(e) {
|
|
2237
|
-
return $o.includes(e);
|
|
2238
|
-
}
|
|
2239
|
-
function y(e) {
|
|
2240
|
-
if (e === null)
|
|
2241
|
-
return "null";
|
|
2242
|
-
switch (typeof e) {
|
|
2243
|
-
case "bigint":
|
|
2244
|
-
return "bigint";
|
|
2245
|
-
case "boolean":
|
|
2246
|
-
return "boolean";
|
|
2247
|
-
case "number":
|
|
2248
|
-
return "number";
|
|
2249
|
-
case "string":
|
|
2250
|
-
return "string";
|
|
2251
|
-
case "symbol":
|
|
2252
|
-
return "symbol";
|
|
2253
|
-
case "undefined":
|
|
2254
|
-
return "undefined";
|
|
2255
|
-
}
|
|
2256
|
-
if (y.array(e))
|
|
2257
|
-
return "Array";
|
|
2258
|
-
if (y.plainFunction(e))
|
|
2259
|
-
return "Function";
|
|
2260
|
-
var t = at(e);
|
|
2261
|
-
return t || "Object";
|
|
2262
|
-
}
|
|
2263
|
-
y.array = Array.isArray;
|
|
2264
|
-
y.arrayOf = function(e, t) {
|
|
2265
|
-
return !y.array(e) && !y.function(t) ? !1 : e.every(function(r) {
|
|
2266
|
-
return t(r);
|
|
2267
|
-
});
|
|
2268
|
-
};
|
|
2269
|
-
y.asyncGeneratorFunction = function(e) {
|
|
2270
|
-
return at(e) === "AsyncGeneratorFunction";
|
|
2271
|
-
};
|
|
2272
|
-
y.asyncFunction = ie("AsyncFunction");
|
|
2273
|
-
y.bigint = Ne("bigint");
|
|
2274
|
-
y.boolean = function(e) {
|
|
2275
|
-
return e === !0 || e === !1;
|
|
2276
|
-
};
|
|
2277
|
-
y.date = ie("Date");
|
|
2278
|
-
y.defined = function(e) {
|
|
2279
|
-
return !y.undefined(e);
|
|
2280
|
-
};
|
|
2281
|
-
y.domElement = function(e) {
|
|
2282
|
-
return y.object(e) && !y.plainObject(e) && e.nodeType === 1 && y.string(e.nodeName) && Fo.every(function(t) {
|
|
2283
|
-
return t in e;
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
y.empty = function(e) {
|
|
2287
|
-
return y.string(e) && e.length === 0 || y.array(e) && e.length === 0 || y.object(e) && !y.map(e) && !y.set(e) && Object.keys(e).length === 0 || y.set(e) && e.size === 0 || y.map(e) && e.size === 0;
|
|
2288
|
-
};
|
|
2289
|
-
y.error = ie("Error");
|
|
2290
|
-
y.function = Ne("function");
|
|
2291
|
-
y.generator = function(e) {
|
|
2292
|
-
return y.iterable(e) && y.function(e.next) && y.function(e.throw);
|
|
2293
|
-
};
|
|
2294
|
-
y.generatorFunction = ie("GeneratorFunction");
|
|
2295
|
-
y.instanceOf = function(e, t) {
|
|
2296
|
-
return !e || !t ? !1 : Object.getPrototypeOf(e) === t.prototype;
|
|
2297
|
-
};
|
|
2298
|
-
y.iterable = function(e) {
|
|
2299
|
-
return !y.nullOrUndefined(e) && y.function(e[Symbol.iterator]);
|
|
2300
|
-
};
|
|
2301
|
-
y.map = ie("Map");
|
|
2302
|
-
y.nan = function(e) {
|
|
2303
|
-
return Number.isNaN(e);
|
|
2304
|
-
};
|
|
2305
|
-
y.null = function(e) {
|
|
2306
|
-
return e === null;
|
|
2307
|
-
};
|
|
2308
|
-
y.nullOrUndefined = function(e) {
|
|
2309
|
-
return y.null(e) || y.undefined(e);
|
|
2310
|
-
};
|
|
2311
|
-
y.number = function(e) {
|
|
2312
|
-
return Ne("number")(e) && !y.nan(e);
|
|
2313
|
-
};
|
|
2314
|
-
y.numericString = function(e) {
|
|
2315
|
-
return y.string(e) && e.length > 0 && !Number.isNaN(Number(e));
|
|
2316
|
-
};
|
|
2317
|
-
y.object = function(e) {
|
|
2318
|
-
return !y.nullOrUndefined(e) && (y.function(e) || typeof e == "object");
|
|
2319
|
-
};
|
|
2320
|
-
y.oneOf = function(e, t) {
|
|
2321
|
-
return y.array(e) ? e.indexOf(t) > -1 : !1;
|
|
2322
|
-
};
|
|
2323
|
-
y.plainFunction = ie("Function");
|
|
2324
|
-
y.plainObject = function(e) {
|
|
2325
|
-
if (at(e) !== "Object")
|
|
2326
|
-
return !1;
|
|
2327
|
-
var t = Object.getPrototypeOf(e);
|
|
2328
|
-
return t === null || t === Object.getPrototypeOf({});
|
|
2329
|
-
};
|
|
2330
|
-
y.primitive = function(e) {
|
|
2331
|
-
return y.null(e) || Bo(typeof e);
|
|
2332
|
-
};
|
|
2333
|
-
y.promise = ie("Promise");
|
|
2334
|
-
y.propertyOf = function(e, t, r) {
|
|
2335
|
-
if (!y.object(e) || !t)
|
|
2336
|
-
return !1;
|
|
2337
|
-
var n = e[t];
|
|
2338
|
-
return y.function(r) ? r(n) : y.defined(n);
|
|
2339
|
-
};
|
|
2340
|
-
y.regexp = ie("RegExp");
|
|
2341
|
-
y.set = ie("Set");
|
|
2342
|
-
y.string = Ne("string");
|
|
2343
|
-
y.symbol = Ne("symbol");
|
|
2344
|
-
y.undefined = Ne("undefined");
|
|
2345
|
-
y.weakMap = ie("WeakMap");
|
|
2346
|
-
y.weakSet = ie("WeakSet");
|
|
2347
|
-
function Zr(e) {
|
|
2348
|
-
return function(t) {
|
|
2349
|
-
return typeof t === e;
|
|
2350
|
-
};
|
|
2351
|
-
}
|
|
2352
|
-
var Uo = Zr("function"), zo = function(e) {
|
|
2353
|
-
return e === null;
|
|
2354
|
-
}, mr = function(e) {
|
|
2355
|
-
return Object.prototype.toString.call(e).slice(8, -1) === "RegExp";
|
|
2356
|
-
}, vr = function(e) {
|
|
2357
|
-
return !qo(e) && !zo(e) && (Uo(e) || typeof e == "object");
|
|
2358
|
-
}, qo = Zr("undefined"), Rt = function(e) {
|
|
2359
|
-
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
2360
|
-
if (r) return r.call(e);
|
|
2361
|
-
if (e && typeof e.length == "number") return {
|
|
2362
|
-
next: function() {
|
|
2363
|
-
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
2364
|
-
}
|
|
2365
|
-
};
|
|
2366
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2367
|
-
};
|
|
2368
|
-
function Ho(e, t) {
|
|
2369
|
-
var r = e.length;
|
|
2370
|
-
if (r !== t.length)
|
|
2371
|
-
return !1;
|
|
2372
|
-
for (var n = r; n-- !== 0; )
|
|
2373
|
-
if (!Q(e[n], t[n]))
|
|
2374
|
-
return !1;
|
|
2375
|
-
return !0;
|
|
2376
|
-
}
|
|
2377
|
-
function Vo(e, t) {
|
|
2378
|
-
if (e.byteLength !== t.byteLength)
|
|
2379
|
-
return !1;
|
|
2380
|
-
for (var r = new DataView(e.buffer), n = new DataView(t.buffer), o = e.byteLength; o--; )
|
|
2381
|
-
if (r.getUint8(o) !== n.getUint8(o))
|
|
2382
|
-
return !1;
|
|
2383
|
-
return !0;
|
|
2384
|
-
}
|
|
2385
|
-
function Go(e, t) {
|
|
2386
|
-
var r, n, o, i;
|
|
2387
|
-
if (e.size !== t.size)
|
|
2388
|
-
return !1;
|
|
2389
|
-
try {
|
|
2390
|
-
for (var s = Rt(e.entries()), a = s.next(); !a.done; a = s.next()) {
|
|
2391
|
-
var l = a.value;
|
|
2392
|
-
if (!t.has(l[0]))
|
|
2393
|
-
return !1;
|
|
2394
|
-
}
|
|
2395
|
-
} catch (c) {
|
|
2396
|
-
r = { error: c };
|
|
2397
|
-
} finally {
|
|
2398
|
-
try {
|
|
2399
|
-
a && !a.done && (n = s.return) && n.call(s);
|
|
2400
|
-
} finally {
|
|
2401
|
-
if (r) throw r.error;
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
try {
|
|
2405
|
-
for (var u = Rt(e.entries()), f = u.next(); !f.done; f = u.next()) {
|
|
2406
|
-
var l = f.value;
|
|
2407
|
-
if (!Q(l[1], t.get(l[0])))
|
|
2408
|
-
return !1;
|
|
2409
|
-
}
|
|
2410
|
-
} catch (c) {
|
|
2411
|
-
o = { error: c };
|
|
2412
|
-
} finally {
|
|
2413
|
-
try {
|
|
2414
|
-
f && !f.done && (i = u.return) && i.call(u);
|
|
2415
|
-
} finally {
|
|
2416
|
-
if (o) throw o.error;
|
|
2417
|
-
}
|
|
2418
|
-
}
|
|
2419
|
-
return !0;
|
|
2420
|
-
}
|
|
2421
|
-
function Yo(e, t) {
|
|
2422
|
-
var r, n;
|
|
2423
|
-
if (e.size !== t.size)
|
|
2424
|
-
return !1;
|
|
2425
|
-
try {
|
|
2426
|
-
for (var o = Rt(e.entries()), i = o.next(); !i.done; i = o.next()) {
|
|
2427
|
-
var s = i.value;
|
|
2428
|
-
if (!t.has(s[0]))
|
|
2429
|
-
return !1;
|
|
2430
|
-
}
|
|
2431
|
-
} catch (a) {
|
|
2432
|
-
r = { error: a };
|
|
2433
|
-
} finally {
|
|
2434
|
-
try {
|
|
2435
|
-
i && !i.done && (n = o.return) && n.call(o);
|
|
2436
|
-
} finally {
|
|
2437
|
-
if (r) throw r.error;
|
|
2438
|
-
}
|
|
2439
|
-
}
|
|
2440
|
-
return !0;
|
|
2441
|
-
}
|
|
2442
|
-
function Q(e, t) {
|
|
2443
|
-
if (e === t)
|
|
2444
|
-
return !0;
|
|
2445
|
-
if (e && vr(e) && t && vr(t)) {
|
|
2446
|
-
if (e.constructor !== t.constructor)
|
|
2447
|
-
return !1;
|
|
2448
|
-
if (Array.isArray(e) && Array.isArray(t))
|
|
2449
|
-
return Ho(e, t);
|
|
2450
|
-
if (e instanceof Map && t instanceof Map)
|
|
2451
|
-
return Go(e, t);
|
|
2452
|
-
if (e instanceof Set && t instanceof Set)
|
|
2453
|
-
return Yo(e, t);
|
|
2454
|
-
if (ArrayBuffer.isView(e) && ArrayBuffer.isView(t))
|
|
2455
|
-
return Vo(e, t);
|
|
2456
|
-
if (mr(e) && mr(t))
|
|
2457
|
-
return e.source === t.source && e.flags === t.flags;
|
|
2458
|
-
if (e.valueOf !== Object.prototype.valueOf)
|
|
2459
|
-
return e.valueOf() === t.valueOf();
|
|
2460
|
-
if (e.toString !== Object.prototype.toString)
|
|
2461
|
-
return e.toString() === t.toString();
|
|
2462
|
-
var r = Object.keys(e), n = Object.keys(t);
|
|
2463
|
-
if (r.length !== n.length)
|
|
2464
|
-
return !1;
|
|
2465
|
-
for (var o = r.length; o-- !== 0; )
|
|
2466
|
-
if (!Object.prototype.hasOwnProperty.call(t, r[o]))
|
|
2467
|
-
return !1;
|
|
2468
|
-
for (var o = r.length; o-- !== 0; ) {
|
|
2469
|
-
var i = r[o];
|
|
2470
|
-
if (!(i === "_owner" && e.$$typeof) && !Q(e[i], t[i]))
|
|
2471
|
-
return !1;
|
|
2472
|
-
}
|
|
2473
|
-
return !0;
|
|
2474
|
-
}
|
|
2475
|
-
return Number.isNaN(e) && Number.isNaN(t) ? !0 : e === t;
|
|
2476
|
-
}
|
|
2477
|
-
function Ko() {
|
|
2478
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
2479
|
-
e[t] = arguments[t];
|
|
2480
|
-
return e.every(function(r) {
|
|
2481
|
-
return y.string(r) || y.array(r) || y.plainObject(r);
|
|
2482
|
-
});
|
|
2483
|
-
}
|
|
2484
|
-
function Jo(e, t, r) {
|
|
2485
|
-
return Qr(e, t) ? [e, t].every(y.array) ? !e.some(wr(r)) && t.some(wr(r)) : [e, t].every(y.plainObject) ? !Object.entries(e).some(Or(r)) && Object.entries(t).some(Or(r)) : t === r : !1;
|
|
2486
|
-
}
|
|
2487
|
-
function gr(e, t, r) {
|
|
2488
|
-
var n = r.actual, o = r.key, i = r.previous, s = r.type, a = pe(e, o), l = pe(t, o), u = [a, l].every(y.number) && (s === "increased" ? a < l : a > l);
|
|
2489
|
-
return y.undefined(n) || (u = u && l === n), y.undefined(i) || (u = u && a === i), u;
|
|
2490
|
-
}
|
|
2491
|
-
function br(e, t, r) {
|
|
2492
|
-
var n = r.key, o = r.type, i = r.value, s = pe(e, n), a = pe(t, n), l = o === "added" ? s : a, u = o === "added" ? a : s;
|
|
2493
|
-
if (!y.nullOrUndefined(i)) {
|
|
2494
|
-
if (y.defined(l)) {
|
|
2495
|
-
if (y.array(l) || y.plainObject(l))
|
|
2496
|
-
return Jo(l, u, i);
|
|
2497
|
-
} else
|
|
2498
|
-
return Q(u, i);
|
|
2499
|
-
return !1;
|
|
2500
|
-
}
|
|
2501
|
-
return [s, a].every(y.array) ? !u.every(Dt(l)) : [s, a].every(y.plainObject) ? Xo(Object.keys(l), Object.keys(u)) : ![s, a].every(function(f) {
|
|
2502
|
-
return y.primitive(f) && y.defined(f);
|
|
2503
|
-
}) && (o === "added" ? !y.defined(s) && y.defined(a) : y.defined(s) && !y.defined(a));
|
|
2504
|
-
}
|
|
2505
|
-
function Er(e, t, r) {
|
|
2506
|
-
var n = r === void 0 ? {} : r, o = n.key, i = pe(e, o), s = pe(t, o);
|
|
2507
|
-
if (!Qr(i, s))
|
|
2508
|
-
throw new TypeError("Inputs have different types");
|
|
2509
|
-
if (!Ko(i, s))
|
|
2510
|
-
throw new TypeError("Inputs don't have length");
|
|
2511
|
-
return [i, s].every(y.plainObject) && (i = Object.keys(i), s = Object.keys(s)), [i, s];
|
|
2512
|
-
}
|
|
2513
|
-
function Or(e) {
|
|
2514
|
-
return function(t) {
|
|
2515
|
-
var r = t[0], n = t[1];
|
|
2516
|
-
return y.array(e) ? Q(e, n) || e.some(function(o) {
|
|
2517
|
-
return Q(o, n) || y.array(n) && Dt(n)(o);
|
|
2518
|
-
}) : y.plainObject(e) && e[r] ? !!e[r] && Q(e[r], n) : Q(e, n);
|
|
2519
|
-
};
|
|
2520
|
-
}
|
|
2521
|
-
function Xo(e, t) {
|
|
2522
|
-
return t.some(function(r) {
|
|
2523
|
-
return !e.includes(r);
|
|
2524
|
-
});
|
|
2525
|
-
}
|
|
2526
|
-
function wr(e) {
|
|
2527
|
-
return function(t) {
|
|
2528
|
-
return y.array(e) ? e.some(function(r) {
|
|
2529
|
-
return Q(r, t) || y.array(t) && Dt(t)(r);
|
|
2530
|
-
}) : Q(e, t);
|
|
2531
|
-
};
|
|
2532
|
-
}
|
|
2533
|
-
function _e(e, t) {
|
|
2534
|
-
return y.array(e) ? e.some(function(r) {
|
|
2535
|
-
return Q(r, t);
|
|
2536
|
-
}) : Q(e, t);
|
|
2537
|
-
}
|
|
2538
|
-
function Dt(e) {
|
|
2539
|
-
return function(t) {
|
|
2540
|
-
return e.some(function(r) {
|
|
2541
|
-
return Q(r, t);
|
|
2542
|
-
});
|
|
2543
|
-
};
|
|
2544
|
-
}
|
|
2545
|
-
function Qr() {
|
|
2546
|
-
for (var e = [], t = 0; t < arguments.length; t++)
|
|
2547
|
-
e[t] = arguments[t];
|
|
2548
|
-
return e.every(y.array) || e.every(y.number) || e.every(y.plainObject) || e.every(y.string);
|
|
2549
|
-
}
|
|
2550
|
-
function pe(e, t) {
|
|
2551
|
-
if (y.plainObject(e) || y.array(e)) {
|
|
2552
|
-
if (y.string(t)) {
|
|
2553
|
-
var r = t.split(".");
|
|
2554
|
-
return r.reduce(function(n, o) {
|
|
2555
|
-
return n && n[o];
|
|
2556
|
-
}, e);
|
|
2557
|
-
}
|
|
2558
|
-
return y.number(t) ? e[t] : e;
|
|
2559
|
-
}
|
|
2560
|
-
return e;
|
|
2561
|
-
}
|
|
2562
|
-
function Zo(e, t) {
|
|
2563
|
-
if ([e, t].some(y.nullOrUndefined))
|
|
2564
|
-
throw new Error("Missing required parameters");
|
|
2565
|
-
if (![e, t].every(function(c) {
|
|
2566
|
-
return y.plainObject(c) || y.array(c);
|
|
2567
|
-
}))
|
|
2568
|
-
throw new Error("Expected plain objects or array");
|
|
2569
|
-
var r = function(c, p) {
|
|
2570
|
-
try {
|
|
2571
|
-
return br(e, t, { key: c, type: "added", value: p });
|
|
2572
|
-
} catch {
|
|
2573
|
-
return !1;
|
|
2574
|
-
}
|
|
2575
|
-
}, n = function(c, p, d) {
|
|
2576
|
-
try {
|
|
2577
|
-
var h = pe(e, c), m = pe(t, c), w = y.defined(p), g = y.defined(d);
|
|
2578
|
-
if (w || g) {
|
|
2579
|
-
var v = g ? _e(d, h) : !_e(p, h), S = _e(p, m);
|
|
2580
|
-
return v && S;
|
|
2581
|
-
}
|
|
2582
|
-
return [h, m].every(y.array) || [h, m].every(y.plainObject) ? !Q(h, m) : h !== m;
|
|
2583
|
-
} catch {
|
|
2584
|
-
return !1;
|
|
2585
|
-
}
|
|
2586
|
-
}, o = function(c, p, d) {
|
|
2587
|
-
if (!y.defined(c))
|
|
2588
|
-
return !1;
|
|
2589
|
-
try {
|
|
2590
|
-
var h = pe(e, c), m = pe(t, c), w = y.defined(d);
|
|
2591
|
-
return _e(p, h) && (w ? _e(d, m) : !w);
|
|
2592
|
-
} catch {
|
|
2593
|
-
return !1;
|
|
2594
|
-
}
|
|
2595
|
-
}, i = function(c, p) {
|
|
2596
|
-
return y.defined(c) ? (process.env.NODE_ENV === "development" && console.warn("`changedTo` is deprecated! Replace it with `change`"), n(c, p)) : !1;
|
|
2597
|
-
}, s = function(c, p, d) {
|
|
2598
|
-
if (!y.defined(c))
|
|
2599
|
-
return !1;
|
|
2600
|
-
try {
|
|
2601
|
-
return gr(e, t, { key: c, actual: p, previous: d, type: "decreased" });
|
|
2602
|
-
} catch {
|
|
2603
|
-
return !1;
|
|
2604
|
-
}
|
|
2605
|
-
}, a = function(c) {
|
|
2606
|
-
try {
|
|
2607
|
-
var p = Er(e, t, { key: c }), d = p[0], h = p[1];
|
|
2608
|
-
return !!d.length && !h.length;
|
|
2609
|
-
} catch {
|
|
2610
|
-
return !1;
|
|
2611
|
-
}
|
|
2612
|
-
}, l = function(c) {
|
|
2613
|
-
try {
|
|
2614
|
-
var p = Er(e, t, { key: c }), d = p[0], h = p[1];
|
|
2615
|
-
return !d.length && !!h.length;
|
|
2616
|
-
} catch {
|
|
2617
|
-
return !1;
|
|
2618
|
-
}
|
|
2619
|
-
}, u = function(c, p, d) {
|
|
2620
|
-
if (!y.defined(c))
|
|
2621
|
-
return !1;
|
|
2622
|
-
try {
|
|
2623
|
-
return gr(e, t, { key: c, actual: p, previous: d, type: "increased" });
|
|
2624
|
-
} catch {
|
|
2625
|
-
return !1;
|
|
2626
|
-
}
|
|
2627
|
-
}, f = function(c, p) {
|
|
2628
|
-
try {
|
|
2629
|
-
return br(e, t, { key: c, type: "removed", value: p });
|
|
2630
|
-
} catch {
|
|
2631
|
-
return !1;
|
|
2632
|
-
}
|
|
2633
|
-
};
|
|
2634
|
-
return { added: r, changed: n, changedFrom: o, changedTo: i, decreased: s, emptied: a, filled: l, increased: u, removed: f };
|
|
2635
|
-
}
|
|
2636
|
-
function Sr(e, t) {
|
|
2637
|
-
var r = Object.keys(e);
|
|
2638
|
-
if (Object.getOwnPropertySymbols) {
|
|
2639
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
2640
|
-
t && (n = n.filter(function(o) {
|
|
2641
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
2642
|
-
})), r.push.apply(r, n);
|
|
2643
|
-
}
|
|
2644
|
-
return r;
|
|
2645
|
-
}
|
|
2646
|
-
function Y(e) {
|
|
2647
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
2648
|
-
var r = arguments[t] != null ? arguments[t] : {};
|
|
2649
|
-
t % 2 ? Sr(Object(r), !0).forEach(function(n) {
|
|
2650
|
-
J(e, n, r[n]);
|
|
2651
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Sr(Object(r)).forEach(function(n) {
|
|
2652
|
-
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
2653
|
-
});
|
|
2654
|
-
}
|
|
2655
|
-
return e;
|
|
2656
|
-
}
|
|
2657
|
-
function Be(e, t) {
|
|
2658
|
-
if (!(e instanceof t))
|
|
2659
|
-
throw new TypeError("Cannot call a class as a function");
|
|
2660
|
-
}
|
|
2661
|
-
function Qo(e, t) {
|
|
2662
|
-
for (var r = 0; r < t.length; r++) {
|
|
2663
|
-
var n = t[r];
|
|
2664
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, tn(n.key), n);
|
|
2665
|
-
}
|
|
2666
|
-
}
|
|
2667
|
-
function Ue(e, t, r) {
|
|
2668
|
-
return t && Qo(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
2669
|
-
writable: !1
|
|
2670
|
-
}), e;
|
|
2671
|
-
}
|
|
2672
|
-
function J(e, t, r) {
|
|
2673
|
-
return t = tn(t), t in e ? Object.defineProperty(e, t, {
|
|
2674
|
-
value: r,
|
|
2675
|
-
enumerable: !0,
|
|
2676
|
-
configurable: !0,
|
|
2677
|
-
writable: !0
|
|
2678
|
-
}) : e[t] = r, e;
|
|
2679
|
-
}
|
|
2680
|
-
function ze(e, t) {
|
|
2681
|
-
if (typeof t != "function" && t !== null)
|
|
2682
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
2683
|
-
e.prototype = Object.create(t && t.prototype, {
|
|
2684
|
-
constructor: {
|
|
2685
|
-
value: e,
|
|
2686
|
-
writable: !0,
|
|
2687
|
-
configurable: !0
|
|
2688
|
-
}
|
|
2689
|
-
}), Object.defineProperty(e, "prototype", {
|
|
2690
|
-
writable: !1
|
|
2691
|
-
}), t && Nt(e, t);
|
|
2692
|
-
}
|
|
2693
|
-
function it(e) {
|
|
2694
|
-
return it = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
2695
|
-
return r.__proto__ || Object.getPrototypeOf(r);
|
|
2696
|
-
}, it(e);
|
|
2697
|
-
}
|
|
2698
|
-
function Nt(e, t) {
|
|
2699
|
-
return Nt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
2700
|
-
return n.__proto__ = o, n;
|
|
2701
|
-
}, Nt(e, t);
|
|
2702
|
-
}
|
|
2703
|
-
function ei() {
|
|
2704
|
-
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
2705
|
-
if (typeof Proxy == "function") return !0;
|
|
2706
|
-
try {
|
|
2707
|
-
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2708
|
-
})), !0;
|
|
2709
|
-
} catch {
|
|
2710
|
-
return !1;
|
|
2711
|
-
}
|
|
2712
|
-
}
|
|
2713
|
-
function ti(e, t) {
|
|
2714
|
-
if (e == null) return {};
|
|
2715
|
-
var r = {}, n = Object.keys(e), o, i;
|
|
2716
|
-
for (i = 0; i < n.length; i++)
|
|
2717
|
-
o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
2718
|
-
return r;
|
|
2719
|
-
}
|
|
2720
|
-
function en(e, t) {
|
|
2721
|
-
if (e == null) return {};
|
|
2722
|
-
var r = ti(e, t), n, o;
|
|
2723
|
-
if (Object.getOwnPropertySymbols) {
|
|
2724
|
-
var i = Object.getOwnPropertySymbols(e);
|
|
2725
|
-
for (o = 0; o < i.length; o++)
|
|
2726
|
-
n = i[o], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
2727
|
-
}
|
|
2728
|
-
return r;
|
|
2729
|
-
}
|
|
2730
|
-
function de(e) {
|
|
2731
|
-
if (e === void 0)
|
|
2732
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2733
|
-
return e;
|
|
2734
|
-
}
|
|
2735
|
-
function ri(e, t) {
|
|
2736
|
-
if (t && (typeof t == "object" || typeof t == "function"))
|
|
2737
|
-
return t;
|
|
2738
|
-
if (t !== void 0)
|
|
2739
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2740
|
-
return de(e);
|
|
2741
|
-
}
|
|
2742
|
-
function qe(e) {
|
|
2743
|
-
var t = ei();
|
|
2744
|
-
return function() {
|
|
2745
|
-
var n = it(e), o;
|
|
2746
|
-
if (t) {
|
|
2747
|
-
var i = it(this).constructor;
|
|
2748
|
-
o = Reflect.construct(n, arguments, i);
|
|
2749
|
-
} else
|
|
2750
|
-
o = n.apply(this, arguments);
|
|
2751
|
-
return ri(this, o);
|
|
2752
|
-
};
|
|
2753
|
-
}
|
|
2754
|
-
function ni(e, t) {
|
|
2755
|
-
if (typeof e != "object" || e === null) return e;
|
|
2756
|
-
var r = e[Symbol.toPrimitive];
|
|
2757
|
-
if (r !== void 0) {
|
|
2758
|
-
var n = r.call(e, t || "default");
|
|
2759
|
-
if (typeof n != "object") return n;
|
|
2760
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2761
|
-
}
|
|
2762
|
-
return (t === "string" ? String : Number)(e);
|
|
2763
|
-
}
|
|
2764
|
-
function tn(e) {
|
|
2765
|
-
var t = ni(e, "string");
|
|
2766
|
-
return typeof t == "symbol" ? t : String(t);
|
|
2767
|
-
}
|
|
2768
|
-
var oi = { flip: { padding: 20 }, preventOverflow: { padding: 10 } }, ii = "The typeValidator argument must be a function with the signature function(props, propName, componentName).", si = "The error message is optional, but must be a string if provided.";
|
|
2769
|
-
function ai(e, t, r, n) {
|
|
2770
|
-
return typeof e == "boolean" ? e : typeof e == "function" ? e(t, r, n) : e ? !!e : !1;
|
|
2771
|
-
}
|
|
2772
|
-
function li(e, t) {
|
|
2773
|
-
return Object.hasOwnProperty.call(e, t);
|
|
2774
|
-
}
|
|
2775
|
-
function ci(e, t, r, n) {
|
|
2776
|
-
return new Error("Required ".concat(e[t], " `").concat(t, "` was not specified in `").concat(r, "`."));
|
|
2777
|
-
}
|
|
2778
|
-
function ui(e, t) {
|
|
2779
|
-
if (typeof e != "function")
|
|
2780
|
-
throw new TypeError(ii);
|
|
2781
|
-
if (t)
|
|
2782
|
-
throw new TypeError(si);
|
|
2783
|
-
}
|
|
2784
|
-
function Tr(e, t, r) {
|
|
2785
|
-
return ui(e, r), function(n, o, i) {
|
|
2786
|
-
for (var s = arguments.length, a = new Array(s > 3 ? s - 3 : 0), l = 3; l < s; l++)
|
|
2787
|
-
a[l - 3] = arguments[l];
|
|
2788
|
-
return ai(t, n, o, i) ? li(n, o) ? e.apply(void 0, [n, o, i].concat(a)) : ci(n, o, i) : e.apply(void 0, [n, o, i].concat(a));
|
|
2789
|
-
};
|
|
2790
|
-
}
|
|
2791
|
-
var $ = { INIT: "init", IDLE: "idle", OPENING: "opening", OPEN: "open", CLOSING: "closing", ERROR: "error" }, Ae = Qe.createPortal !== void 0;
|
|
2792
|
-
function ce() {
|
|
2793
|
-
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
2794
|
-
}
|
|
2795
|
-
function Tt() {
|
|
2796
|
-
return "ontouchstart" in window && /Mobi/.test(navigator.userAgent);
|
|
2797
|
-
}
|
|
2798
|
-
function Ze(e) {
|
|
2799
|
-
var t = e.title, r = e.data, n = e.warn, o = n === void 0 ? !1 : n, i = e.debug, s = i === void 0 ? !1 : i, a = o ? console.warn || console.error : console.log;
|
|
2800
|
-
s && t && r && (console.groupCollapsed("%creact-floater: ".concat(t), "color: #9b00ff; font-weight: bold; font-size: 12px;"), Array.isArray(r) ? r.forEach(function(l) {
|
|
2801
|
-
y.plainObject(l) && l.key ? a.apply(console, [l.key, l.value]) : a.apply(console, [l]);
|
|
2802
|
-
}) : a.apply(console, [r]), console.groupEnd());
|
|
2803
|
-
}
|
|
2804
|
-
function fi(e, t, r) {
|
|
2805
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
2806
|
-
e.addEventListener(t, r, n);
|
|
2807
|
-
}
|
|
2808
|
-
function pi(e, t, r) {
|
|
2809
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
|
|
2810
|
-
e.removeEventListener(t, r, n);
|
|
2811
|
-
}
|
|
2812
|
-
function di(e, t, r) {
|
|
2813
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, o;
|
|
2814
|
-
o = function(s) {
|
|
2815
|
-
r(s), pi(e, t, o);
|
|
2816
|
-
}, fi(e, t, o, n);
|
|
2817
|
-
}
|
|
2818
|
-
function Pr() {
|
|
2819
|
-
}
|
|
2820
|
-
var rn = /* @__PURE__ */ function(e) {
|
|
2821
|
-
ze(r, e);
|
|
2822
|
-
var t = qe(r);
|
|
2823
|
-
function r() {
|
|
2824
|
-
return Be(this, r), t.apply(this, arguments);
|
|
2825
|
-
}
|
|
2826
|
-
return Ue(r, [{ key: "componentDidMount", value: function() {
|
|
2827
|
-
ce() && (this.node || this.appendNode(), Ae || this.renderPortal());
|
|
2828
|
-
} }, { key: "componentDidUpdate", value: function() {
|
|
2829
|
-
ce() && (Ae || this.renderPortal());
|
|
2830
|
-
} }, { key: "componentWillUnmount", value: function() {
|
|
2831
|
-
!ce() || !this.node || (Ae || Qe.unmountComponentAtNode(this.node), this.node && this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = void 0));
|
|
2832
|
-
} }, { key: "appendNode", value: function() {
|
|
2833
|
-
var o = this.props, i = o.id, s = o.zIndex;
|
|
2834
|
-
this.node || (this.node = document.createElement("div"), i && (this.node.id = i), s && (this.node.style.zIndex = s), document.body.appendChild(this.node));
|
|
2835
|
-
} }, { key: "renderPortal", value: function() {
|
|
2836
|
-
if (!ce()) return null;
|
|
2837
|
-
var o = this.props, i = o.children, s = o.setRef;
|
|
2838
|
-
if (this.node || this.appendNode(), Ae)
|
|
2839
|
-
return /* @__PURE__ */ Qe.createPortal(i, this.node);
|
|
2840
|
-
var a = Qe.unstable_renderSubtreeIntoContainer(this, i.length > 1 ? /* @__PURE__ */ _.createElement("div", null, i) : i[0], this.node);
|
|
2841
|
-
return s(a), null;
|
|
2842
|
-
} }, { key: "renderReact16", value: function() {
|
|
2843
|
-
var o = this.props, i = o.hasChildren, s = o.placement, a = o.target;
|
|
2844
|
-
return i ? this.renderPortal() : a || s === "center" ? this.renderPortal() : null;
|
|
2845
|
-
} }, { key: "render", value: function() {
|
|
2846
|
-
return Ae ? this.renderReact16() : null;
|
|
2847
|
-
} }]), r;
|
|
2848
|
-
}(_.Component);
|
|
2849
|
-
J(rn, "propTypes", { children: O.oneOfType([O.element, O.array]), hasChildren: O.bool, id: O.oneOfType([O.string, O.number]), placement: O.string, setRef: O.func.isRequired, target: O.oneOfType([O.object, O.string]), zIndex: O.number });
|
|
2850
|
-
var nn = /* @__PURE__ */ function(e) {
|
|
2851
|
-
ze(r, e);
|
|
2852
|
-
var t = qe(r);
|
|
2853
|
-
function r() {
|
|
2854
|
-
return Be(this, r), t.apply(this, arguments);
|
|
2855
|
-
}
|
|
2856
|
-
return Ue(r, [{ key: "parentStyle", get: function() {
|
|
2857
|
-
var o = this.props, i = o.placement, s = o.styles, a = s.arrow.length, l = { pointerEvents: "none", position: "absolute", width: "100%" };
|
|
2858
|
-
return i.startsWith("top") ? (l.bottom = 0, l.left = 0, l.right = 0, l.height = a) : i.startsWith("bottom") ? (l.left = 0, l.right = 0, l.top = 0, l.height = a) : i.startsWith("left") ? (l.right = 0, l.top = 0, l.bottom = 0) : i.startsWith("right") && (l.left = 0, l.top = 0), l;
|
|
2859
|
-
} }, { key: "render", value: function() {
|
|
2860
|
-
var o = this.props, i = o.placement, s = o.setArrowRef, a = o.styles, l = a.arrow, u = l.color, f = l.display, c = l.length, p = l.margin, d = l.position, h = l.spread, m = { display: f, position: d }, w, g = h, v = c;
|
|
2861
|
-
return i.startsWith("top") ? (w = "0,0 ".concat(g / 2, ",").concat(v, " ").concat(g, ",0"), m.bottom = 0, m.marginLeft = p, m.marginRight = p) : i.startsWith("bottom") ? (w = "".concat(g, ",").concat(v, " ").concat(g / 2, ",0 0,").concat(v), m.top = 0, m.marginLeft = p, m.marginRight = p) : i.startsWith("left") ? (v = h, g = c, w = "0,0 ".concat(g, ",").concat(v / 2, " 0,").concat(v), m.right = 0, m.marginTop = p, m.marginBottom = p) : i.startsWith("right") && (v = h, g = c, w = "".concat(g, ",").concat(v, " ").concat(g, ",0 0,").concat(v / 2), m.left = 0, m.marginTop = p, m.marginBottom = p), /* @__PURE__ */ _.createElement("div", { className: "__floater__arrow", style: this.parentStyle }, /* @__PURE__ */ _.createElement("span", { ref: s, style: m }, /* @__PURE__ */ _.createElement("svg", { width: g, height: v, version: "1.1", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ _.createElement("polygon", { points: w, fill: u }))));
|
|
2862
|
-
} }]), r;
|
|
2863
|
-
}(_.Component);
|
|
2864
|
-
J(nn, "propTypes", { placement: O.string.isRequired, setArrowRef: O.func.isRequired, styles: O.object.isRequired });
|
|
2865
|
-
var hi = ["color", "height", "width"];
|
|
2866
|
-
function on(e) {
|
|
2867
|
-
var t = e.handleClick, r = e.styles, n = r.color, o = r.height, i = r.width, s = en(r, hi);
|
|
2868
|
-
return /* @__PURE__ */ _.createElement("button", { "aria-label": "close", onClick: t, style: s, type: "button" }, /* @__PURE__ */ _.createElement("svg", { width: "".concat(i, "px"), height: "".concat(o, "px"), viewBox: "0 0 18 18", version: "1.1", xmlns: "http://www.w3.org/2000/svg", preserveAspectRatio: "xMidYMid" }, /* @__PURE__ */ _.createElement("g", null, /* @__PURE__ */ _.createElement("path", { d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z", fill: n }))));
|
|
2869
|
-
}
|
|
2870
|
-
on.propTypes = { handleClick: O.func.isRequired, styles: O.object.isRequired };
|
|
2871
|
-
function sn(e) {
|
|
2872
|
-
var t = e.content, r = e.footer, n = e.handleClick, o = e.open, i = e.positionWrapper, s = e.showCloseButton, a = e.title, l = e.styles, u = { content: /* @__PURE__ */ _.isValidElement(t) ? t : /* @__PURE__ */ _.createElement("div", { className: "__floater__content", style: l.content }, t) };
|
|
2873
|
-
return a && (u.title = /* @__PURE__ */ _.isValidElement(a) ? a : /* @__PURE__ */ _.createElement("div", { className: "__floater__title", style: l.title }, a)), r && (u.footer = /* @__PURE__ */ _.isValidElement(r) ? r : /* @__PURE__ */ _.createElement("div", { className: "__floater__footer", style: l.footer }, r)), (s || i) && !y.boolean(o) && (u.close = /* @__PURE__ */ _.createElement(on, { styles: l.close, handleClick: n })), /* @__PURE__ */ _.createElement("div", { className: "__floater__container", style: l.container }, u.close, u.title, u.content, u.footer);
|
|
2874
|
-
}
|
|
2875
|
-
sn.propTypes = { content: O.node.isRequired, footer: O.node, handleClick: O.func.isRequired, open: O.bool, positionWrapper: O.bool.isRequired, showCloseButton: O.bool.isRequired, styles: O.object.isRequired, title: O.node };
|
|
2876
|
-
var an = /* @__PURE__ */ function(e) {
|
|
2877
|
-
ze(r, e);
|
|
2878
|
-
var t = qe(r);
|
|
2879
|
-
function r() {
|
|
2880
|
-
return Be(this, r), t.apply(this, arguments);
|
|
2881
|
-
}
|
|
2882
|
-
return Ue(r, [{ key: "style", get: function() {
|
|
2883
|
-
var o = this.props, i = o.disableAnimation, s = o.component, a = o.placement, l = o.hideArrow, u = o.status, f = o.styles, c = f.arrow.length, p = f.floater, d = f.floaterCentered, h = f.floaterClosing, m = f.floaterOpening, w = f.floaterWithAnimation, g = f.floaterWithComponent, v = {};
|
|
2884
|
-
return l || (a.startsWith("top") ? v.padding = "0 0 ".concat(c, "px") : a.startsWith("bottom") ? v.padding = "".concat(c, "px 0 0") : a.startsWith("left") ? v.padding = "0 ".concat(c, "px 0 0") : a.startsWith("right") && (v.padding = "0 0 0 ".concat(c, "px"))), [$.OPENING, $.OPEN].indexOf(u) !== -1 && (v = Y(Y({}, v), m)), u === $.CLOSING && (v = Y(Y({}, v), h)), u === $.OPEN && !i && (v = Y(Y({}, v), w)), a === "center" && (v = Y(Y({}, v), d)), s && (v = Y(Y({}, v), g)), Y(Y({}, p), v);
|
|
2885
|
-
} }, { key: "render", value: function() {
|
|
2886
|
-
var o = this.props, i = o.component, s = o.handleClick, a = o.hideArrow, l = o.setFloaterRef, u = o.status, f = {}, c = ["__floater"];
|
|
2887
|
-
return i ? /* @__PURE__ */ _.isValidElement(i) ? f.content = /* @__PURE__ */ _.cloneElement(i, { closeFn: s }) : f.content = i({ closeFn: s }) : f.content = /* @__PURE__ */ _.createElement(sn, this.props), u === $.OPEN && c.push("__floater__open"), a || (f.arrow = /* @__PURE__ */ _.createElement(nn, this.props)), /* @__PURE__ */ _.createElement("div", { ref: l, className: c.join(" "), style: this.style }, /* @__PURE__ */ _.createElement("div", { className: "__floater__body" }, f.content, f.arrow));
|
|
2888
|
-
} }]), r;
|
|
2889
|
-
}(_.Component);
|
|
2890
|
-
J(an, "propTypes", { component: O.oneOfType([O.func, O.element]), content: O.node, disableAnimation: O.bool.isRequired, footer: O.node, handleClick: O.func.isRequired, hideArrow: O.bool.isRequired, open: O.bool, placement: O.string.isRequired, positionWrapper: O.bool.isRequired, setArrowRef: O.func.isRequired, setFloaterRef: O.func.isRequired, showCloseButton: O.bool, status: O.string.isRequired, styles: O.object.isRequired, title: O.node });
|
|
2891
|
-
var ln = /* @__PURE__ */ function(e) {
|
|
2892
|
-
ze(r, e);
|
|
2893
|
-
var t = qe(r);
|
|
2894
|
-
function r() {
|
|
2895
|
-
return Be(this, r), t.apply(this, arguments);
|
|
2896
|
-
}
|
|
2897
|
-
return Ue(r, [{ key: "render", value: function() {
|
|
2898
|
-
var o = this.props, i = o.children, s = o.handleClick, a = o.handleMouseEnter, l = o.handleMouseLeave, u = o.setChildRef, f = o.setWrapperRef, c = o.style, p = o.styles, d;
|
|
2899
|
-
if (i)
|
|
2900
|
-
if (_.Children.count(i) === 1)
|
|
2901
|
-
if (!/* @__PURE__ */ _.isValidElement(i))
|
|
2902
|
-
d = /* @__PURE__ */ _.createElement("span", null, i);
|
|
2903
|
-
else {
|
|
2904
|
-
var h = y.function(i.type) ? "innerRef" : "ref";
|
|
2905
|
-
d = /* @__PURE__ */ _.cloneElement(_.Children.only(i), J({}, h, u));
|
|
2906
|
-
}
|
|
2907
|
-
else
|
|
2908
|
-
d = i;
|
|
2909
|
-
return d ? /* @__PURE__ */ _.createElement("span", { ref: f, style: Y(Y({}, p), c), onClick: s, onMouseEnter: a, onMouseLeave: l }, d) : null;
|
|
2910
|
-
} }]), r;
|
|
2911
|
-
}(_.Component);
|
|
2912
|
-
J(ln, "propTypes", { children: O.node, handleClick: O.func.isRequired, handleMouseEnter: O.func.isRequired, handleMouseLeave: O.func.isRequired, setChildRef: O.func.isRequired, setWrapperRef: O.func.isRequired, style: O.object, styles: O.object.isRequired });
|
|
2913
|
-
var yi = { zIndex: 100 };
|
|
2914
|
-
function mi(e) {
|
|
2915
|
-
var t = ne(yi, e.options || {});
|
|
2916
|
-
return { wrapper: { cursor: "help", display: "inline-flex", flexDirection: "column", zIndex: t.zIndex }, wrapperPosition: { left: -1e3, position: "absolute", top: -1e3, visibility: "hidden" }, floater: { display: "inline-block", filter: "drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))", maxWidth: 300, opacity: 0, position: "relative", transition: "opacity 0.3s", visibility: "hidden", zIndex: t.zIndex }, floaterOpening: { opacity: 1, visibility: "visible" }, floaterWithAnimation: { opacity: 1, transition: "opacity 0.3s, transform 0.2s", visibility: "visible" }, floaterWithComponent: { maxWidth: "100%" }, floaterClosing: { opacity: 0, visibility: "visible" }, floaterCentered: { left: "50%", position: "fixed", top: "50%", transform: "translate(-50%, -50%)" }, container: { backgroundColor: "#fff", color: "#666", minHeight: 60, minWidth: 200, padding: 20, position: "relative", zIndex: 10 }, title: { borderBottom: "1px solid #555", color: "#555", fontSize: 18, marginBottom: 5, paddingBottom: 6, paddingRight: 18 }, content: { fontSize: 15 }, close: { backgroundColor: "transparent", border: 0, borderRadius: 0, color: "#555", fontSize: 0, height: 15, outline: "none", padding: 10, position: "absolute", right: 0, top: 0, width: 15, WebkitAppearance: "none" }, footer: { borderTop: "1px solid #ccc", fontSize: 13, marginTop: 10, paddingTop: 5 }, arrow: { color: "#fff", display: "inline-flex", length: 16, margin: 8, position: "absolute", spread: 32 }, options: t };
|
|
2917
|
-
}
|
|
2918
|
-
var vi = ["arrow", "flip", "offset"], gi = ["position", "top", "right", "bottom", "left"], $t = /* @__PURE__ */ function(e) {
|
|
2919
|
-
ze(r, e);
|
|
2920
|
-
var t = qe(r);
|
|
2921
|
-
function r(n) {
|
|
2922
|
-
var o;
|
|
2923
|
-
return Be(this, r), o = t.call(this, n), J(de(o), "setArrowRef", function(i) {
|
|
2924
|
-
o.arrowRef = i;
|
|
2925
|
-
}), J(de(o), "setChildRef", function(i) {
|
|
2926
|
-
o.childRef = i;
|
|
2927
|
-
}), J(de(o), "setFloaterRef", function(i) {
|
|
2928
|
-
o.floaterRef = i;
|
|
2929
|
-
}), J(de(o), "setWrapperRef", function(i) {
|
|
2930
|
-
o.wrapperRef = i;
|
|
2931
|
-
}), J(de(o), "handleTransitionEnd", function() {
|
|
2932
|
-
var i = o.state.status, s = o.props.callback;
|
|
2933
|
-
o.wrapperPopper && o.wrapperPopper.instance.update(), o.setState({ status: i === $.OPENING ? $.OPEN : $.IDLE }, function() {
|
|
2934
|
-
var a = o.state.status;
|
|
2935
|
-
s(a === $.OPEN ? "open" : "close", o.props);
|
|
2936
|
-
});
|
|
2937
|
-
}), J(de(o), "handleClick", function() {
|
|
2938
|
-
var i = o.props, s = i.event, a = i.open;
|
|
2939
|
-
if (!y.boolean(a)) {
|
|
2940
|
-
var l = o.state, u = l.positionWrapper, f = l.status;
|
|
2941
|
-
(o.event === "click" || o.event === "hover" && u) && (Ze({ title: "click", data: [{ event: s, status: f === $.OPEN ? "closing" : "opening" }], debug: o.debug }), o.toggle());
|
|
2942
|
-
}
|
|
2943
|
-
}), J(de(o), "handleMouseEnter", function() {
|
|
2944
|
-
var i = o.props, s = i.event, a = i.open;
|
|
2945
|
-
if (!(y.boolean(a) || Tt())) {
|
|
2946
|
-
var l = o.state.status;
|
|
2947
|
-
o.event === "hover" && l === $.IDLE && (Ze({ title: "mouseEnter", data: [{ key: "originalEvent", value: s }], debug: o.debug }), clearTimeout(o.eventDelayTimeout), o.toggle());
|
|
2948
|
-
}
|
|
2949
|
-
}), J(de(o), "handleMouseLeave", function() {
|
|
2950
|
-
var i = o.props, s = i.event, a = i.eventDelay, l = i.open;
|
|
2951
|
-
if (!(y.boolean(l) || Tt())) {
|
|
2952
|
-
var u = o.state, f = u.status, c = u.positionWrapper;
|
|
2953
|
-
o.event === "hover" && (Ze({ title: "mouseLeave", data: [{ key: "originalEvent", value: s }], debug: o.debug }), a ? [$.OPENING, $.OPEN].indexOf(f) !== -1 && !c && !o.eventDelayTimeout && (o.eventDelayTimeout = setTimeout(function() {
|
|
2954
|
-
delete o.eventDelayTimeout, o.toggle();
|
|
2955
|
-
}, a * 1e3)) : o.toggle($.IDLE));
|
|
2956
|
-
}
|
|
2957
|
-
}), o.state = { currentPlacement: n.placement, needsUpdate: !1, positionWrapper: n.wrapperOptions.position && !!n.target, status: $.INIT, statusWrapper: $.INIT }, o._isMounted = !1, o.hasMounted = !1, ce() && window.addEventListener("load", function() {
|
|
2958
|
-
o.popper && o.popper.instance.update(), o.wrapperPopper && o.wrapperPopper.instance.update();
|
|
2959
|
-
}), o;
|
|
2960
|
-
}
|
|
2961
|
-
return Ue(r, [{ key: "componentDidMount", value: function() {
|
|
2962
|
-
if (ce()) {
|
|
2963
|
-
var o = this.state.positionWrapper, i = this.props, s = i.children, a = i.open, l = i.target;
|
|
2964
|
-
this._isMounted = !0, Ze({ title: "init", data: { hasChildren: !!s, hasTarget: !!l, isControlled: y.boolean(a), positionWrapper: o, target: this.target, floater: this.floaterRef }, debug: this.debug }), this.hasMounted || (this.initPopper(), this.hasMounted = !0), !s && l && y.boolean(a);
|
|
2965
|
-
}
|
|
2966
|
-
} }, { key: "componentDidUpdate", value: function(o, i) {
|
|
2967
|
-
if (ce()) {
|
|
2968
|
-
var s = this.props, a = s.autoOpen, l = s.open, u = s.target, f = s.wrapperOptions, c = Zo(i, this.state), p = c.changedFrom, d = c.changed;
|
|
2969
|
-
if (o.open !== l) {
|
|
2970
|
-
var h;
|
|
2971
|
-
y.boolean(l) && (h = l ? $.OPENING : $.CLOSING), this.toggle(h);
|
|
2972
|
-
}
|
|
2973
|
-
(o.wrapperOptions.position !== f.position || o.target !== u) && this.changeWrapperPosition(this.props), d("status", $.IDLE) && l ? this.toggle($.OPEN) : p("status", $.INIT, $.IDLE) && a && this.toggle($.OPEN), this.popper && d("status", $.OPENING) && this.popper.instance.update(), this.floaterRef && (d("status", $.OPENING) || d("status", $.CLOSING)) && di(this.floaterRef, "transitionend", this.handleTransitionEnd), d("needsUpdate", !0) && this.rebuildPopper();
|
|
2974
|
-
}
|
|
2975
|
-
} }, { key: "componentWillUnmount", value: function() {
|
|
2976
|
-
ce() && (this._isMounted = !1, this.popper && this.popper.instance.destroy(), this.wrapperPopper && this.wrapperPopper.instance.destroy());
|
|
2977
|
-
} }, { key: "initPopper", value: function() {
|
|
2978
|
-
var o = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.target, s = this.state.positionWrapper, a = this.props, l = a.disableFlip, u = a.getPopper, f = a.hideArrow, c = a.offset, p = a.placement, d = a.wrapperOptions, h = p === "top" || p === "bottom" ? "flip" : ["right", "bottom-end", "top-end", "left", "top-start", "bottom-start"];
|
|
2979
|
-
if (p === "center")
|
|
2980
|
-
this.setState({ status: $.IDLE });
|
|
2981
|
-
else if (i && this.floaterRef) {
|
|
2982
|
-
var m = this.options, w = m.arrow, g = m.flip, v = m.offset, S = en(m, vi);
|
|
2983
|
-
new Le(i, this.floaterRef, { placement: p, modifiers: Y({ arrow: Y({ enabled: !f, element: this.arrowRef }, w), flip: Y({ enabled: !l, behavior: h }, g), offset: Y({ offset: "0, ".concat(c, "px") }, v) }, S), onCreate: function(j) {
|
|
2984
|
-
var K;
|
|
2985
|
-
if (o.popper = j, !((K = o.floaterRef) !== null && K !== void 0 && K.isConnected)) {
|
|
2986
|
-
o.setState({ needsUpdate: !0 });
|
|
2987
|
-
return;
|
|
2988
|
-
}
|
|
2989
|
-
u(j, "floater"), o._isMounted && o.setState({ currentPlacement: j.placement, status: $.IDLE }), p !== j.placement && setTimeout(function() {
|
|
2990
|
-
j.instance.update();
|
|
2991
|
-
}, 1);
|
|
2992
|
-
}, onUpdate: function(j) {
|
|
2993
|
-
o.popper = j;
|
|
2994
|
-
var K = o.state.currentPlacement;
|
|
2995
|
-
o._isMounted && j.placement !== K && o.setState({ currentPlacement: j.placement });
|
|
2996
|
-
} });
|
|
2997
|
-
}
|
|
2998
|
-
if (s) {
|
|
2999
|
-
var N = y.undefined(d.offset) ? 0 : d.offset;
|
|
3000
|
-
new Le(this.target, this.wrapperRef, { placement: d.placement || p, modifiers: { arrow: { enabled: !1 }, offset: { offset: "0, ".concat(N, "px") }, flip: { enabled: !1 } }, onCreate: function(j) {
|
|
3001
|
-
o.wrapperPopper = j, o._isMounted && o.setState({ statusWrapper: $.IDLE }), u(j, "wrapper"), p !== j.placement && setTimeout(function() {
|
|
3002
|
-
j.instance.update();
|
|
3003
|
-
}, 1);
|
|
3004
|
-
} });
|
|
3005
|
-
}
|
|
3006
|
-
} }, { key: "rebuildPopper", value: function() {
|
|
3007
|
-
var o = this;
|
|
3008
|
-
this.floaterRefInterval = setInterval(function() {
|
|
3009
|
-
var i;
|
|
3010
|
-
(i = o.floaterRef) !== null && i !== void 0 && i.isConnected && (clearInterval(o.floaterRefInterval), o.setState({ needsUpdate: !1 }), o.initPopper());
|
|
3011
|
-
}, 50);
|
|
3012
|
-
} }, { key: "changeWrapperPosition", value: function(o) {
|
|
3013
|
-
var i = o.target, s = o.wrapperOptions;
|
|
3014
|
-
this.setState({ positionWrapper: s.position && !!i });
|
|
3015
|
-
} }, { key: "toggle", value: function(o) {
|
|
3016
|
-
var i = this.state.status, s = i === $.OPEN ? $.CLOSING : $.OPENING;
|
|
3017
|
-
y.undefined(o) || (s = o), this.setState({ status: s });
|
|
3018
|
-
} }, { key: "debug", get: function() {
|
|
3019
|
-
var o = this.props.debug;
|
|
3020
|
-
return o || ce() && "ReactFloaterDebug" in window && !!window.ReactFloaterDebug;
|
|
3021
|
-
} }, { key: "event", get: function() {
|
|
3022
|
-
var o = this.props, i = o.disableHoverToClick, s = o.event;
|
|
3023
|
-
return s === "hover" && Tt() && !i ? "click" : s;
|
|
3024
|
-
} }, { key: "options", get: function() {
|
|
3025
|
-
var o = this.props.options;
|
|
3026
|
-
return ne(oi, o || {});
|
|
3027
|
-
} }, { key: "styles", get: function() {
|
|
3028
|
-
var o = this, i = this.state, s = i.status, a = i.positionWrapper, l = i.statusWrapper, u = this.props.styles, f = ne(mi(u), u);
|
|
3029
|
-
if (a) {
|
|
3030
|
-
var c;
|
|
3031
|
-
[$.IDLE].indexOf(s) === -1 || [$.IDLE].indexOf(l) === -1 ? c = f.wrapperPosition : c = this.wrapperPopper.styles, f.wrapper = Y(Y({}, f.wrapper), c);
|
|
3032
|
-
}
|
|
3033
|
-
if (this.target) {
|
|
3034
|
-
var p = window.getComputedStyle(this.target);
|
|
3035
|
-
this.wrapperStyles ? f.wrapper = Y(Y({}, f.wrapper), this.wrapperStyles) : ["relative", "static"].indexOf(p.position) === -1 && (this.wrapperStyles = {}, a || (gi.forEach(function(d) {
|
|
3036
|
-
o.wrapperStyles[d] = p[d];
|
|
3037
|
-
}), f.wrapper = Y(Y({}, f.wrapper), this.wrapperStyles), this.target.style.position = "relative", this.target.style.top = "auto", this.target.style.right = "auto", this.target.style.bottom = "auto", this.target.style.left = "auto"));
|
|
3038
|
-
}
|
|
3039
|
-
return f;
|
|
3040
|
-
} }, { key: "target", get: function() {
|
|
3041
|
-
if (!ce()) return null;
|
|
3042
|
-
var o = this.props.target;
|
|
3043
|
-
return o ? y.domElement(o) ? o : document.querySelector(o) : this.childRef || this.wrapperRef;
|
|
3044
|
-
} }, { key: "render", value: function() {
|
|
3045
|
-
var o = this.state, i = o.currentPlacement, s = o.positionWrapper, a = o.status, l = this.props, u = l.children, f = l.component, c = l.content, p = l.disableAnimation, d = l.footer, h = l.hideArrow, m = l.id, w = l.open, g = l.showCloseButton, v = l.style, S = l.target, N = l.title, b = /* @__PURE__ */ _.createElement(ln, { handleClick: this.handleClick, handleMouseEnter: this.handleMouseEnter, handleMouseLeave: this.handleMouseLeave, setChildRef: this.setChildRef, setWrapperRef: this.setWrapperRef, style: v, styles: this.styles.wrapper }, u), j = {};
|
|
3046
|
-
return s ? j.wrapperInPortal = b : j.wrapperAsChildren = b, /* @__PURE__ */ _.createElement("span", null, /* @__PURE__ */ _.createElement(rn, { hasChildren: !!u, id: m, placement: i, setRef: this.setFloaterRef, target: S, zIndex: this.styles.options.zIndex }, /* @__PURE__ */ _.createElement(an, { component: f, content: c, disableAnimation: p, footer: d, handleClick: this.handleClick, hideArrow: h || i === "center", open: w, placement: i, positionWrapper: s, setArrowRef: this.setArrowRef, setFloaterRef: this.setFloaterRef, showCloseButton: g, status: a, styles: this.styles, title: N }), j.wrapperInPortal), j.wrapperAsChildren);
|
|
3047
|
-
} }]), r;
|
|
3048
|
-
}(_.Component);
|
|
3049
|
-
J($t, "propTypes", { autoOpen: O.bool, callback: O.func, children: O.node, component: Tr(O.oneOfType([O.func, O.element]), function(e) {
|
|
3050
|
-
return !e.content;
|
|
3051
|
-
}), content: Tr(O.node, function(e) {
|
|
3052
|
-
return !e.component;
|
|
3053
|
-
}), debug: O.bool, disableAnimation: O.bool, disableFlip: O.bool, disableHoverToClick: O.bool, event: O.oneOf(["hover", "click"]), eventDelay: O.number, footer: O.node, getPopper: O.func, hideArrow: O.bool, id: O.oneOfType([O.string, O.number]), offset: O.number, open: O.bool, options: O.object, placement: O.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto", "center"]), showCloseButton: O.bool, style: O.object, styles: O.object, target: O.oneOfType([O.object, O.string]), title: O.node, wrapperOptions: O.shape({ offset: O.number, placement: O.oneOf(["top", "top-start", "top-end", "bottom", "bottom-start", "bottom-end", "left", "left-start", "left-end", "right", "right-start", "right-end", "auto"]), position: O.bool }) });
|
|
3054
|
-
J($t, "defaultProps", { autoOpen: !1, callback: Pr, debug: !1, disableAnimation: !1, disableFlip: !1, disableHoverToClick: !1, event: "click", eventDelay: 0.4, getPopper: Pr, hideArrow: !1, offset: 15, placement: "bottom", showCloseButton: !1, styles: {}, target: null, wrapperOptions: { position: !1 } });
|
|
3055
|
-
var bi = Object.defineProperty, Ei = (e, t, r) => t in e ? bi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, C = (e, t, r) => Ei(e, typeof t != "symbol" ? t + "" : t, r), q = {
|
|
3056
|
-
INIT: "init",
|
|
3057
|
-
START: "start",
|
|
3058
|
-
STOP: "stop",
|
|
3059
|
-
RESET: "reset",
|
|
3060
|
-
PREV: "prev",
|
|
3061
|
-
NEXT: "next",
|
|
3062
|
-
GO: "go",
|
|
3063
|
-
CLOSE: "close",
|
|
3064
|
-
SKIP: "skip",
|
|
3065
|
-
UPDATE: "update"
|
|
3066
|
-
}, ee = {
|
|
3067
|
-
TOUR_START: "tour:start",
|
|
3068
|
-
STEP_BEFORE: "step:before",
|
|
3069
|
-
BEACON: "beacon",
|
|
3070
|
-
TOOLTIP: "tooltip",
|
|
3071
|
-
STEP_AFTER: "step:after",
|
|
3072
|
-
TOUR_END: "tour:end",
|
|
3073
|
-
TOUR_STATUS: "tour:status",
|
|
3074
|
-
TARGET_NOT_FOUND: "error:target_not_found",
|
|
3075
|
-
ERROR: "error"
|
|
3076
|
-
}, I = {
|
|
3077
|
-
INIT: "init",
|
|
3078
|
-
READY: "ready",
|
|
3079
|
-
BEACON: "beacon",
|
|
3080
|
-
TOOLTIP: "tooltip",
|
|
3081
|
-
COMPLETE: "complete",
|
|
3082
|
-
ERROR: "error"
|
|
3083
|
-
}, k = {
|
|
3084
|
-
IDLE: "idle",
|
|
3085
|
-
READY: "ready",
|
|
3086
|
-
WAITING: "waiting",
|
|
3087
|
-
RUNNING: "running",
|
|
3088
|
-
PAUSED: "paused",
|
|
3089
|
-
SKIPPED: "skipped",
|
|
3090
|
-
FINISHED: "finished",
|
|
3091
|
-
ERROR: "error"
|
|
3092
|
-
};
|
|
3093
|
-
function ye() {
|
|
3094
|
-
var e;
|
|
3095
|
-
return !!(typeof window < "u" && ((e = window.document) != null && e.createElement));
|
|
3096
|
-
}
|
|
3097
|
-
function cn(e) {
|
|
3098
|
-
return e ? e.getBoundingClientRect() : null;
|
|
3099
|
-
}
|
|
3100
|
-
function Oi(e = !1) {
|
|
3101
|
-
const { body: t, documentElement: r } = document;
|
|
3102
|
-
if (!t || !r)
|
|
3103
|
-
return 0;
|
|
3104
|
-
if (e) {
|
|
3105
|
-
const n = [
|
|
3106
|
-
t.scrollHeight,
|
|
3107
|
-
t.offsetHeight,
|
|
3108
|
-
r.clientHeight,
|
|
3109
|
-
r.scrollHeight,
|
|
3110
|
-
r.offsetHeight
|
|
3111
|
-
].sort((i, s) => i - s), o = Math.floor(n.length / 2);
|
|
3112
|
-
return n.length % 2 === 0 ? (n[o - 1] + n[o]) / 2 : n[o];
|
|
3113
|
-
}
|
|
3114
|
-
return Math.max(
|
|
3115
|
-
t.scrollHeight,
|
|
3116
|
-
t.offsetHeight,
|
|
3117
|
-
r.clientHeight,
|
|
3118
|
-
r.scrollHeight,
|
|
3119
|
-
r.offsetHeight
|
|
3120
|
-
);
|
|
3121
|
-
}
|
|
3122
|
-
function he(e) {
|
|
3123
|
-
if (typeof e == "string")
|
|
3124
|
-
try {
|
|
3125
|
-
return document.querySelector(e);
|
|
3126
|
-
} catch (t) {
|
|
3127
|
-
return process.env.NODE_ENV !== "production" && console.error(t), null;
|
|
3128
|
-
}
|
|
3129
|
-
return e;
|
|
3130
|
-
}
|
|
3131
|
-
function wi(e) {
|
|
3132
|
-
return !e || e.nodeType !== 1 ? null : getComputedStyle(e);
|
|
3133
|
-
}
|
|
3134
|
-
function Me(e, t, r) {
|
|
3135
|
-
if (!e)
|
|
3136
|
-
return be();
|
|
3137
|
-
const n = jr(e);
|
|
3138
|
-
if (n) {
|
|
3139
|
-
if (n.isSameNode(be()))
|
|
3140
|
-
return r ? document : be();
|
|
3141
|
-
if (!(n.scrollHeight > n.offsetHeight) && !t)
|
|
3142
|
-
return n.style.overflow = "initial", be();
|
|
3143
|
-
}
|
|
3144
|
-
return n;
|
|
3145
|
-
}
|
|
3146
|
-
function He(e, t) {
|
|
3147
|
-
if (!e)
|
|
3148
|
-
return !1;
|
|
3149
|
-
const r = Me(e, t);
|
|
3150
|
-
return r ? !r.isSameNode(be()) : !1;
|
|
3151
|
-
}
|
|
3152
|
-
function Si(e) {
|
|
3153
|
-
return e.offsetParent !== document.body;
|
|
3154
|
-
}
|
|
3155
|
-
function xe(e, t = "fixed") {
|
|
3156
|
-
if (!e || !(e instanceof HTMLElement))
|
|
3157
|
-
return !1;
|
|
3158
|
-
const { nodeName: r } = e, n = wi(e);
|
|
3159
|
-
return r === "BODY" || r === "HTML" ? !1 : n && n.position === t ? !0 : e.parentNode ? xe(e.parentNode, t) : !1;
|
|
3160
|
-
}
|
|
3161
|
-
function Ti(e) {
|
|
3162
|
-
var t;
|
|
3163
|
-
if (!e)
|
|
3164
|
-
return !1;
|
|
3165
|
-
let r = e;
|
|
3166
|
-
for (; r && r !== document.body; ) {
|
|
3167
|
-
if (r instanceof HTMLElement) {
|
|
3168
|
-
const { display: n, visibility: o } = getComputedStyle(r);
|
|
3169
|
-
if (n === "none" || o === "hidden")
|
|
3170
|
-
return !1;
|
|
3171
|
-
}
|
|
3172
|
-
r = (t = r.parentElement) != null ? t : null;
|
|
3173
|
-
}
|
|
3174
|
-
return !0;
|
|
3175
|
-
}
|
|
3176
|
-
function Pi(e, t, r) {
|
|
3177
|
-
var n, o, i;
|
|
3178
|
-
const s = cn(e), a = Me(e, r), l = He(e, r), u = xe(e);
|
|
3179
|
-
let f = 0, c = (n = s == null ? void 0 : s.top) != null ? n : 0;
|
|
3180
|
-
if (l && u) {
|
|
3181
|
-
const p = (o = e == null ? void 0 : e.offsetTop) != null ? o : 0, d = (i = a == null ? void 0 : a.scrollTop) != null ? i : 0;
|
|
3182
|
-
c = p - d;
|
|
3183
|
-
} else a instanceof HTMLElement && (f = a.scrollTop, !l && !xe(e) && (c += f), a.isSameNode(be()) || (c += be().scrollTop));
|
|
3184
|
-
return Math.floor(c - t);
|
|
3185
|
-
}
|
|
3186
|
-
function xi(e, t, r) {
|
|
3187
|
-
var n;
|
|
3188
|
-
if (!e)
|
|
3189
|
-
return 0;
|
|
3190
|
-
const { offsetTop: o = 0, scrollTop: i = 0 } = (n = jr(e)) != null ? n : {};
|
|
3191
|
-
let s = e.getBoundingClientRect().top + i;
|
|
3192
|
-
o && (He(e, r) || Si(e)) && (s -= o);
|
|
3193
|
-
const a = Math.floor(s - t);
|
|
3194
|
-
return a < 0 ? 0 : a;
|
|
3195
|
-
}
|
|
3196
|
-
function be() {
|
|
3197
|
-
var e;
|
|
3198
|
-
return (e = document.scrollingElement) != null ? e : document.documentElement;
|
|
3199
|
-
}
|
|
3200
|
-
function Ci(e, t) {
|
|
3201
|
-
const { duration: r, element: n } = t;
|
|
3202
|
-
return new Promise((o, i) => {
|
|
3203
|
-
const { scrollTop: s } = n, a = e > s ? e - s : s - e;
|
|
3204
|
-
Fn.top(n, e, { duration: a < 100 ? 50 : r }, (l) => l && l.message !== "Element already at target scroll position" ? i(l) : o());
|
|
3205
|
-
});
|
|
3206
|
-
}
|
|
3207
|
-
var ke = bn !== void 0;
|
|
3208
|
-
function un(e = navigator.userAgent) {
|
|
3209
|
-
let t = e;
|
|
3210
|
-
return typeof window > "u" ? t = "node" : document.documentMode ? t = "ie" : /Edge/.test(e) ? t = "edge" : window.opera || e.includes(" OPR/") ? t = "opera" : typeof window.InstallTrigger < "u" ? t = "firefox" : window.chrome ? t = "chrome" : /(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e) && (t = "safari"), t;
|
|
3211
|
-
}
|
|
3212
|
-
function tt(e) {
|
|
3213
|
-
return Object.prototype.toString.call(e).slice(8, -1).toLowerCase();
|
|
3214
|
-
}
|
|
3215
|
-
function ue(e, t = {}) {
|
|
3216
|
-
const { defaultValue: r, step: n, steps: o } = t;
|
|
3217
|
-
let i = Qt(e);
|
|
3218
|
-
if (i)
|
|
3219
|
-
(i.includes("{step}") || i.includes("{steps}")) && n && o && (i = i.replace("{step}", n.toString()).replace("{steps}", o.toString()));
|
|
3220
|
-
else if (_r(e) && !Object.values(e.props).length && tt(e.type) === "function") {
|
|
3221
|
-
const s = e.type({});
|
|
3222
|
-
i = ue(s, t);
|
|
3223
|
-
} else
|
|
3224
|
-
i = Qt(r);
|
|
3225
|
-
return i;
|
|
3226
|
-
}
|
|
3227
|
-
function Ri(e, t) {
|
|
3228
|
-
return !x.plainObject(e) || !x.array(t) ? !1 : Object.keys(e).every((r) => t.includes(r));
|
|
3229
|
-
}
|
|
3230
|
-
function Ni(e) {
|
|
3231
|
-
const t = /^#?([\da-f])([\da-f])([\da-f])$/i, r = e.replace(t, (o, i, s, a) => i + i + s + s + a + a), n = /^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(r);
|
|
3232
|
-
return n ? [parseInt(n[1], 16), parseInt(n[2], 16), parseInt(n[3], 16)] : [];
|
|
3233
|
-
}
|
|
3234
|
-
function xr(e) {
|
|
3235
|
-
return e.disableBeacon || e.placement === "center";
|
|
3236
|
-
}
|
|
3237
|
-
function Cr() {
|
|
3238
|
-
return !["chrome", "safari", "firefox", "opera"].includes(un());
|
|
3239
|
-
}
|
|
3240
|
-
function ve({ data: e, debug: t = !1, title: r, warn: n = !1 }) {
|
|
3241
|
-
const o = n ? console.warn || console.error : console.log;
|
|
3242
|
-
t && (r && e ? (console.groupCollapsed(
|
|
3243
|
-
`%creact-joyride: ${r}`,
|
|
3244
|
-
"color: #ff0044; font-weight: bold; font-size: 12px;"
|
|
3245
|
-
), Array.isArray(e) ? e.forEach((i) => {
|
|
3246
|
-
x.plainObject(i) && i.key ? o.apply(console, [i.key, i.value]) : o.apply(console, [i]);
|
|
3247
|
-
}) : o.apply(console, [e]), console.groupEnd()) : console.error("Missing title or data props"));
|
|
3248
|
-
}
|
|
3249
|
-
function Ii(e) {
|
|
3250
|
-
return Object.keys(e);
|
|
3251
|
-
}
|
|
3252
|
-
function fn(e, ...t) {
|
|
3253
|
-
if (!x.plainObject(e))
|
|
3254
|
-
throw new TypeError("Expected an object");
|
|
3255
|
-
const r = {};
|
|
3256
|
-
for (const n in e)
|
|
3257
|
-
({}).hasOwnProperty.call(e, n) && (t.includes(n) || (r[n] = e[n]));
|
|
3258
|
-
return r;
|
|
3259
|
-
}
|
|
3260
|
-
function _i(e, ...t) {
|
|
3261
|
-
if (!x.plainObject(e))
|
|
3262
|
-
throw new TypeError("Expected an object");
|
|
3263
|
-
if (!t.length)
|
|
3264
|
-
return e;
|
|
3265
|
-
const r = {};
|
|
3266
|
-
for (const n in e)
|
|
3267
|
-
({}).hasOwnProperty.call(e, n) && t.includes(n) && (r[n] = e[n]);
|
|
3268
|
-
return r;
|
|
3269
|
-
}
|
|
3270
|
-
function It(e, t, r) {
|
|
3271
|
-
const n = (i) => i.replace("{step}", String(t)).replace("{steps}", String(r));
|
|
3272
|
-
if (tt(e) === "string")
|
|
3273
|
-
return n(e);
|
|
3274
|
-
if (!_r(e))
|
|
3275
|
-
return e;
|
|
3276
|
-
const { children: o } = e.props;
|
|
3277
|
-
if (tt(o) === "string" && o.includes("{step}"))
|
|
3278
|
-
return Bt(e, {
|
|
3279
|
-
children: n(o)
|
|
3280
|
-
});
|
|
3281
|
-
if (Array.isArray(o))
|
|
3282
|
-
return Bt(e, {
|
|
3283
|
-
children: o.map((i) => typeof i == "string" ? n(i) : It(i, t, r))
|
|
3284
|
-
});
|
|
3285
|
-
if (tt(e.type) === "function" && !Object.values(e.props).length) {
|
|
3286
|
-
const i = e.type({});
|
|
3287
|
-
return It(i, t, r);
|
|
3288
|
-
}
|
|
3289
|
-
return e;
|
|
3290
|
-
}
|
|
3291
|
-
function Ai(e) {
|
|
3292
|
-
const { isFirstStep: t, lifecycle: r, previousLifecycle: n, scrollToFirstStep: o, step: i, target: s } = e;
|
|
3293
|
-
return !i.disableScrolling && (!t || o || r === I.TOOLTIP) && i.placement !== "center" && (!i.isFixed || !xe(s)) && // fixed steps don't need to scroll
|
|
3294
|
-
n !== r && [I.BEACON, I.TOOLTIP].includes(r);
|
|
3295
|
-
}
|
|
3296
|
-
var ki = {
|
|
3297
|
-
options: {
|
|
3298
|
-
preventOverflow: {
|
|
3299
|
-
boundariesElement: "scrollParent"
|
|
3300
|
-
}
|
|
3301
|
-
},
|
|
3302
|
-
wrapperOptions: {
|
|
3303
|
-
offset: -18,
|
|
3304
|
-
position: !0
|
|
3305
|
-
}
|
|
3306
|
-
}, pn = {
|
|
3307
|
-
back: "Back",
|
|
3308
|
-
close: "Close",
|
|
3309
|
-
last: "Last",
|
|
3310
|
-
next: "Next",
|
|
3311
|
-
nextLabelWithProgress: "Next (Step {step} of {steps})",
|
|
3312
|
-
open: "Open the dialog",
|
|
3313
|
-
skip: "Skip"
|
|
3314
|
-
}, ji = {
|
|
3315
|
-
event: "click",
|
|
3316
|
-
placement: "bottom",
|
|
3317
|
-
offset: 10,
|
|
3318
|
-
disableBeacon: !1,
|
|
3319
|
-
disableCloseOnEsc: !1,
|
|
3320
|
-
disableOverlay: !1,
|
|
3321
|
-
disableOverlayClose: !1,
|
|
3322
|
-
disableScrollParentFix: !1,
|
|
3323
|
-
disableScrolling: !1,
|
|
3324
|
-
hideBackButton: !1,
|
|
3325
|
-
hideCloseButton: !1,
|
|
3326
|
-
hideFooter: !1,
|
|
3327
|
-
isFixed: !1,
|
|
3328
|
-
locale: pn,
|
|
3329
|
-
showProgress: !1,
|
|
3330
|
-
showSkipButton: !1,
|
|
3331
|
-
spotlightClicks: !1,
|
|
3332
|
-
spotlightPadding: 10
|
|
3333
|
-
}, Li = {
|
|
3334
|
-
continuous: !1,
|
|
3335
|
-
debug: !1,
|
|
3336
|
-
disableCloseOnEsc: !1,
|
|
3337
|
-
disableOverlay: !1,
|
|
3338
|
-
disableOverlayClose: !1,
|
|
3339
|
-
disableScrolling: !1,
|
|
3340
|
-
disableScrollParentFix: !1,
|
|
3341
|
-
getHelpers: void 0,
|
|
3342
|
-
hideBackButton: !1,
|
|
3343
|
-
run: !0,
|
|
3344
|
-
scrollOffset: 20,
|
|
3345
|
-
scrollDuration: 300,
|
|
3346
|
-
scrollToFirstStep: !1,
|
|
3347
|
-
showSkipButton: !1,
|
|
3348
|
-
showProgress: !1,
|
|
3349
|
-
spotlightClicks: !1,
|
|
3350
|
-
spotlightPadding: 10,
|
|
3351
|
-
steps: []
|
|
3352
|
-
}, Mi = {
|
|
3353
|
-
arrowColor: "#fff",
|
|
3354
|
-
backgroundColor: "#fff",
|
|
3355
|
-
beaconSize: 36,
|
|
3356
|
-
overlayColor: "rgba(0, 0, 0, 0.5)",
|
|
3357
|
-
primaryColor: "#f04",
|
|
3358
|
-
spotlightShadow: "0 0 15px rgba(0, 0, 0, 0.5)",
|
|
3359
|
-
textColor: "#333",
|
|
3360
|
-
width: 380,
|
|
3361
|
-
zIndex: 100
|
|
3362
|
-
}, je = {
|
|
3363
|
-
backgroundColor: "transparent",
|
|
3364
|
-
border: 0,
|
|
3365
|
-
borderRadius: 0,
|
|
3366
|
-
color: "#555",
|
|
3367
|
-
cursor: "pointer",
|
|
3368
|
-
fontSize: 16,
|
|
3369
|
-
lineHeight: 1,
|
|
3370
|
-
padding: 8,
|
|
3371
|
-
WebkitAppearance: "none"
|
|
3372
|
-
}, Rr = {
|
|
3373
|
-
borderRadius: 4,
|
|
3374
|
-
position: "absolute"
|
|
3375
|
-
};
|
|
3376
|
-
function Fi(e, t) {
|
|
3377
|
-
var r, n, o, i, s;
|
|
3378
|
-
const { floaterProps: a, styles: l } = e, u = ne((r = t.floaterProps) != null ? r : {}, a ?? {}), f = ne(l ?? {}, (n = t.styles) != null ? n : {}), c = ne(Mi, f.options || {}), p = t.placement === "center" || t.disableBeacon;
|
|
3379
|
-
let { width: d } = c;
|
|
3380
|
-
window.innerWidth > 480 && (d = 380), "width" in c && (d = typeof c.width == "number" && window.innerWidth < c.width ? window.innerWidth - 30 : c.width);
|
|
3381
|
-
const h = {
|
|
3382
|
-
bottom: 0,
|
|
3383
|
-
left: 0,
|
|
3384
|
-
overflow: "hidden",
|
|
3385
|
-
position: "absolute",
|
|
3386
|
-
right: 0,
|
|
3387
|
-
top: 0,
|
|
3388
|
-
zIndex: c.zIndex
|
|
3389
|
-
}, m = {
|
|
3390
|
-
beacon: {
|
|
3391
|
-
...je,
|
|
3392
|
-
display: p ? "none" : "inline-block",
|
|
3393
|
-
height: c.beaconSize,
|
|
3394
|
-
position: "relative",
|
|
3395
|
-
width: c.beaconSize,
|
|
3396
|
-
zIndex: c.zIndex
|
|
3397
|
-
},
|
|
3398
|
-
beaconInner: {
|
|
3399
|
-
animation: "joyride-beacon-inner 1.2s infinite ease-in-out",
|
|
3400
|
-
backgroundColor: c.primaryColor,
|
|
3401
|
-
borderRadius: "50%",
|
|
3402
|
-
display: "block",
|
|
3403
|
-
height: "50%",
|
|
3404
|
-
left: "50%",
|
|
3405
|
-
opacity: 0.7,
|
|
3406
|
-
position: "absolute",
|
|
3407
|
-
top: "50%",
|
|
3408
|
-
transform: "translate(-50%, -50%)",
|
|
3409
|
-
width: "50%"
|
|
3410
|
-
},
|
|
3411
|
-
beaconOuter: {
|
|
3412
|
-
animation: "joyride-beacon-outer 1.2s infinite ease-in-out",
|
|
3413
|
-
backgroundColor: `rgba(${Ni(c.primaryColor).join(",")}, 0.2)`,
|
|
3414
|
-
border: `2px solid ${c.primaryColor}`,
|
|
3415
|
-
borderRadius: "50%",
|
|
3416
|
-
boxSizing: "border-box",
|
|
3417
|
-
display: "block",
|
|
3418
|
-
height: "100%",
|
|
3419
|
-
left: 0,
|
|
3420
|
-
opacity: 0.9,
|
|
3421
|
-
position: "absolute",
|
|
3422
|
-
top: 0,
|
|
3423
|
-
transformOrigin: "center",
|
|
3424
|
-
width: "100%"
|
|
3425
|
-
},
|
|
3426
|
-
tooltip: {
|
|
3427
|
-
backgroundColor: c.backgroundColor,
|
|
3428
|
-
borderRadius: 5,
|
|
3429
|
-
boxSizing: "border-box",
|
|
3430
|
-
color: c.textColor,
|
|
3431
|
-
fontSize: 16,
|
|
3432
|
-
maxWidth: "100%",
|
|
3433
|
-
padding: 15,
|
|
3434
|
-
position: "relative",
|
|
3435
|
-
width: d
|
|
3436
|
-
},
|
|
3437
|
-
tooltipContainer: {
|
|
3438
|
-
lineHeight: 1.4,
|
|
3439
|
-
textAlign: "center"
|
|
3440
|
-
},
|
|
3441
|
-
tooltipTitle: {
|
|
3442
|
-
fontSize: 18,
|
|
3443
|
-
margin: 0
|
|
3444
|
-
},
|
|
3445
|
-
tooltipContent: {
|
|
3446
|
-
padding: "20px 10px"
|
|
3447
|
-
},
|
|
3448
|
-
tooltipFooter: {
|
|
3449
|
-
alignItems: "center",
|
|
3450
|
-
display: "flex",
|
|
3451
|
-
justifyContent: "flex-end",
|
|
3452
|
-
marginTop: 15
|
|
3453
|
-
},
|
|
3454
|
-
tooltipFooterSpacer: {
|
|
3455
|
-
flex: 1
|
|
3456
|
-
},
|
|
3457
|
-
buttonNext: {
|
|
3458
|
-
...je,
|
|
3459
|
-
backgroundColor: c.primaryColor,
|
|
3460
|
-
borderRadius: 4,
|
|
3461
|
-
color: "#fff"
|
|
3462
|
-
},
|
|
3463
|
-
buttonBack: {
|
|
3464
|
-
...je,
|
|
3465
|
-
color: c.primaryColor,
|
|
3466
|
-
marginLeft: "auto",
|
|
3467
|
-
marginRight: 5
|
|
3468
|
-
},
|
|
3469
|
-
buttonClose: {
|
|
3470
|
-
...je,
|
|
3471
|
-
color: c.textColor,
|
|
3472
|
-
height: 14,
|
|
3473
|
-
padding: 15,
|
|
3474
|
-
position: "absolute",
|
|
3475
|
-
right: 0,
|
|
3476
|
-
top: 0,
|
|
3477
|
-
width: 14
|
|
3478
|
-
},
|
|
3479
|
-
buttonSkip: {
|
|
3480
|
-
...je,
|
|
3481
|
-
color: c.textColor,
|
|
3482
|
-
fontSize: 14
|
|
3483
|
-
},
|
|
3484
|
-
overlay: {
|
|
3485
|
-
...h,
|
|
3486
|
-
backgroundColor: c.overlayColor,
|
|
3487
|
-
mixBlendMode: "hard-light"
|
|
3488
|
-
},
|
|
3489
|
-
overlayLegacy: {
|
|
3490
|
-
...h
|
|
3491
|
-
},
|
|
3492
|
-
overlayLegacyCenter: {
|
|
3493
|
-
...h,
|
|
3494
|
-
backgroundColor: c.overlayColor
|
|
3495
|
-
},
|
|
3496
|
-
spotlight: {
|
|
3497
|
-
...Rr,
|
|
3498
|
-
backgroundColor: "gray"
|
|
3499
|
-
},
|
|
3500
|
-
spotlightLegacy: {
|
|
3501
|
-
...Rr,
|
|
3502
|
-
boxShadow: `0 0 0 9999px ${c.overlayColor}, ${c.spotlightShadow}`
|
|
3503
|
-
},
|
|
3504
|
-
floaterStyles: {
|
|
3505
|
-
arrow: {
|
|
3506
|
-
color: (s = (i = (o = u == null ? void 0 : u.styles) == null ? void 0 : o.arrow) == null ? void 0 : i.color) != null ? s : c.arrowColor
|
|
3507
|
-
},
|
|
3508
|
-
options: {
|
|
3509
|
-
zIndex: c.zIndex + 100
|
|
3510
|
-
}
|
|
3511
|
-
},
|
|
3512
|
-
options: c
|
|
3513
|
-
};
|
|
3514
|
-
return ne(m, f);
|
|
3515
|
-
}
|
|
3516
|
-
function Di(e) {
|
|
3517
|
-
return _i(
|
|
3518
|
-
e,
|
|
3519
|
-
"beaconComponent",
|
|
3520
|
-
"disableCloseOnEsc",
|
|
3521
|
-
"disableOverlay",
|
|
3522
|
-
"disableOverlayClose",
|
|
3523
|
-
"disableScrolling",
|
|
3524
|
-
"disableScrollParentFix",
|
|
3525
|
-
"floaterProps",
|
|
3526
|
-
"hideBackButton",
|
|
3527
|
-
"hideCloseButton",
|
|
3528
|
-
"locale",
|
|
3529
|
-
"showProgress",
|
|
3530
|
-
"showSkipButton",
|
|
3531
|
-
"spotlightClicks",
|
|
3532
|
-
"spotlightPadding",
|
|
3533
|
-
"styles",
|
|
3534
|
-
"tooltipComponent"
|
|
3535
|
-
);
|
|
3536
|
-
}
|
|
3537
|
-
function we(e, t) {
|
|
3538
|
-
var r, n, o, i, s, a;
|
|
3539
|
-
const l = t ?? {}, u = ne.all([ji, Di(e), l], {
|
|
3540
|
-
isMergeableObject: x.plainObject
|
|
3541
|
-
}), f = Fi(e, u), c = He(
|
|
3542
|
-
he(u.target),
|
|
3543
|
-
u.disableScrollParentFix
|
|
3544
|
-
), p = ne.all([
|
|
3545
|
-
ki,
|
|
3546
|
-
(r = e.floaterProps) != null ? r : {},
|
|
3547
|
-
(n = u.floaterProps) != null ? n : {}
|
|
3548
|
-
]);
|
|
3549
|
-
return p.offset = u.offset, p.styles = ne((o = p.styles) != null ? o : {}, f.floaterStyles), p.offset += (s = (i = e.spotlightPadding) != null ? i : u.spotlightPadding) != null ? s : 0, u.placementBeacon && p.wrapperOptions && (p.wrapperOptions.placement = u.placementBeacon), c && p.options.preventOverflow && (p.options.preventOverflow.boundariesElement = "window"), {
|
|
3550
|
-
...u,
|
|
3551
|
-
locale: ne.all([pn, (a = e.locale) != null ? a : {}, u.locale || {}]),
|
|
3552
|
-
floaterProps: p,
|
|
3553
|
-
styles: fn(f, "floaterStyles")
|
|
3554
|
-
};
|
|
3555
|
-
}
|
|
3556
|
-
function dn(e, t = !1) {
|
|
3557
|
-
return x.plainObject(e) ? e.target ? !0 : (ve({
|
|
3558
|
-
title: "validateStep",
|
|
3559
|
-
data: "target is missing from the step",
|
|
3560
|
-
warn: !0,
|
|
3561
|
-
debug: t
|
|
3562
|
-
}), !1) : (ve({
|
|
3563
|
-
title: "validateStep",
|
|
3564
|
-
data: "step must be an object",
|
|
3565
|
-
warn: !0,
|
|
3566
|
-
debug: t
|
|
3567
|
-
}), !1);
|
|
3568
|
-
}
|
|
3569
|
-
function Nr(e, t = !1) {
|
|
3570
|
-
return x.array(e) ? e.every((r) => dn(r, t)) : (ve({
|
|
3571
|
-
title: "validateSteps",
|
|
3572
|
-
data: "steps must be an array",
|
|
3573
|
-
warn: !0,
|
|
3574
|
-
debug: t
|
|
3575
|
-
}), !1);
|
|
3576
|
-
}
|
|
3577
|
-
var hn = {
|
|
3578
|
-
action: "init",
|
|
3579
|
-
controlled: !1,
|
|
3580
|
-
index: 0,
|
|
3581
|
-
lifecycle: I.INIT,
|
|
3582
|
-
origin: null,
|
|
3583
|
-
size: 0,
|
|
3584
|
-
status: k.IDLE
|
|
3585
|
-
}, Ir = Ii(fn(hn, "controlled", "size")), $i = class {
|
|
3586
|
-
constructor(e) {
|
|
3587
|
-
C(this, "beaconPopper"), C(this, "tooltipPopper"), C(this, "data", /* @__PURE__ */ new Map()), C(this, "listener"), C(this, "store", /* @__PURE__ */ new Map()), C(this, "addListener", (o) => {
|
|
3588
|
-
this.listener = o;
|
|
3589
|
-
}), C(this, "setSteps", (o) => {
|
|
3590
|
-
const { size: i, status: s } = this.getState(), a = {
|
|
3591
|
-
size: o.length,
|
|
3592
|
-
status: s
|
|
3593
|
-
};
|
|
3594
|
-
this.data.set("steps", o), s === k.WAITING && !i && o.length && (a.status = k.RUNNING), this.setState(a);
|
|
3595
|
-
}), C(this, "getPopper", (o) => o === "beacon" ? this.beaconPopper : this.tooltipPopper), C(this, "setPopper", (o, i) => {
|
|
3596
|
-
o === "beacon" ? this.beaconPopper = i : this.tooltipPopper = i;
|
|
3597
|
-
}), C(this, "cleanupPoppers", () => {
|
|
3598
|
-
this.beaconPopper = null, this.tooltipPopper = null;
|
|
3599
|
-
}), C(this, "close", (o = null) => {
|
|
3600
|
-
const { index: i, status: s } = this.getState();
|
|
3601
|
-
s === k.RUNNING && this.setState({
|
|
3602
|
-
...this.getNextState({ action: q.CLOSE, index: i + 1, origin: o })
|
|
3603
|
-
});
|
|
3604
|
-
}), C(this, "go", (o) => {
|
|
3605
|
-
const { controlled: i, status: s } = this.getState();
|
|
3606
|
-
if (i || s !== k.RUNNING)
|
|
3607
|
-
return;
|
|
3608
|
-
const a = this.getSteps()[o];
|
|
3609
|
-
this.setState({
|
|
3610
|
-
...this.getNextState({ action: q.GO, index: o }),
|
|
3611
|
-
status: a ? s : k.FINISHED
|
|
3612
|
-
});
|
|
3613
|
-
}), C(this, "info", () => this.getState()), C(this, "next", () => {
|
|
3614
|
-
const { index: o, status: i } = this.getState();
|
|
3615
|
-
i === k.RUNNING && this.setState(this.getNextState({ action: q.NEXT, index: o + 1 }));
|
|
3616
|
-
}), C(this, "open", () => {
|
|
3617
|
-
const { status: o } = this.getState();
|
|
3618
|
-
o === k.RUNNING && this.setState({
|
|
3619
|
-
...this.getNextState({ action: q.UPDATE, lifecycle: I.TOOLTIP })
|
|
3620
|
-
});
|
|
3621
|
-
}), C(this, "prev", () => {
|
|
3622
|
-
const { index: o, status: i } = this.getState();
|
|
3623
|
-
i === k.RUNNING && this.setState({
|
|
3624
|
-
...this.getNextState({ action: q.PREV, index: o - 1 })
|
|
3625
|
-
});
|
|
3626
|
-
}), C(this, "reset", (o = !1) => {
|
|
3627
|
-
const { controlled: i } = this.getState();
|
|
3628
|
-
i || this.setState({
|
|
3629
|
-
...this.getNextState({ action: q.RESET, index: 0 }),
|
|
3630
|
-
status: o ? k.RUNNING : k.READY
|
|
3631
|
-
});
|
|
3632
|
-
}), C(this, "skip", () => {
|
|
3633
|
-
const { status: o } = this.getState();
|
|
3634
|
-
o === k.RUNNING && this.setState({
|
|
3635
|
-
action: q.SKIP,
|
|
3636
|
-
lifecycle: I.INIT,
|
|
3637
|
-
status: k.SKIPPED
|
|
3638
|
-
});
|
|
3639
|
-
}), C(this, "start", (o) => {
|
|
3640
|
-
const { index: i, size: s } = this.getState();
|
|
3641
|
-
this.setState({
|
|
3642
|
-
...this.getNextState(
|
|
3643
|
-
{
|
|
3644
|
-
action: q.START,
|
|
3645
|
-
index: x.number(o) ? o : i
|
|
3646
|
-
},
|
|
3647
|
-
!0
|
|
3648
|
-
),
|
|
3649
|
-
status: s ? k.RUNNING : k.WAITING
|
|
3650
|
-
});
|
|
3651
|
-
}), C(this, "stop", (o = !1) => {
|
|
3652
|
-
const { index: i, status: s } = this.getState();
|
|
3653
|
-
[k.FINISHED, k.SKIPPED].includes(s) || this.setState({
|
|
3654
|
-
...this.getNextState({ action: q.STOP, index: i + (o ? 1 : 0) }),
|
|
3655
|
-
status: k.PAUSED
|
|
3656
|
-
});
|
|
3657
|
-
}), C(this, "update", (o) => {
|
|
3658
|
-
var i, s;
|
|
3659
|
-
if (!Ri(o, Ir))
|
|
3660
|
-
throw new Error(`State is not valid. Valid keys: ${Ir.join(", ")}`);
|
|
3661
|
-
this.setState({
|
|
3662
|
-
...this.getNextState(
|
|
3663
|
-
{
|
|
3664
|
-
...this.getState(),
|
|
3665
|
-
...o,
|
|
3666
|
-
action: (i = o.action) != null ? i : q.UPDATE,
|
|
3667
|
-
origin: (s = o.origin) != null ? s : null
|
|
3668
|
-
},
|
|
3669
|
-
!0
|
|
3670
|
-
)
|
|
3671
|
-
});
|
|
3672
|
-
});
|
|
3673
|
-
const { continuous: t = !1, stepIndex: r, steps: n = [] } = e ?? {};
|
|
3674
|
-
this.setState(
|
|
3675
|
-
{
|
|
3676
|
-
action: q.INIT,
|
|
3677
|
-
controlled: x.number(r),
|
|
3678
|
-
continuous: t,
|
|
3679
|
-
index: x.number(r) ? r : 0,
|
|
3680
|
-
lifecycle: I.INIT,
|
|
3681
|
-
origin: null,
|
|
3682
|
-
status: n.length ? k.READY : k.IDLE
|
|
3683
|
-
},
|
|
3684
|
-
!0
|
|
3685
|
-
), this.beaconPopper = null, this.tooltipPopper = null, this.listener = null, this.setSteps(n);
|
|
3686
|
-
}
|
|
3687
|
-
getState() {
|
|
3688
|
-
return this.store.size ? {
|
|
3689
|
-
action: this.store.get("action") || "",
|
|
3690
|
-
controlled: this.store.get("controlled") || !1,
|
|
3691
|
-
index: parseInt(this.store.get("index"), 10),
|
|
3692
|
-
lifecycle: this.store.get("lifecycle") || "",
|
|
3693
|
-
origin: this.store.get("origin") || null,
|
|
3694
|
-
size: this.store.get("size") || 0,
|
|
3695
|
-
status: this.store.get("status") || ""
|
|
3696
|
-
} : { ...hn };
|
|
3697
|
-
}
|
|
3698
|
-
getNextState(e, t = !1) {
|
|
3699
|
-
var r, n, o, i, s;
|
|
3700
|
-
const { action: a, controlled: l, index: u, size: f, status: c } = this.getState(), p = x.number(e.index) ? e.index : u, d = l && !t ? u : Math.min(Math.max(p, 0), f);
|
|
3701
|
-
return {
|
|
3702
|
-
action: (r = e.action) != null ? r : a,
|
|
3703
|
-
controlled: l,
|
|
3704
|
-
index: d,
|
|
3705
|
-
lifecycle: (n = e.lifecycle) != null ? n : I.INIT,
|
|
3706
|
-
origin: (o = e.origin) != null ? o : null,
|
|
3707
|
-
size: (i = e.size) != null ? i : f,
|
|
3708
|
-
status: d === f ? k.FINISHED : (s = e.status) != null ? s : c
|
|
3709
|
-
};
|
|
3710
|
-
}
|
|
3711
|
-
getSteps() {
|
|
3712
|
-
const e = this.data.get("steps");
|
|
3713
|
-
return Array.isArray(e) ? e : [];
|
|
3714
|
-
}
|
|
3715
|
-
hasUpdatedState(e) {
|
|
3716
|
-
const t = JSON.stringify(e), r = JSON.stringify(this.getState());
|
|
3717
|
-
return t !== r;
|
|
3718
|
-
}
|
|
3719
|
-
setState(e, t = !1) {
|
|
3720
|
-
const r = this.getState(), {
|
|
3721
|
-
action: n,
|
|
3722
|
-
index: o,
|
|
3723
|
-
lifecycle: i,
|
|
3724
|
-
origin: s = null,
|
|
3725
|
-
size: a,
|
|
3726
|
-
status: l
|
|
3727
|
-
} = {
|
|
3728
|
-
...r,
|
|
3729
|
-
...e
|
|
3730
|
-
};
|
|
3731
|
-
this.store.set("action", n), this.store.set("index", o), this.store.set("lifecycle", i), this.store.set("origin", s), this.store.set("size", a), this.store.set("status", l), t && (this.store.set("controlled", e.controlled), this.store.set("continuous", e.continuous)), this.listener && this.hasUpdatedState(r) && this.listener(this.getState());
|
|
3732
|
-
}
|
|
3733
|
-
getHelpers() {
|
|
3734
|
-
return {
|
|
3735
|
-
close: this.close,
|
|
3736
|
-
go: this.go,
|
|
3737
|
-
info: this.info,
|
|
3738
|
-
next: this.next,
|
|
3739
|
-
open: this.open,
|
|
3740
|
-
prev: this.prev,
|
|
3741
|
-
reset: this.reset,
|
|
3742
|
-
skip: this.skip
|
|
3743
|
-
};
|
|
3744
|
-
}
|
|
3745
|
-
};
|
|
3746
|
-
function Wi(e) {
|
|
3747
|
-
return new $i(e);
|
|
3748
|
-
}
|
|
3749
|
-
function Bi({ styles: e }) {
|
|
3750
|
-
return /* @__PURE__ */ W.createElement(
|
|
3751
|
-
"div",
|
|
3752
|
-
{
|
|
3753
|
-
key: "JoyrideSpotlight",
|
|
3754
|
-
className: "react-joyride__spotlight",
|
|
3755
|
-
"data-test-id": "spotlight",
|
|
3756
|
-
style: e
|
|
3757
|
-
}
|
|
3758
|
-
);
|
|
3759
|
-
}
|
|
3760
|
-
var Ui = Bi, zi = class extends W.Component {
|
|
3761
|
-
constructor() {
|
|
3762
|
-
super(...arguments), C(this, "isActive", !1), C(this, "resizeTimeout"), C(this, "scrollTimeout"), C(this, "scrollParent"), C(this, "state", {
|
|
3763
|
-
isScrolling: !1,
|
|
3764
|
-
mouseOverSpotlight: !1,
|
|
3765
|
-
showSpotlight: !0
|
|
3766
|
-
}), C(this, "hideSpotlight", () => {
|
|
3767
|
-
const { continuous: e, disableOverlay: t, lifecycle: r } = this.props, n = [
|
|
3768
|
-
I.INIT,
|
|
3769
|
-
I.BEACON,
|
|
3770
|
-
I.COMPLETE,
|
|
3771
|
-
I.ERROR
|
|
3772
|
-
];
|
|
3773
|
-
return t || (e ? n.includes(r) : r !== I.TOOLTIP);
|
|
3774
|
-
}), C(this, "handleMouseMove", (e) => {
|
|
3775
|
-
const { mouseOverSpotlight: t } = this.state, { height: r, left: n, position: o, top: i, width: s } = this.spotlightStyles, a = o === "fixed" ? e.clientY : e.pageY, l = o === "fixed" ? e.clientX : e.pageX, u = a >= i && a <= i + r, c = l >= n && l <= n + s && u;
|
|
3776
|
-
c !== t && this.updateState({ mouseOverSpotlight: c });
|
|
3777
|
-
}), C(this, "handleScroll", () => {
|
|
3778
|
-
const { target: e } = this.props, t = he(e);
|
|
3779
|
-
if (this.scrollParent !== document) {
|
|
3780
|
-
const { isScrolling: r } = this.state;
|
|
3781
|
-
r || this.updateState({ isScrolling: !0, showSpotlight: !1 }), clearTimeout(this.scrollTimeout), this.scrollTimeout = window.setTimeout(() => {
|
|
3782
|
-
this.updateState({ isScrolling: !1, showSpotlight: !0 });
|
|
3783
|
-
}, 50);
|
|
3784
|
-
} else xe(t, "sticky") && this.updateState({});
|
|
3785
|
-
}), C(this, "handleResize", () => {
|
|
3786
|
-
clearTimeout(this.resizeTimeout), this.resizeTimeout = window.setTimeout(() => {
|
|
3787
|
-
this.isActive && this.forceUpdate();
|
|
3788
|
-
}, 100);
|
|
3789
|
-
});
|
|
3790
|
-
}
|
|
3791
|
-
componentDidMount() {
|
|
3792
|
-
const { debug: e, disableScrolling: t, disableScrollParentFix: r = !1, target: n } = this.props, o = he(n);
|
|
3793
|
-
this.scrollParent = Me(o ?? document.body, r, !0), this.isActive = !0, process.env.NODE_ENV !== "production" && !t && He(o, !0) && ve({
|
|
3794
|
-
title: "step has a custom scroll parent and can cause trouble with scrolling",
|
|
3795
|
-
data: [{ key: "parent", value: this.scrollParent }],
|
|
3796
|
-
debug: e
|
|
3797
|
-
}), window.addEventListener("resize", this.handleResize);
|
|
3798
|
-
}
|
|
3799
|
-
componentDidUpdate(e) {
|
|
3800
|
-
var t;
|
|
3801
|
-
const { disableScrollParentFix: r, lifecycle: n, spotlightClicks: o, target: i } = this.props, { changed: s } = rt(e, this.props);
|
|
3802
|
-
if (s("target") || s("disableScrollParentFix")) {
|
|
3803
|
-
const a = he(i);
|
|
3804
|
-
this.scrollParent = Me(a ?? document.body, r, !0);
|
|
3805
|
-
}
|
|
3806
|
-
s("lifecycle", I.TOOLTIP) && ((t = this.scrollParent) == null || t.addEventListener("scroll", this.handleScroll, { passive: !0 }), setTimeout(() => {
|
|
3807
|
-
const { isScrolling: a } = this.state;
|
|
3808
|
-
a || this.updateState({ showSpotlight: !0 });
|
|
3809
|
-
}, 100)), (s("spotlightClicks") || s("disableOverlay") || s("lifecycle")) && (o && n === I.TOOLTIP ? window.addEventListener("mousemove", this.handleMouseMove, !1) : n !== I.TOOLTIP && window.removeEventListener("mousemove", this.handleMouseMove));
|
|
3810
|
-
}
|
|
3811
|
-
componentWillUnmount() {
|
|
3812
|
-
var e;
|
|
3813
|
-
this.isActive = !1, window.removeEventListener("mousemove", this.handleMouseMove), window.removeEventListener("resize", this.handleResize), clearTimeout(this.resizeTimeout), clearTimeout(this.scrollTimeout), (e = this.scrollParent) == null || e.removeEventListener("scroll", this.handleScroll);
|
|
3814
|
-
}
|
|
3815
|
-
get overlayStyles() {
|
|
3816
|
-
const { mouseOverSpotlight: e } = this.state, { disableOverlayClose: t, placement: r, styles: n } = this.props;
|
|
3817
|
-
let o = n.overlay;
|
|
3818
|
-
return Cr() && (o = r === "center" ? n.overlayLegacyCenter : n.overlayLegacy), {
|
|
3819
|
-
cursor: t ? "default" : "pointer",
|
|
3820
|
-
height: Oi(),
|
|
3821
|
-
pointerEvents: e ? "none" : "auto",
|
|
3822
|
-
...o
|
|
3823
|
-
};
|
|
3824
|
-
}
|
|
3825
|
-
get spotlightStyles() {
|
|
3826
|
-
var e, t, r;
|
|
3827
|
-
const { showSpotlight: n } = this.state, {
|
|
3828
|
-
disableScrollParentFix: o = !1,
|
|
3829
|
-
spotlightClicks: i,
|
|
3830
|
-
spotlightPadding: s = 0,
|
|
3831
|
-
styles: a,
|
|
3832
|
-
target: l
|
|
3833
|
-
} = this.props, u = he(l), f = cn(u), c = xe(u), p = Pi(u, s, o);
|
|
3834
|
-
return {
|
|
3835
|
-
...Cr() ? a.spotlightLegacy : a.spotlight,
|
|
3836
|
-
height: Math.round(((e = f == null ? void 0 : f.height) != null ? e : 0) + s * 2),
|
|
3837
|
-
left: Math.round(((t = f == null ? void 0 : f.left) != null ? t : 0) - s),
|
|
3838
|
-
opacity: n ? 1 : 0,
|
|
3839
|
-
pointerEvents: i ? "none" : "auto",
|
|
3840
|
-
position: c ? "fixed" : "absolute",
|
|
3841
|
-
top: p,
|
|
3842
|
-
transition: "opacity 0.2s",
|
|
3843
|
-
width: Math.round(((r = f == null ? void 0 : f.width) != null ? r : 0) + s * 2)
|
|
3844
|
-
};
|
|
3845
|
-
}
|
|
3846
|
-
updateState(e) {
|
|
3847
|
-
this.isActive && this.setState((t) => ({ ...t, ...e }));
|
|
3848
|
-
}
|
|
3849
|
-
render() {
|
|
3850
|
-
const { showSpotlight: e } = this.state, { onClickOverlay: t, placement: r } = this.props, { hideSpotlight: n, overlayStyles: o, spotlightStyles: i } = this;
|
|
3851
|
-
if (n())
|
|
3852
|
-
return null;
|
|
3853
|
-
let s = r !== "center" && e && /* @__PURE__ */ W.createElement(Ui, { styles: i });
|
|
3854
|
-
if (un() === "safari") {
|
|
3855
|
-
const { mixBlendMode: a, zIndex: l, ...u } = o;
|
|
3856
|
-
s = /* @__PURE__ */ W.createElement("div", { style: { ...u } }, s), delete o.backgroundColor;
|
|
3857
|
-
}
|
|
3858
|
-
return /* @__PURE__ */ W.createElement(
|
|
3859
|
-
"div",
|
|
3860
|
-
{
|
|
3861
|
-
className: "react-joyride__overlay",
|
|
3862
|
-
"data-test-id": "overlay",
|
|
3863
|
-
onClick: t,
|
|
3864
|
-
role: "presentation",
|
|
3865
|
-
style: o
|
|
3866
|
-
},
|
|
3867
|
-
s
|
|
3868
|
-
);
|
|
3869
|
-
}
|
|
3870
|
-
}, qi = class extends W.Component {
|
|
3871
|
-
constructor() {
|
|
3872
|
-
super(...arguments), C(this, "node", null);
|
|
3873
|
-
}
|
|
3874
|
-
componentDidMount() {
|
|
3875
|
-
const { id: e } = this.props;
|
|
3876
|
-
ye() && (this.node = document.createElement("div"), this.node.id = e, document.body.appendChild(this.node), ke || this.renderReact15());
|
|
3877
|
-
}
|
|
3878
|
-
componentDidUpdate() {
|
|
3879
|
-
ye() && (ke || this.renderReact15());
|
|
3880
|
-
}
|
|
3881
|
-
componentWillUnmount() {
|
|
3882
|
-
!ye() || !this.node || (ke || pt.unmountComponentAtNode(this.node), this.node.parentNode === document.body && (document.body.removeChild(this.node), this.node = null));
|
|
3883
|
-
}
|
|
3884
|
-
renderReact15() {
|
|
3885
|
-
if (!ye())
|
|
3886
|
-
return;
|
|
3887
|
-
const { children: e } = this.props;
|
|
3888
|
-
this.node && pt.unstable_renderSubtreeIntoContainer(this, e, this.node);
|
|
3889
|
-
}
|
|
3890
|
-
renderReact16() {
|
|
3891
|
-
if (!ye() || !ke)
|
|
3892
|
-
return null;
|
|
3893
|
-
const { children: e } = this.props;
|
|
3894
|
-
return this.node ? pt.createPortal(e, this.node) : null;
|
|
3895
|
-
}
|
|
3896
|
-
render() {
|
|
3897
|
-
return ke ? this.renderReact16() : null;
|
|
3898
|
-
}
|
|
3899
|
-
}, Hi = class {
|
|
3900
|
-
constructor(e, t) {
|
|
3901
|
-
if (C(this, "element"), C(this, "options"), C(this, "canBeTabbed", (r) => {
|
|
3902
|
-
const { tabIndex: n } = r;
|
|
3903
|
-
return n === null || n < 0 ? !1 : this.canHaveFocus(r);
|
|
3904
|
-
}), C(this, "canHaveFocus", (r) => {
|
|
3905
|
-
const n = /input|select|textarea|button|object/, o = r.nodeName.toLowerCase();
|
|
3906
|
-
return (n.test(o) && !r.getAttribute("disabled") || o === "a" && !!r.getAttribute("href")) && this.isVisible(r);
|
|
3907
|
-
}), C(this, "findValidTabElements", () => [].slice.call(this.element.querySelectorAll("*"), 0).filter(this.canBeTabbed)), C(this, "handleKeyDown", (r) => {
|
|
3908
|
-
const { code: n = "Tab" } = this.options;
|
|
3909
|
-
r.code === n && this.interceptTab(r);
|
|
3910
|
-
}), C(this, "interceptTab", (r) => {
|
|
3911
|
-
r.preventDefault();
|
|
3912
|
-
const n = this.findValidTabElements(), { shiftKey: o } = r;
|
|
3913
|
-
if (!n.length)
|
|
3914
|
-
return;
|
|
3915
|
-
let i = document.activeElement ? n.indexOf(document.activeElement) : 0;
|
|
3916
|
-
i === -1 || !o && i + 1 === n.length ? i = 0 : o && i === 0 ? i = n.length - 1 : i += o ? -1 : 1, n[i].focus();
|
|
3917
|
-
}), C(this, "isHidden", (r) => {
|
|
3918
|
-
const n = r.offsetWidth <= 0 && r.offsetHeight <= 0, o = window.getComputedStyle(r);
|
|
3919
|
-
return n && !r.innerHTML ? !0 : n && o.getPropertyValue("overflow") !== "visible" || o.getPropertyValue("display") === "none";
|
|
3920
|
-
}), C(this, "isVisible", (r) => {
|
|
3921
|
-
let n = r;
|
|
3922
|
-
for (; n; )
|
|
3923
|
-
if (n instanceof HTMLElement) {
|
|
3924
|
-
if (n === document.body)
|
|
3925
|
-
break;
|
|
3926
|
-
if (this.isHidden(n))
|
|
3927
|
-
return !1;
|
|
3928
|
-
n = n.parentNode;
|
|
3929
|
-
}
|
|
3930
|
-
return !0;
|
|
3931
|
-
}), C(this, "removeScope", () => {
|
|
3932
|
-
window.removeEventListener("keydown", this.handleKeyDown);
|
|
3933
|
-
}), C(this, "checkFocus", (r) => {
|
|
3934
|
-
document.activeElement !== r && (r.focus(), window.requestAnimationFrame(() => this.checkFocus(r)));
|
|
3935
|
-
}), C(this, "setFocus", () => {
|
|
3936
|
-
const { selector: r } = this.options;
|
|
3937
|
-
if (!r)
|
|
3938
|
-
return;
|
|
3939
|
-
const n = this.element.querySelector(r);
|
|
3940
|
-
n && window.requestAnimationFrame(() => this.checkFocus(n));
|
|
3941
|
-
}), !(e instanceof HTMLElement))
|
|
3942
|
-
throw new TypeError("Invalid parameter: element must be an HTMLElement");
|
|
3943
|
-
this.element = e, this.options = t, window.addEventListener("keydown", this.handleKeyDown, !1), this.setFocus();
|
|
3944
|
-
}
|
|
3945
|
-
}, Vi = class extends W.Component {
|
|
3946
|
-
constructor(e) {
|
|
3947
|
-
if (super(e), C(this, "beacon", null), C(this, "setBeaconRef", (o) => {
|
|
3948
|
-
this.beacon = o;
|
|
3949
|
-
}), e.beaconComponent)
|
|
3950
|
-
return;
|
|
3951
|
-
const t = document.head || document.getElementsByTagName("head")[0], r = document.createElement("style");
|
|
3952
|
-
r.id = "joyride-beacon-animation", e.nonce && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode(`
|
|
3953
|
-
@keyframes joyride-beacon-inner {
|
|
3954
|
-
20% {
|
|
3955
|
-
opacity: 0.9;
|
|
3956
|
-
}
|
|
3957
|
-
|
|
3958
|
-
90% {
|
|
3959
|
-
opacity: 0.7;
|
|
3960
|
-
}
|
|
3961
|
-
}
|
|
3962
|
-
|
|
3963
|
-
@keyframes joyride-beacon-outer {
|
|
3964
|
-
0% {
|
|
3965
|
-
transform: scale(1);
|
|
3966
|
-
}
|
|
3967
|
-
|
|
3968
|
-
45% {
|
|
3969
|
-
opacity: 0.7;
|
|
3970
|
-
transform: scale(0.75);
|
|
3971
|
-
}
|
|
3972
|
-
|
|
3973
|
-
100% {
|
|
3974
|
-
opacity: 0.9;
|
|
3975
|
-
transform: scale(1);
|
|
3976
|
-
}
|
|
3977
|
-
}
|
|
3978
|
-
`)), t.appendChild(r);
|
|
3979
|
-
}
|
|
3980
|
-
componentDidMount() {
|
|
3981
|
-
const { shouldFocus: e } = this.props;
|
|
3982
|
-
process.env.NODE_ENV !== "production" && (x.domElement(this.beacon) || console.warn("beacon is not a valid DOM element")), setTimeout(() => {
|
|
3983
|
-
x.domElement(this.beacon) && e && this.beacon.focus();
|
|
3984
|
-
}, 0);
|
|
3985
|
-
}
|
|
3986
|
-
componentWillUnmount() {
|
|
3987
|
-
const e = document.getElementById("joyride-beacon-animation");
|
|
3988
|
-
e != null && e.parentNode && e.parentNode.removeChild(e);
|
|
3989
|
-
}
|
|
3990
|
-
render() {
|
|
3991
|
-
const {
|
|
3992
|
-
beaconComponent: e,
|
|
3993
|
-
continuous: t,
|
|
3994
|
-
index: r,
|
|
3995
|
-
isLastStep: n,
|
|
3996
|
-
locale: o,
|
|
3997
|
-
onClickOrHover: i,
|
|
3998
|
-
size: s,
|
|
3999
|
-
step: a,
|
|
4000
|
-
styles: l
|
|
4001
|
-
} = this.props, u = ue(o.open), f = {
|
|
4002
|
-
"aria-label": u,
|
|
4003
|
-
onClick: i,
|
|
4004
|
-
onMouseEnter: i,
|
|
4005
|
-
ref: this.setBeaconRef,
|
|
4006
|
-
title: u
|
|
4007
|
-
};
|
|
4008
|
-
let c;
|
|
4009
|
-
if (e) {
|
|
4010
|
-
const p = e;
|
|
4011
|
-
c = /* @__PURE__ */ W.createElement(
|
|
4012
|
-
p,
|
|
4013
|
-
{
|
|
4014
|
-
continuous: t,
|
|
4015
|
-
index: r,
|
|
4016
|
-
isLastStep: n,
|
|
4017
|
-
size: s,
|
|
4018
|
-
step: a,
|
|
4019
|
-
...f
|
|
4020
|
-
}
|
|
4021
|
-
);
|
|
4022
|
-
} else
|
|
4023
|
-
c = /* @__PURE__ */ W.createElement(
|
|
4024
|
-
"button",
|
|
4025
|
-
{
|
|
4026
|
-
key: "JoyrideBeacon",
|
|
4027
|
-
className: "react-joyride__beacon",
|
|
4028
|
-
"data-test-id": "button-beacon",
|
|
4029
|
-
style: l.beacon,
|
|
4030
|
-
type: "button",
|
|
4031
|
-
...f
|
|
4032
|
-
},
|
|
4033
|
-
/* @__PURE__ */ W.createElement("span", { style: l.beaconInner }),
|
|
4034
|
-
/* @__PURE__ */ W.createElement("span", { style: l.beaconOuter })
|
|
4035
|
-
);
|
|
4036
|
-
return c;
|
|
4037
|
-
}
|
|
4038
|
-
};
|
|
4039
|
-
function Gi({ styles: e, ...t }) {
|
|
4040
|
-
const { color: r, height: n, width: o, ...i } = e;
|
|
4041
|
-
return /* @__PURE__ */ _.createElement("button", { style: i, type: "button", ...t }, /* @__PURE__ */ _.createElement(
|
|
4042
|
-
"svg",
|
|
4043
|
-
{
|
|
4044
|
-
height: typeof n == "number" ? `${n}px` : n,
|
|
4045
|
-
preserveAspectRatio: "xMidYMid",
|
|
4046
|
-
version: "1.1",
|
|
4047
|
-
viewBox: "0 0 18 18",
|
|
4048
|
-
width: typeof o == "number" ? `${o}px` : o,
|
|
4049
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4050
|
-
},
|
|
4051
|
-
/* @__PURE__ */ _.createElement("g", null, /* @__PURE__ */ _.createElement(
|
|
4052
|
-
"path",
|
|
4053
|
-
{
|
|
4054
|
-
d: "M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",
|
|
4055
|
-
fill: r
|
|
4056
|
-
}
|
|
4057
|
-
))
|
|
4058
|
-
));
|
|
4059
|
-
}
|
|
4060
|
-
var Yi = Gi;
|
|
4061
|
-
function Ki(e) {
|
|
4062
|
-
const { backProps: t, closeProps: r, index: n, isLastStep: o, primaryProps: i, skipProps: s, step: a, tooltipProps: l } = e, { content: u, hideBackButton: f, hideCloseButton: c, hideFooter: p, showSkipButton: d, styles: h, title: m } = a, w = {};
|
|
4063
|
-
return w.primary = /* @__PURE__ */ W.createElement(
|
|
4064
|
-
"button",
|
|
4065
|
-
{
|
|
4066
|
-
"data-test-id": "button-primary",
|
|
4067
|
-
style: h.buttonNext,
|
|
4068
|
-
type: "button",
|
|
4069
|
-
...i
|
|
4070
|
-
}
|
|
4071
|
-
), d && !o && (w.skip = /* @__PURE__ */ W.createElement(
|
|
4072
|
-
"button",
|
|
4073
|
-
{
|
|
4074
|
-
"aria-live": "off",
|
|
4075
|
-
"data-test-id": "button-skip",
|
|
4076
|
-
style: h.buttonSkip,
|
|
4077
|
-
type: "button",
|
|
4078
|
-
...s
|
|
4079
|
-
}
|
|
4080
|
-
)), !f && n > 0 && (w.back = /* @__PURE__ */ W.createElement("button", { "data-test-id": "button-back", style: h.buttonBack, type: "button", ...t })), w.close = !c && /* @__PURE__ */ W.createElement(Yi, { "data-test-id": "button-close", styles: h.buttonClose, ...r }), /* @__PURE__ */ W.createElement(
|
|
4081
|
-
"div",
|
|
4082
|
-
{
|
|
4083
|
-
key: "JoyrideTooltip",
|
|
4084
|
-
"aria-label": ue(m ?? u),
|
|
4085
|
-
className: "react-joyride__tooltip",
|
|
4086
|
-
style: h.tooltip,
|
|
4087
|
-
...l
|
|
4088
|
-
},
|
|
4089
|
-
/* @__PURE__ */ W.createElement("div", { style: h.tooltipContainer }, m && /* @__PURE__ */ W.createElement("h1", { "aria-label": ue(m), style: h.tooltipTitle }, m), /* @__PURE__ */ W.createElement("div", { style: h.tooltipContent }, u)),
|
|
4090
|
-
!p && /* @__PURE__ */ W.createElement("div", { style: h.tooltipFooter }, /* @__PURE__ */ W.createElement("div", { style: h.tooltipFooterSpacer }, w.skip), w.back, w.primary),
|
|
4091
|
-
w.close
|
|
4092
|
-
);
|
|
4093
|
-
}
|
|
4094
|
-
var Ji = Ki, Xi = class extends W.Component {
|
|
4095
|
-
constructor() {
|
|
4096
|
-
super(...arguments), C(this, "handleClickBack", (e) => {
|
|
4097
|
-
e.preventDefault();
|
|
4098
|
-
const { helpers: t } = this.props;
|
|
4099
|
-
t.prev();
|
|
4100
|
-
}), C(this, "handleClickClose", (e) => {
|
|
4101
|
-
e.preventDefault();
|
|
4102
|
-
const { helpers: t } = this.props;
|
|
4103
|
-
t.close("button_close");
|
|
4104
|
-
}), C(this, "handleClickPrimary", (e) => {
|
|
4105
|
-
e.preventDefault();
|
|
4106
|
-
const { continuous: t, helpers: r } = this.props;
|
|
4107
|
-
if (!t) {
|
|
4108
|
-
r.close("button_primary");
|
|
4109
|
-
return;
|
|
4110
|
-
}
|
|
4111
|
-
r.next();
|
|
4112
|
-
}), C(this, "handleClickSkip", (e) => {
|
|
4113
|
-
e.preventDefault();
|
|
4114
|
-
const { helpers: t } = this.props;
|
|
4115
|
-
t.skip();
|
|
4116
|
-
}), C(this, "getElementsProps", () => {
|
|
4117
|
-
const { continuous: e, index: t, isLastStep: r, setTooltipRef: n, size: o, step: i } = this.props, { back: s, close: a, last: l, next: u, nextLabelWithProgress: f, skip: c } = i.locale, p = ue(s), d = ue(a), h = ue(l), m = ue(u), w = ue(c);
|
|
4118
|
-
let g = a, v = d;
|
|
4119
|
-
if (e) {
|
|
4120
|
-
if (g = u, v = m, i.showProgress && !r) {
|
|
4121
|
-
const S = ue(f, {
|
|
4122
|
-
step: t + 1,
|
|
4123
|
-
steps: o
|
|
4124
|
-
});
|
|
4125
|
-
g = It(f, t + 1, o), v = S;
|
|
4126
|
-
}
|
|
4127
|
-
r && (g = l, v = h);
|
|
4128
|
-
}
|
|
4129
|
-
return {
|
|
4130
|
-
backProps: {
|
|
4131
|
-
"aria-label": p,
|
|
4132
|
-
children: s,
|
|
4133
|
-
"data-action": "back",
|
|
4134
|
-
onClick: this.handleClickBack,
|
|
4135
|
-
role: "button",
|
|
4136
|
-
title: p
|
|
4137
|
-
},
|
|
4138
|
-
closeProps: {
|
|
4139
|
-
"aria-label": d,
|
|
4140
|
-
children: a,
|
|
4141
|
-
"data-action": "close",
|
|
4142
|
-
onClick: this.handleClickClose,
|
|
4143
|
-
role: "button",
|
|
4144
|
-
title: d
|
|
4145
|
-
},
|
|
4146
|
-
primaryProps: {
|
|
4147
|
-
"aria-label": v,
|
|
4148
|
-
children: g,
|
|
4149
|
-
"data-action": "primary",
|
|
4150
|
-
onClick: this.handleClickPrimary,
|
|
4151
|
-
role: "button",
|
|
4152
|
-
title: v
|
|
4153
|
-
},
|
|
4154
|
-
skipProps: {
|
|
4155
|
-
"aria-label": w,
|
|
4156
|
-
children: c,
|
|
4157
|
-
"data-action": "skip",
|
|
4158
|
-
onClick: this.handleClickSkip,
|
|
4159
|
-
role: "button",
|
|
4160
|
-
title: w
|
|
4161
|
-
},
|
|
4162
|
-
tooltipProps: {
|
|
4163
|
-
"aria-modal": !0,
|
|
4164
|
-
ref: n,
|
|
4165
|
-
role: "alertdialog"
|
|
4166
|
-
}
|
|
4167
|
-
};
|
|
4168
|
-
});
|
|
4169
|
-
}
|
|
4170
|
-
render() {
|
|
4171
|
-
const { continuous: e, index: t, isLastStep: r, setTooltipRef: n, size: o, step: i } = this.props, { beaconComponent: s, tooltipComponent: a, ...l } = i;
|
|
4172
|
-
let u;
|
|
4173
|
-
if (a) {
|
|
4174
|
-
const f = {
|
|
4175
|
-
...this.getElementsProps(),
|
|
4176
|
-
continuous: e,
|
|
4177
|
-
index: t,
|
|
4178
|
-
isLastStep: r,
|
|
4179
|
-
size: o,
|
|
4180
|
-
step: l,
|
|
4181
|
-
setTooltipRef: n
|
|
4182
|
-
}, c = a;
|
|
4183
|
-
u = /* @__PURE__ */ W.createElement(c, { ...f });
|
|
4184
|
-
} else
|
|
4185
|
-
u = /* @__PURE__ */ W.createElement(
|
|
4186
|
-
Ji,
|
|
4187
|
-
{
|
|
4188
|
-
...this.getElementsProps(),
|
|
4189
|
-
continuous: e,
|
|
4190
|
-
index: t,
|
|
4191
|
-
isLastStep: r,
|
|
4192
|
-
size: o,
|
|
4193
|
-
step: i
|
|
4194
|
-
}
|
|
4195
|
-
);
|
|
4196
|
-
return u;
|
|
4197
|
-
}
|
|
4198
|
-
}, Zi = class extends W.Component {
|
|
4199
|
-
constructor() {
|
|
4200
|
-
super(...arguments), C(this, "scope", null), C(this, "tooltip", null), C(this, "handleClickHoverBeacon", (e) => {
|
|
4201
|
-
const { step: t, store: r } = this.props;
|
|
4202
|
-
e.type === "mouseenter" && t.event !== "hover" || r.update({ lifecycle: I.TOOLTIP });
|
|
4203
|
-
}), C(this, "setTooltipRef", (e) => {
|
|
4204
|
-
this.tooltip = e;
|
|
4205
|
-
}), C(this, "setPopper", (e, t) => {
|
|
4206
|
-
var r;
|
|
4207
|
-
const { action: n, lifecycle: o, step: i, store: s } = this.props;
|
|
4208
|
-
t === "wrapper" ? s.setPopper("beacon", e) : s.setPopper("tooltip", e), s.getPopper("beacon") && (s.getPopper("tooltip") || i.placement === "center") && o === I.INIT && s.update({
|
|
4209
|
-
action: n,
|
|
4210
|
-
lifecycle: I.READY
|
|
4211
|
-
}), (r = i.floaterProps) != null && r.getPopper && i.floaterProps.getPopper(e, t);
|
|
4212
|
-
}), C(this, "renderTooltip", (e) => {
|
|
4213
|
-
const { continuous: t, helpers: r, index: n, size: o, step: i } = this.props;
|
|
4214
|
-
return /* @__PURE__ */ W.createElement(
|
|
4215
|
-
Xi,
|
|
4216
|
-
{
|
|
4217
|
-
continuous: t,
|
|
4218
|
-
helpers: r,
|
|
4219
|
-
index: n,
|
|
4220
|
-
isLastStep: n + 1 === o,
|
|
4221
|
-
setTooltipRef: this.setTooltipRef,
|
|
4222
|
-
size: o,
|
|
4223
|
-
step: i,
|
|
4224
|
-
...e
|
|
4225
|
-
}
|
|
4226
|
-
);
|
|
4227
|
-
});
|
|
4228
|
-
}
|
|
4229
|
-
componentDidMount() {
|
|
4230
|
-
const { debug: e, index: t } = this.props;
|
|
4231
|
-
ve({
|
|
4232
|
-
title: `step:${t}`,
|
|
4233
|
-
data: [{ key: "props", value: this.props }],
|
|
4234
|
-
debug: e
|
|
4235
|
-
});
|
|
4236
|
-
}
|
|
4237
|
-
componentDidUpdate(e) {
|
|
4238
|
-
var t;
|
|
4239
|
-
const {
|
|
4240
|
-
action: r,
|
|
4241
|
-
callback: n,
|
|
4242
|
-
continuous: o,
|
|
4243
|
-
controlled: i,
|
|
4244
|
-
debug: s,
|
|
4245
|
-
helpers: a,
|
|
4246
|
-
index: l,
|
|
4247
|
-
lifecycle: u,
|
|
4248
|
-
shouldScroll: f,
|
|
4249
|
-
status: c,
|
|
4250
|
-
step: p,
|
|
4251
|
-
store: d
|
|
4252
|
-
} = this.props, { changed: h, changedFrom: m } = rt(e, this.props), w = a.info(), g = o && r !== q.CLOSE && (l > 0 || r === q.PREV), v = h("action") || h("index") || h("lifecycle") || h("status"), S = m("lifecycle", [I.TOOLTIP, I.INIT], I.INIT), N = h("action", [
|
|
4253
|
-
q.NEXT,
|
|
4254
|
-
q.PREV,
|
|
4255
|
-
q.SKIP,
|
|
4256
|
-
q.CLOSE
|
|
4257
|
-
]), b = i && l === e.index;
|
|
4258
|
-
if (N && (S || b) && n({
|
|
4259
|
-
...w,
|
|
4260
|
-
index: e.index,
|
|
4261
|
-
lifecycle: I.COMPLETE,
|
|
4262
|
-
step: e.step,
|
|
4263
|
-
type: ee.STEP_AFTER
|
|
4264
|
-
}), p.placement === "center" && c === k.RUNNING && h("index") && r !== q.START && u === I.INIT && d.update({ lifecycle: I.READY }), v) {
|
|
4265
|
-
const j = he(p.target), K = !!j;
|
|
4266
|
-
K && Ti(j) ? (m("status", k.READY, k.RUNNING) || m("lifecycle", I.INIT, I.READY)) && n({
|
|
4267
|
-
...w,
|
|
4268
|
-
step: p,
|
|
4269
|
-
type: ee.STEP_BEFORE
|
|
4270
|
-
}) : (console.warn(K ? "Target not visible" : "Target not mounted", p), n({
|
|
4271
|
-
...w,
|
|
4272
|
-
type: ee.TARGET_NOT_FOUND,
|
|
4273
|
-
step: p
|
|
4274
|
-
}), i || d.update({ index: l + (r === q.PREV ? -1 : 1) }));
|
|
4275
|
-
}
|
|
4276
|
-
m("lifecycle", I.INIT, I.READY) && d.update({
|
|
4277
|
-
lifecycle: xr(p) || g ? I.TOOLTIP : I.BEACON
|
|
4278
|
-
}), h("index") && ve({
|
|
4279
|
-
title: `step:${u}`,
|
|
4280
|
-
data: [{ key: "props", value: this.props }],
|
|
4281
|
-
debug: s
|
|
4282
|
-
}), h("lifecycle", I.BEACON) && n({
|
|
4283
|
-
...w,
|
|
4284
|
-
step: p,
|
|
4285
|
-
type: ee.BEACON
|
|
4286
|
-
}), h("lifecycle", I.TOOLTIP) && (n({
|
|
4287
|
-
...w,
|
|
4288
|
-
step: p,
|
|
4289
|
-
type: ee.TOOLTIP
|
|
4290
|
-
}), f && this.tooltip && (this.scope = new Hi(this.tooltip, { selector: "[data-action=primary]" }), this.scope.setFocus())), m("lifecycle", [I.TOOLTIP, I.INIT], I.INIT) && ((t = this.scope) == null || t.removeScope(), d.cleanupPoppers());
|
|
4291
|
-
}
|
|
4292
|
-
componentWillUnmount() {
|
|
4293
|
-
var e;
|
|
4294
|
-
(e = this.scope) == null || e.removeScope();
|
|
4295
|
-
}
|
|
4296
|
-
get open() {
|
|
4297
|
-
const { lifecycle: e, step: t } = this.props;
|
|
4298
|
-
return xr(t) || e === I.TOOLTIP;
|
|
4299
|
-
}
|
|
4300
|
-
render() {
|
|
4301
|
-
const { continuous: e, debug: t, index: r, nonce: n, shouldScroll: o, size: i, step: s } = this.props, a = he(s.target);
|
|
4302
|
-
return !dn(s) || !x.domElement(a) ? null : /* @__PURE__ */ W.createElement("div", { key: `JoyrideStep-${r}`, className: "react-joyride__step" }, /* @__PURE__ */ W.createElement(
|
|
4303
|
-
$t,
|
|
4304
|
-
{
|
|
4305
|
-
...s.floaterProps,
|
|
4306
|
-
component: this.renderTooltip,
|
|
4307
|
-
debug: t,
|
|
4308
|
-
getPopper: this.setPopper,
|
|
4309
|
-
id: `react-joyride-step-${r}`,
|
|
4310
|
-
open: this.open,
|
|
4311
|
-
placement: s.placement,
|
|
4312
|
-
target: s.target
|
|
4313
|
-
},
|
|
4314
|
-
/* @__PURE__ */ W.createElement(
|
|
4315
|
-
Vi,
|
|
4316
|
-
{
|
|
4317
|
-
beaconComponent: s.beaconComponent,
|
|
4318
|
-
continuous: e,
|
|
4319
|
-
index: r,
|
|
4320
|
-
isLastStep: r + 1 === i,
|
|
4321
|
-
locale: s.locale,
|
|
4322
|
-
nonce: n,
|
|
4323
|
-
onClickOrHover: this.handleClickHoverBeacon,
|
|
4324
|
-
shouldFocus: o,
|
|
4325
|
-
size: i,
|
|
4326
|
-
step: s,
|
|
4327
|
-
styles: s.styles
|
|
4328
|
-
}
|
|
4329
|
-
)
|
|
4330
|
-
));
|
|
4331
|
-
}
|
|
4332
|
-
}, yn = class extends W.Component {
|
|
4333
|
-
constructor(e) {
|
|
4334
|
-
super(e), C(this, "helpers"), C(this, "store"), C(this, "callback", (s) => {
|
|
4335
|
-
const { callback: a } = this.props;
|
|
4336
|
-
x.function(a) && a(s);
|
|
4337
|
-
}), C(this, "handleKeyboard", (s) => {
|
|
4338
|
-
const { index: a, lifecycle: l } = this.state, { steps: u } = this.props, f = u[a];
|
|
4339
|
-
l === I.TOOLTIP && s.code === "Escape" && f && !f.disableCloseOnEsc && this.store.close("keyboard");
|
|
4340
|
-
}), C(this, "handleClickOverlay", () => {
|
|
4341
|
-
const { index: s } = this.state, { steps: a } = this.props;
|
|
4342
|
-
we(this.props, a[s]).disableOverlayClose || this.helpers.close("overlay");
|
|
4343
|
-
}), C(this, "syncState", (s) => {
|
|
4344
|
-
this.setState(s);
|
|
4345
|
-
});
|
|
4346
|
-
const { debug: t, getHelpers: r, run: n = !0, stepIndex: o } = e;
|
|
4347
|
-
this.store = Wi({
|
|
4348
|
-
...e,
|
|
4349
|
-
controlled: n && x.number(o)
|
|
4350
|
-
}), this.helpers = this.store.getHelpers();
|
|
4351
|
-
const { addListener: i } = this.store;
|
|
4352
|
-
ve({
|
|
4353
|
-
title: "init",
|
|
4354
|
-
data: [
|
|
4355
|
-
{ key: "props", value: this.props },
|
|
4356
|
-
{ key: "state", value: this.state }
|
|
4357
|
-
],
|
|
4358
|
-
debug: t
|
|
4359
|
-
}), i(this.syncState), r && r(this.helpers), this.state = this.store.getState();
|
|
4360
|
-
}
|
|
4361
|
-
componentDidMount() {
|
|
4362
|
-
if (!ye())
|
|
4363
|
-
return;
|
|
4364
|
-
const { debug: e, disableCloseOnEsc: t, run: r, steps: n } = this.props, { start: o } = this.store;
|
|
4365
|
-
Nr(n, e) && r && o(), t || document.body.addEventListener("keydown", this.handleKeyboard, { passive: !0 });
|
|
4366
|
-
}
|
|
4367
|
-
componentDidUpdate(e, t) {
|
|
4368
|
-
if (!ye())
|
|
4369
|
-
return;
|
|
4370
|
-
const { action: r, controlled: n, index: o, status: i } = this.state, { debug: s, run: a, stepIndex: l, steps: u } = this.props, { stepIndex: f, steps: c } = e, { reset: p, setSteps: d, start: h, stop: m, update: w } = this.store, { changed: g } = rt(e, this.props), { changed: v, changedFrom: S } = rt(t, this.state), N = we(this.props, u[o]), b = !X(c, u), j = x.number(l) && g("stepIndex"), K = he(N.target);
|
|
4371
|
-
if (b && (Nr(u, s) ? d(u) : console.warn("Steps are not valid", u)), g("run") && (a ? h(l) : m()), j) {
|
|
4372
|
-
let re = x.number(f) && f < l ? q.NEXT : q.PREV;
|
|
4373
|
-
r === q.STOP && (re = q.START), [k.FINISHED, k.SKIPPED].includes(i) || w({
|
|
4374
|
-
action: r === q.CLOSE ? q.CLOSE : re,
|
|
4375
|
-
index: l,
|
|
4376
|
-
lifecycle: I.INIT
|
|
4377
|
-
});
|
|
4378
|
-
}
|
|
4379
|
-
!n && i === k.RUNNING && o === 0 && !K && (this.store.update({ index: o + 1 }), this.callback({
|
|
4380
|
-
...this.state,
|
|
4381
|
-
type: ee.TARGET_NOT_FOUND,
|
|
4382
|
-
step: N
|
|
4383
|
-
}));
|
|
4384
|
-
const se = {
|
|
4385
|
-
...this.state,
|
|
4386
|
-
index: o,
|
|
4387
|
-
step: N
|
|
4388
|
-
};
|
|
4389
|
-
if (v("action", [
|
|
4390
|
-
q.NEXT,
|
|
4391
|
-
q.PREV,
|
|
4392
|
-
q.SKIP,
|
|
4393
|
-
q.CLOSE
|
|
4394
|
-
]) && v("status", k.PAUSED)) {
|
|
4395
|
-
const re = we(this.props, u[t.index]);
|
|
4396
|
-
this.callback({
|
|
4397
|
-
...se,
|
|
4398
|
-
index: t.index,
|
|
4399
|
-
lifecycle: I.COMPLETE,
|
|
4400
|
-
step: re,
|
|
4401
|
-
type: ee.STEP_AFTER
|
|
4402
|
-
});
|
|
4403
|
-
}
|
|
4404
|
-
if (v("status", [k.FINISHED, k.SKIPPED])) {
|
|
4405
|
-
const re = we(this.props, u[t.index]);
|
|
4406
|
-
n || this.callback({
|
|
4407
|
-
...se,
|
|
4408
|
-
index: t.index,
|
|
4409
|
-
lifecycle: I.COMPLETE,
|
|
4410
|
-
step: re,
|
|
4411
|
-
type: ee.STEP_AFTER
|
|
4412
|
-
}), this.callback({
|
|
4413
|
-
...se,
|
|
4414
|
-
type: ee.TOUR_END,
|
|
4415
|
-
// Return the last step when the tour is finished
|
|
4416
|
-
step: re,
|
|
4417
|
-
index: t.index
|
|
4418
|
-
}), p();
|
|
4419
|
-
} else S("status", [k.IDLE, k.READY], k.RUNNING) ? this.callback({
|
|
4420
|
-
...se,
|
|
4421
|
-
type: ee.TOUR_START
|
|
4422
|
-
}) : (v("status") || v("action", q.RESET)) && this.callback({
|
|
4423
|
-
...se,
|
|
4424
|
-
type: ee.TOUR_STATUS
|
|
4425
|
-
});
|
|
4426
|
-
this.scrollToStep(t);
|
|
4427
|
-
}
|
|
4428
|
-
componentWillUnmount() {
|
|
4429
|
-
const { disableCloseOnEsc: e } = this.props;
|
|
4430
|
-
e || document.body.removeEventListener("keydown", this.handleKeyboard);
|
|
4431
|
-
}
|
|
4432
|
-
scrollToStep(e) {
|
|
4433
|
-
const { index: t, lifecycle: r, status: n } = this.state, {
|
|
4434
|
-
debug: o,
|
|
4435
|
-
disableScrollParentFix: i = !1,
|
|
4436
|
-
scrollDuration: s,
|
|
4437
|
-
scrollOffset: a = 20,
|
|
4438
|
-
scrollToFirstStep: l = !1,
|
|
4439
|
-
steps: u
|
|
4440
|
-
} = this.props, f = we(this.props, u[t]), c = he(f.target), p = Ai({
|
|
4441
|
-
isFirstStep: t === 0,
|
|
4442
|
-
lifecycle: r,
|
|
4443
|
-
previousLifecycle: e.lifecycle,
|
|
4444
|
-
scrollToFirstStep: l,
|
|
4445
|
-
step: f,
|
|
4446
|
-
target: c
|
|
4447
|
-
});
|
|
4448
|
-
if (n === k.RUNNING && p) {
|
|
4449
|
-
const d = He(c, i), h = Me(c, i);
|
|
4450
|
-
let m = Math.floor(xi(c, a, i)) || 0;
|
|
4451
|
-
ve({
|
|
4452
|
-
title: "scrollToStep",
|
|
4453
|
-
data: [
|
|
4454
|
-
{ key: "index", value: t },
|
|
4455
|
-
{ key: "lifecycle", value: r },
|
|
4456
|
-
{ key: "status", value: n }
|
|
4457
|
-
],
|
|
4458
|
-
debug: o
|
|
4459
|
-
});
|
|
4460
|
-
const w = this.store.getPopper("beacon"), g = this.store.getPopper("tooltip");
|
|
4461
|
-
if (r === I.BEACON && w) {
|
|
4462
|
-
const { offsets: v, placement: S } = w;
|
|
4463
|
-
!["bottom"].includes(S) && !d && (m = Math.floor(v.popper.top - a));
|
|
4464
|
-
} else if (r === I.TOOLTIP && g) {
|
|
4465
|
-
const { flipped: v, offsets: S, placement: N } = g;
|
|
4466
|
-
["top", "right", "left"].includes(N) && !v && !d ? m = Math.floor(S.popper.top - a) : m -= f.spotlightPadding;
|
|
4467
|
-
}
|
|
4468
|
-
m = m >= 0 ? m : 0, n === k.RUNNING && Ci(m, { element: h, duration: s }).then(
|
|
4469
|
-
() => {
|
|
4470
|
-
setTimeout(() => {
|
|
4471
|
-
var v;
|
|
4472
|
-
(v = this.store.getPopper("tooltip")) == null || v.instance.update();
|
|
4473
|
-
}, 10);
|
|
4474
|
-
}
|
|
4475
|
-
);
|
|
4476
|
-
}
|
|
4477
|
-
}
|
|
4478
|
-
render() {
|
|
4479
|
-
if (!ye())
|
|
4480
|
-
return null;
|
|
4481
|
-
const { index: e, lifecycle: t, status: r } = this.state, {
|
|
4482
|
-
continuous: n = !1,
|
|
4483
|
-
debug: o = !1,
|
|
4484
|
-
nonce: i,
|
|
4485
|
-
scrollToFirstStep: s = !1,
|
|
4486
|
-
steps: a
|
|
4487
|
-
} = this.props, l = r === k.RUNNING, u = {};
|
|
4488
|
-
if (l && a[e]) {
|
|
4489
|
-
const f = we(this.props, a[e]);
|
|
4490
|
-
u.step = /* @__PURE__ */ W.createElement(
|
|
4491
|
-
Zi,
|
|
4492
|
-
{
|
|
4493
|
-
...this.state,
|
|
4494
|
-
callback: this.callback,
|
|
4495
|
-
continuous: n,
|
|
4496
|
-
debug: o,
|
|
4497
|
-
helpers: this.helpers,
|
|
4498
|
-
nonce: i,
|
|
4499
|
-
shouldScroll: !f.disableScrolling && (e !== 0 || s),
|
|
4500
|
-
step: f,
|
|
4501
|
-
store: this.store
|
|
4502
|
-
}
|
|
4503
|
-
), u.overlay = /* @__PURE__ */ W.createElement(qi, { id: "react-joyride-portal" }, /* @__PURE__ */ W.createElement(
|
|
4504
|
-
zi,
|
|
4505
|
-
{
|
|
4506
|
-
...f,
|
|
4507
|
-
continuous: n,
|
|
4508
|
-
debug: o,
|
|
4509
|
-
lifecycle: t,
|
|
4510
|
-
onClickOverlay: this.handleClickOverlay
|
|
4511
|
-
}
|
|
4512
|
-
));
|
|
4513
|
-
}
|
|
4514
|
-
return /* @__PURE__ */ W.createElement("div", { className: "react-joyride" }, u.step, u.overlay);
|
|
4515
|
-
}
|
|
4516
|
-
};
|
|
4517
|
-
C(yn, "defaultProps", Li);
|
|
4518
|
-
var Qi = yn;
|
|
4519
|
-
const is = {
|
|
4520
|
-
content: "",
|
|
4521
|
-
disableBeacon: !0,
|
|
4522
|
-
hideCloseButton: !1,
|
|
4523
|
-
locale: {
|
|
4524
|
-
back: "Back",
|
|
4525
|
-
close: "Close",
|
|
4526
|
-
last: "Close",
|
|
4527
|
-
next: "Next",
|
|
4528
|
-
open: "Open the dialog",
|
|
4529
|
-
skip: "Skip"
|
|
4530
|
-
},
|
|
4531
|
-
showSkipButton: !0,
|
|
4532
|
-
styles: {
|
|
4533
|
-
buttonBack: {
|
|
4534
|
-
fontFamily: "roboto"
|
|
4535
|
-
},
|
|
4536
|
-
buttonNext: {
|
|
4537
|
-
fontFamily: "roboto"
|
|
4538
|
-
},
|
|
4539
|
-
buttonSkip: {
|
|
4540
|
-
fontFamily: "roboto"
|
|
4541
|
-
},
|
|
4542
|
-
options: {
|
|
4543
|
-
zIndex: 9999
|
|
4544
|
-
},
|
|
4545
|
-
tooltipContainer: {
|
|
4546
|
-
fontFamily: "roboto",
|
|
4547
|
-
textAlign: "left"
|
|
4548
|
-
}
|
|
4549
|
-
},
|
|
4550
|
-
target: ""
|
|
4551
|
-
}, ss = ({ run: e, steps: t, onFinish: r }) => {
|
|
4552
|
-
const [n, o] = Ut(e), [i, s] = Ut(0), a = gn(
|
|
4553
|
-
(l) => {
|
|
4554
|
-
const { action: u, index: f, status: c, type: p } = l;
|
|
4555
|
-
[ee.STEP_AFTER, ee.TARGET_NOT_FOUND].includes(
|
|
4556
|
-
p
|
|
4557
|
-
) ? s(f + (u === q.PREV ? -1 : 1)) : ([k.FINISHED, k.SKIPPED].includes(c) || u === "close") && (o(!1), vn(r) || r());
|
|
4558
|
-
},
|
|
4559
|
-
[r]
|
|
4560
|
-
);
|
|
4561
|
-
return /* @__PURE__ */ mn(
|
|
4562
|
-
Qi,
|
|
4563
|
-
{
|
|
4564
|
-
callback: a,
|
|
4565
|
-
continuous: !0,
|
|
4566
|
-
disableOverlayClose: !0,
|
|
4567
|
-
disableScrollParentFix: !0,
|
|
4568
|
-
run: n,
|
|
4569
|
-
spotlightClicks: !0,
|
|
4570
|
-
stepIndex: i,
|
|
4571
|
-
steps: t,
|
|
4572
|
-
styles: {
|
|
4573
|
-
buttonNext: {
|
|
4574
|
-
display: i === t.length - 1 ? "none" : "block"
|
|
4575
|
-
},
|
|
4576
|
-
options: { zIndex: 9999 }
|
|
4577
|
-
}
|
|
4578
|
-
}
|
|
4579
|
-
);
|
|
4580
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import "../../vendor-_XDhaIzo.mjs";
|
|
5
|
+
import { aJ as i, aI as e } from "../../components-C7JPRIEW.mjs";
|
|
4581
6
|
export {
|
|
4582
|
-
|
|
4583
|
-
|
|
7
|
+
i as Tour,
|
|
8
|
+
e as baseStep
|
|
4584
9
|
};
|