@uva-glass/component-library 1.50.0 → 1.50.1
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/Lexical.prod-DSsdOWxu.js +4043 -0
- package/dist/Lexical.prod-DSsdOWxu.js.map +1 -0
- package/dist/ListPlugin-Bu2AbCDB.js +643 -0
- package/dist/ListPlugin-Bu2AbCDB.js.map +1 -0
- package/dist/RteEditor.module-RkKUrkOO.js +21 -0
- package/dist/RteEditor.module-RkKUrkOO.js.map +1 -0
- package/dist/assets/RteEditor.css +1 -0
- package/dist/components/Icon/icons/index.d.ts +12 -0
- package/dist/components/Icon/icons/index.js +93 -73
- package/dist/components/Icon/icons/index.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.d.ts +6 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +32 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.d.ts +6 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +11 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +38 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/index.d.ts +3 -0
- package/dist/components/RteEditor/Plugins/index.js +9 -0
- package/dist/components/RteEditor/Plugins/index.js.map +1 -0
- package/dist/components/RteEditor/RteEditor.d.ts +7 -0
- package/dist/components/RteEditor/RteEditor.js +833 -0
- package/dist/components/RteEditor/RteEditor.js.map +1 -0
- package/dist/components/RteEditor/RteEditor.stories.d.ts +6 -0
- package/dist/components/RteEditor/RteEditor.stories.js +40 -0
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +11 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +16 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -0
- package/dist/components/RteEditor/UvaTheme/index.d.ts +1 -0
- package/dist/components/RteEditor/UvaTheme/index.js +5 -0
- package/dist/components/RteEditor/UvaTheme/index.js.map +1 -0
- package/dist/components/RteEditor/index.d.ts +1 -0
- package/dist/components/RteEditor/index.js +5 -0
- package/dist/components/RteEditor/index.js.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +23 -21
- package/dist/components/index.js.map +1 -1
- package/dist/index-DsprzSCj.js +19067 -0
- package/dist/index-DsprzSCj.js.map +1 -0
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/dist/{react-18-m8Z-Ep7B.js → react-18-C0Aiha-e.js} +2 -2
- package/dist/{react-18-m8Z-Ep7B.js.map → react-18-C0Aiha-e.js.map} +1 -1
- package/dist/storybook__react.d.js +1993 -1
- package/dist/storybook__react.d.js.map +1 -1
- package/package.json +22 -16
- package/dist/storybook__react.d-fgYZl9aD.js +0 -21053
- package/dist/storybook__react.d-fgYZl9aD.js.map +0 -1
|
@@ -1,2 +1,1994 @@
|
|
|
1
|
-
|
|
1
|
+
var Qr = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports);
|
|
2
|
+
import * as de from "react";
|
|
3
|
+
import Re, { StrictMode as en, Fragment as tn, Component as rn } from "react";
|
|
4
|
+
import { s as vr } from "./index-2mUSc_Ki.js";
|
|
5
|
+
import { r as gr } from "./index-DsprzSCj.js";
|
|
6
|
+
var uo = Qr((vo, be) => {
|
|
7
|
+
var nn = Object.defineProperty, sn = (s, e) => {
|
|
8
|
+
for (var n in e) nn(s, n, { get: e[n], enumerable: !0 });
|
|
9
|
+
};
|
|
10
|
+
function an(s) {
|
|
11
|
+
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
12
|
+
}
|
|
13
|
+
var vt = { exports: {} };
|
|
14
|
+
const on = "2.0.0", wr = 256, ln = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
15
|
+
9007199254740991, cn = 16, un = wr - 6, fn = [
|
|
16
|
+
"major",
|
|
17
|
+
"premajor",
|
|
18
|
+
"minor",
|
|
19
|
+
"preminor",
|
|
20
|
+
"patch",
|
|
21
|
+
"prepatch",
|
|
22
|
+
"prerelease"
|
|
23
|
+
];
|
|
24
|
+
var ze = {
|
|
25
|
+
MAX_LENGTH: wr,
|
|
26
|
+
MAX_SAFE_COMPONENT_LENGTH: cn,
|
|
27
|
+
MAX_SAFE_BUILD_LENGTH: un,
|
|
28
|
+
MAX_SAFE_INTEGER: ln,
|
|
29
|
+
RELEASE_TYPES: fn,
|
|
30
|
+
SEMVER_SPEC_VERSION: on,
|
|
31
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
32
|
+
FLAG_LOOSE: 2
|
|
33
|
+
};
|
|
34
|
+
const pn = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...s) => console.error("SEMVER", ...s) : () => {
|
|
35
|
+
};
|
|
36
|
+
var Ze = pn;
|
|
37
|
+
(function(s, e) {
|
|
38
|
+
const {
|
|
39
|
+
MAX_SAFE_COMPONENT_LENGTH: n,
|
|
40
|
+
MAX_SAFE_BUILD_LENGTH: a,
|
|
41
|
+
MAX_LENGTH: h
|
|
42
|
+
} = ze, u = Ze;
|
|
43
|
+
e = s.exports = {};
|
|
44
|
+
const m = e.re = [], O = e.safeRe = [], l = e.src = [], o = e.t = {};
|
|
45
|
+
let v = 0;
|
|
46
|
+
const R = "[a-zA-Z0-9-]", b = [
|
|
47
|
+
["\\s", 1],
|
|
48
|
+
["\\d", h],
|
|
49
|
+
[R, a]
|
|
50
|
+
], $ = (H) => {
|
|
51
|
+
for (const [Y, Q] of b)
|
|
52
|
+
H = H.split(`${Y}*`).join(`${Y}{0,${Q}}`).split(`${Y}+`).join(`${Y}{1,${Q}}`);
|
|
53
|
+
return H;
|
|
54
|
+
}, T = (H, Y, Q) => {
|
|
55
|
+
const V = $(Y), j = v++;
|
|
56
|
+
u(H, j, Y), o[H] = j, l[j] = Y, m[j] = new RegExp(Y, Q ? "g" : void 0), O[j] = new RegExp(V, Q ? "g" : void 0);
|
|
57
|
+
};
|
|
58
|
+
T("NUMERICIDENTIFIER", "0|[1-9]\\d*"), T("NUMERICIDENTIFIERLOOSE", "\\d+"), T("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${R}*`), T("MAINVERSION", `(${l[o.NUMERICIDENTIFIER]})\\.(${l[o.NUMERICIDENTIFIER]})\\.(${l[o.NUMERICIDENTIFIER]})`), T("MAINVERSIONLOOSE", `(${l[o.NUMERICIDENTIFIERLOOSE]})\\.(${l[o.NUMERICIDENTIFIERLOOSE]})\\.(${l[o.NUMERICIDENTIFIERLOOSE]})`), T("PRERELEASEIDENTIFIER", `(?:${l[o.NUMERICIDENTIFIER]}|${l[o.NONNUMERICIDENTIFIER]})`), T("PRERELEASEIDENTIFIERLOOSE", `(?:${l[o.NUMERICIDENTIFIERLOOSE]}|${l[o.NONNUMERICIDENTIFIER]})`), T("PRERELEASE", `(?:-(${l[o.PRERELEASEIDENTIFIER]}(?:\\.${l[o.PRERELEASEIDENTIFIER]})*))`), T("PRERELEASELOOSE", `(?:-?(${l[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[o.PRERELEASEIDENTIFIERLOOSE]})*))`), T("BUILDIDENTIFIER", `${R}+`), T("BUILD", `(?:\\+(${l[o.BUILDIDENTIFIER]}(?:\\.${l[o.BUILDIDENTIFIER]})*))`), T("FULLPLAIN", `v?${l[o.MAINVERSION]}${l[o.PRERELEASE]}?${l[o.BUILD]}?`), T("FULL", `^${l[o.FULLPLAIN]}$`), T("LOOSEPLAIN", `[v=\\s]*${l[o.MAINVERSIONLOOSE]}${l[o.PRERELEASELOOSE]}?${l[o.BUILD]}?`), T("LOOSE", `^${l[o.LOOSEPLAIN]}$`), T("GTLT", "((?:<|>)?=?)"), T("XRANGEIDENTIFIERLOOSE", `${l[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), T("XRANGEIDENTIFIER", `${l[o.NUMERICIDENTIFIER]}|x|X|\\*`), T("XRANGEPLAIN", `[v=\\s]*(${l[o.XRANGEIDENTIFIER]})(?:\\.(${l[o.XRANGEIDENTIFIER]})(?:\\.(${l[o.XRANGEIDENTIFIER]})(?:${l[o.PRERELEASE]})?${l[o.BUILD]}?)?)?`), T("XRANGEPLAINLOOSE", `[v=\\s]*(${l[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[o.XRANGEIDENTIFIERLOOSE]})(?:${l[o.PRERELEASELOOSE]})?${l[o.BUILD]}?)?)?`), T("XRANGE", `^${l[o.GTLT]}\\s*${l[o.XRANGEPLAIN]}$`), T("XRANGELOOSE", `^${l[o.GTLT]}\\s*${l[o.XRANGEPLAINLOOSE]}$`), T("COERCEPLAIN", `(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`), T("COERCE", `${l[o.COERCEPLAIN]}(?:$|[^\\d])`), T("COERCEFULL", l[o.COERCEPLAIN] + `(?:${l[o.PRERELEASE]})?(?:${l[o.BUILD]})?(?:$|[^\\d])`), T("COERCERTL", l[o.COERCE], !0), T("COERCERTLFULL", l[o.COERCEFULL], !0), T("LONETILDE", "(?:~>?)"), T("TILDETRIM", `(\\s*)${l[o.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", T("TILDE", `^${l[o.LONETILDE]}${l[o.XRANGEPLAIN]}$`), T("TILDELOOSE", `^${l[o.LONETILDE]}${l[o.XRANGEPLAINLOOSE]}$`), T("LONECARET", "(?:\\^)"), T("CARETTRIM", `(\\s*)${l[o.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", T("CARET", `^${l[o.LONECARET]}${l[o.XRANGEPLAIN]}$`), T("CARETLOOSE", `^${l[o.LONECARET]}${l[o.XRANGEPLAINLOOSE]}$`), T("COMPARATORLOOSE", `^${l[o.GTLT]}\\s*(${l[o.LOOSEPLAIN]})$|^$`), T("COMPARATOR", `^${l[o.GTLT]}\\s*(${l[o.FULLPLAIN]})$|^$`), T("COMPARATORTRIM", `(\\s*)${l[o.GTLT]}\\s*(${l[o.LOOSEPLAIN]}|${l[o.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", T("HYPHENRANGE", `^\\s*(${l[o.XRANGEPLAIN]})\\s+-\\s+(${l[o.XRANGEPLAIN]})\\s*$`), T("HYPHENRANGELOOSE", `^\\s*(${l[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[o.XRANGEPLAINLOOSE]})\\s*$`), T("STAR", "(<|>)?=?\\s*\\*"), T("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), T("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
59
|
+
})(vt, vt.exports);
|
|
60
|
+
var Ae = vt.exports;
|
|
61
|
+
const hn = Object.freeze({ loose: !0 }), dn = Object.freeze({}), mn = (s) => s ? typeof s != "object" ? hn : s : dn;
|
|
62
|
+
var wt = mn;
|
|
63
|
+
const Vt = /^[0-9]+$/, yr = (s, e) => {
|
|
64
|
+
const n = Vt.test(s), a = Vt.test(e);
|
|
65
|
+
return n && a && (s = +s, e = +e), s === e ? 0 : n && !a ? -1 : a && !n ? 1 : s < e ? -1 : 1;
|
|
66
|
+
}, En = (s, e) => yr(e, s);
|
|
67
|
+
var Rr = {
|
|
68
|
+
compareIdentifiers: yr,
|
|
69
|
+
rcompareIdentifiers: En
|
|
70
|
+
};
|
|
71
|
+
const Ye = Ze, { MAX_LENGTH: Yt, MAX_SAFE_INTEGER: Ke } = ze, { safeRe: Kt, t: Ht } = Ae, vn = wt, { compareIdentifiers: Ce } = Rr;
|
|
72
|
+
let gn = class ie {
|
|
73
|
+
constructor(e, n) {
|
|
74
|
+
if (n = vn(n), e instanceof ie) {
|
|
75
|
+
if (e.loose === !!n.loose && e.includePrerelease === !!n.includePrerelease)
|
|
76
|
+
return e;
|
|
77
|
+
e = e.version;
|
|
78
|
+
} else if (typeof e != "string")
|
|
79
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);
|
|
80
|
+
if (e.length > Yt)
|
|
81
|
+
throw new TypeError(
|
|
82
|
+
`version is longer than ${Yt} characters`
|
|
83
|
+
);
|
|
84
|
+
Ye("SemVer", e, n), this.options = n, this.loose = !!n.loose, this.includePrerelease = !!n.includePrerelease;
|
|
85
|
+
const a = e.trim().match(n.loose ? Kt[Ht.LOOSE] : Kt[Ht.FULL]);
|
|
86
|
+
if (!a)
|
|
87
|
+
throw new TypeError(`Invalid Version: ${e}`);
|
|
88
|
+
if (this.raw = e, this.major = +a[1], this.minor = +a[2], this.patch = +a[3], this.major > Ke || this.major < 0)
|
|
89
|
+
throw new TypeError("Invalid major version");
|
|
90
|
+
if (this.minor > Ke || this.minor < 0)
|
|
91
|
+
throw new TypeError("Invalid minor version");
|
|
92
|
+
if (this.patch > Ke || this.patch < 0)
|
|
93
|
+
throw new TypeError("Invalid patch version");
|
|
94
|
+
a[4] ? this.prerelease = a[4].split(".").map((h) => {
|
|
95
|
+
if (/^[0-9]+$/.test(h)) {
|
|
96
|
+
const u = +h;
|
|
97
|
+
if (u >= 0 && u < Ke)
|
|
98
|
+
return u;
|
|
99
|
+
}
|
|
100
|
+
return h;
|
|
101
|
+
}) : this.prerelease = [], this.build = a[5] ? a[5].split(".") : [], this.format();
|
|
102
|
+
}
|
|
103
|
+
format() {
|
|
104
|
+
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
|
105
|
+
}
|
|
106
|
+
toString() {
|
|
107
|
+
return this.version;
|
|
108
|
+
}
|
|
109
|
+
compare(e) {
|
|
110
|
+
if (Ye("SemVer.compare", this.version, this.options, e), !(e instanceof ie)) {
|
|
111
|
+
if (typeof e == "string" && e === this.version)
|
|
112
|
+
return 0;
|
|
113
|
+
e = new ie(e, this.options);
|
|
114
|
+
}
|
|
115
|
+
return e.version === this.version ? 0 : this.compareMain(e) || this.comparePre(e);
|
|
116
|
+
}
|
|
117
|
+
compareMain(e) {
|
|
118
|
+
return e instanceof ie || (e = new ie(e, this.options)), Ce(this.major, e.major) || Ce(this.minor, e.minor) || Ce(this.patch, e.patch);
|
|
119
|
+
}
|
|
120
|
+
comparePre(e) {
|
|
121
|
+
if (e instanceof ie || (e = new ie(e, this.options)), this.prerelease.length && !e.prerelease.length)
|
|
122
|
+
return -1;
|
|
123
|
+
if (!this.prerelease.length && e.prerelease.length)
|
|
124
|
+
return 1;
|
|
125
|
+
if (!this.prerelease.length && !e.prerelease.length)
|
|
126
|
+
return 0;
|
|
127
|
+
let n = 0;
|
|
128
|
+
do {
|
|
129
|
+
const a = this.prerelease[n], h = e.prerelease[n];
|
|
130
|
+
if (Ye("prerelease compare", n, a, h), a === void 0 && h === void 0)
|
|
131
|
+
return 0;
|
|
132
|
+
if (h === void 0)
|
|
133
|
+
return 1;
|
|
134
|
+
if (a === void 0)
|
|
135
|
+
return -1;
|
|
136
|
+
if (a === h)
|
|
137
|
+
continue;
|
|
138
|
+
return Ce(a, h);
|
|
139
|
+
} while (++n);
|
|
140
|
+
}
|
|
141
|
+
compareBuild(e) {
|
|
142
|
+
e instanceof ie || (e = new ie(e, this.options));
|
|
143
|
+
let n = 0;
|
|
144
|
+
do {
|
|
145
|
+
const a = this.build[n], h = e.build[n];
|
|
146
|
+
if (Ye("build compare", n, a, h), a === void 0 && h === void 0)
|
|
147
|
+
return 0;
|
|
148
|
+
if (h === void 0)
|
|
149
|
+
return 1;
|
|
150
|
+
if (a === void 0)
|
|
151
|
+
return -1;
|
|
152
|
+
if (a === h)
|
|
153
|
+
continue;
|
|
154
|
+
return Ce(a, h);
|
|
155
|
+
} while (++n);
|
|
156
|
+
}
|
|
157
|
+
// preminor will bump the version up to the next minor release, and immediately
|
|
158
|
+
// down to pre-release. premajor and prepatch work the same way.
|
|
159
|
+
inc(e, n, a) {
|
|
160
|
+
switch (e) {
|
|
161
|
+
case "premajor":
|
|
162
|
+
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", n, a);
|
|
163
|
+
break;
|
|
164
|
+
case "preminor":
|
|
165
|
+
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", n, a);
|
|
166
|
+
break;
|
|
167
|
+
case "prepatch":
|
|
168
|
+
this.prerelease.length = 0, this.inc("patch", n, a), this.inc("pre", n, a);
|
|
169
|
+
break;
|
|
170
|
+
case "prerelease":
|
|
171
|
+
this.prerelease.length === 0 && this.inc("patch", n, a), this.inc("pre", n, a);
|
|
172
|
+
break;
|
|
173
|
+
case "major":
|
|
174
|
+
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
|
175
|
+
break;
|
|
176
|
+
case "minor":
|
|
177
|
+
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
|
178
|
+
break;
|
|
179
|
+
case "patch":
|
|
180
|
+
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
|
181
|
+
break;
|
|
182
|
+
case "pre": {
|
|
183
|
+
const h = Number(a) ? 1 : 0;
|
|
184
|
+
if (!n && a === !1)
|
|
185
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
186
|
+
if (this.prerelease.length === 0)
|
|
187
|
+
this.prerelease = [h];
|
|
188
|
+
else {
|
|
189
|
+
let u = this.prerelease.length;
|
|
190
|
+
for (; --u >= 0; )
|
|
191
|
+
typeof this.prerelease[u] == "number" && (this.prerelease[u]++, u = -2);
|
|
192
|
+
if (u === -1) {
|
|
193
|
+
if (n === this.prerelease.join(".") && a === !1)
|
|
194
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
195
|
+
this.prerelease.push(h);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
if (n) {
|
|
199
|
+
let u = [n, h];
|
|
200
|
+
a === !1 && (u = [n]), Ce(this.prerelease[0], n) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = u) : this.prerelease = u;
|
|
201
|
+
}
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
default:
|
|
205
|
+
throw new Error(`invalid increment argument: ${e}`);
|
|
206
|
+
}
|
|
207
|
+
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
var z = gn;
|
|
211
|
+
const qt = z, wn = (s, e, n = !1) => {
|
|
212
|
+
if (s instanceof qt)
|
|
213
|
+
return s;
|
|
214
|
+
try {
|
|
215
|
+
return new qt(s, e);
|
|
216
|
+
} catch (a) {
|
|
217
|
+
if (!n)
|
|
218
|
+
return null;
|
|
219
|
+
throw a;
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
var Oe = wn;
|
|
223
|
+
const yn = Oe, Rn = (s, e) => {
|
|
224
|
+
const n = yn(s, e);
|
|
225
|
+
return n ? n.version : null;
|
|
226
|
+
};
|
|
227
|
+
var $n = Rn;
|
|
228
|
+
const In = Oe, Tn = (s, e) => {
|
|
229
|
+
const n = In(s.trim().replace(/^[=v]+/, ""), e);
|
|
230
|
+
return n ? n.version : null;
|
|
231
|
+
};
|
|
232
|
+
var Cn = Tn;
|
|
233
|
+
const Bt = z, On = (s, e, n, a, h) => {
|
|
234
|
+
typeof n == "string" && (h = a, a = n, n = void 0);
|
|
235
|
+
try {
|
|
236
|
+
return new Bt(
|
|
237
|
+
s instanceof Bt ? s.version : s,
|
|
238
|
+
n
|
|
239
|
+
).inc(e, a, h).version;
|
|
240
|
+
} catch {
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
var Sn = On;
|
|
245
|
+
const zt = Oe, Ln = (s, e) => {
|
|
246
|
+
const n = zt(s, null, !0), a = zt(e, null, !0), h = n.compare(a);
|
|
247
|
+
if (h === 0)
|
|
248
|
+
return null;
|
|
249
|
+
const u = h > 0, m = u ? n : a, O = u ? a : n, l = !!m.prerelease.length;
|
|
250
|
+
if (!!O.prerelease.length && !l)
|
|
251
|
+
return !O.patch && !O.minor ? "major" : m.patch ? "patch" : m.minor ? "minor" : "major";
|
|
252
|
+
const v = l ? "pre" : "";
|
|
253
|
+
return n.major !== a.major ? v + "major" : n.minor !== a.minor ? v + "minor" : n.patch !== a.patch ? v + "patch" : "prerelease";
|
|
254
|
+
};
|
|
255
|
+
var Dn = Ln;
|
|
256
|
+
const Nn = z, bn = (s, e) => new Nn(s, e).major;
|
|
257
|
+
var An = bn;
|
|
258
|
+
const Pn = z, _n = (s, e) => new Pn(s, e).minor;
|
|
259
|
+
var kn = _n;
|
|
260
|
+
const Mn = z, Un = (s, e) => new Mn(s, e).patch;
|
|
261
|
+
var Fn = Un;
|
|
262
|
+
const jn = Oe, Xn = (s, e) => {
|
|
263
|
+
const n = jn(s, e);
|
|
264
|
+
return n && n.prerelease.length ? n.prerelease : null;
|
|
265
|
+
};
|
|
266
|
+
var xn = Xn;
|
|
267
|
+
const Zt = z, Gn = (s, e, n) => new Zt(s, n).compare(new Zt(e, n));
|
|
268
|
+
var se = Gn;
|
|
269
|
+
const Wn = se, Vn = (s, e, n) => Wn(e, s, n);
|
|
270
|
+
var Yn = Vn;
|
|
271
|
+
const Kn = se, Hn = (s, e) => Kn(s, e, !0);
|
|
272
|
+
var qn = Hn;
|
|
273
|
+
const Jt = z, Bn = (s, e, n) => {
|
|
274
|
+
const a = new Jt(s, n), h = new Jt(e, n);
|
|
275
|
+
return a.compare(h) || a.compareBuild(h);
|
|
276
|
+
};
|
|
277
|
+
var yt = Bn;
|
|
278
|
+
const zn = yt, Zn = (s, e) => s.sort((n, a) => zn(n, a, e));
|
|
279
|
+
var Jn = Zn;
|
|
280
|
+
const Qn = yt, es = (s, e) => s.sort((n, a) => Qn(a, n, e));
|
|
281
|
+
var ts = es;
|
|
282
|
+
const rs = se, ns = (s, e, n) => rs(s, e, n) > 0;
|
|
283
|
+
var Je = ns;
|
|
284
|
+
const ss = se, as = (s, e, n) => ss(s, e, n) < 0;
|
|
285
|
+
var Rt = as;
|
|
286
|
+
const os = se, is = (s, e, n) => os(s, e, n) === 0;
|
|
287
|
+
var $r = is;
|
|
288
|
+
const ls = se, cs = (s, e, n) => ls(s, e, n) !== 0;
|
|
289
|
+
var Ir = cs;
|
|
290
|
+
const us = se, fs = (s, e, n) => us(s, e, n) >= 0;
|
|
291
|
+
var $t = fs;
|
|
292
|
+
const ps = se, hs = (s, e, n) => ps(s, e, n) <= 0;
|
|
293
|
+
var It = hs;
|
|
294
|
+
const ds = $r, ms = Ir, Es = Je, vs = $t, gs = Rt, ws = It, ys = (s, e, n, a) => {
|
|
295
|
+
switch (e) {
|
|
296
|
+
case "===":
|
|
297
|
+
return typeof s == "object" && (s = s.version), typeof n == "object" && (n = n.version), s === n;
|
|
298
|
+
case "!==":
|
|
299
|
+
return typeof s == "object" && (s = s.version), typeof n == "object" && (n = n.version), s !== n;
|
|
300
|
+
case "":
|
|
301
|
+
case "=":
|
|
302
|
+
case "==":
|
|
303
|
+
return ds(s, n, a);
|
|
304
|
+
case "!=":
|
|
305
|
+
return ms(s, n, a);
|
|
306
|
+
case ">":
|
|
307
|
+
return Es(s, n, a);
|
|
308
|
+
case ">=":
|
|
309
|
+
return vs(s, n, a);
|
|
310
|
+
case "<":
|
|
311
|
+
return gs(s, n, a);
|
|
312
|
+
case "<=":
|
|
313
|
+
return ws(s, n, a);
|
|
314
|
+
default:
|
|
315
|
+
throw new TypeError(`Invalid operator: ${e}`);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
var Tr = ys;
|
|
319
|
+
const Rs = z, $s = Oe, { safeRe: He, t: qe } = Ae, Is = (s, e) => {
|
|
320
|
+
if (s instanceof Rs)
|
|
321
|
+
return s;
|
|
322
|
+
if (typeof s == "number" && (s = String(s)), typeof s != "string")
|
|
323
|
+
return null;
|
|
324
|
+
e = e || {};
|
|
325
|
+
let n = null;
|
|
326
|
+
if (!e.rtl)
|
|
327
|
+
n = s.match(e.includePrerelease ? He[qe.COERCEFULL] : He[qe.COERCE]);
|
|
328
|
+
else {
|
|
329
|
+
const l = e.includePrerelease ? He[qe.COERCERTLFULL] : He[qe.COERCERTL];
|
|
330
|
+
let o;
|
|
331
|
+
for (; (o = l.exec(s)) && (!n || n.index + n[0].length !== s.length); )
|
|
332
|
+
(!n || o.index + o[0].length !== n.index + n[0].length) && (n = o), l.lastIndex = o.index + o[1].length + o[2].length;
|
|
333
|
+
l.lastIndex = -1;
|
|
334
|
+
}
|
|
335
|
+
if (n === null)
|
|
336
|
+
return null;
|
|
337
|
+
const a = n[2], h = n[3] || "0", u = n[4] || "0", m = e.includePrerelease && n[5] ? `-${n[5]}` : "", O = e.includePrerelease && n[6] ? `+${n[6]}` : "";
|
|
338
|
+
return $s(`${a}.${h}.${u}${m}${O}`, e);
|
|
339
|
+
};
|
|
340
|
+
var Ts = Is;
|
|
341
|
+
class Cs {
|
|
342
|
+
constructor() {
|
|
343
|
+
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
344
|
+
}
|
|
345
|
+
get(e) {
|
|
346
|
+
const n = this.map.get(e);
|
|
347
|
+
if (n !== void 0)
|
|
348
|
+
return this.map.delete(e), this.map.set(e, n), n;
|
|
349
|
+
}
|
|
350
|
+
delete(e) {
|
|
351
|
+
return this.map.delete(e);
|
|
352
|
+
}
|
|
353
|
+
set(e, n) {
|
|
354
|
+
if (!this.delete(e) && n !== void 0) {
|
|
355
|
+
if (this.map.size >= this.max) {
|
|
356
|
+
const h = this.map.keys().next().value;
|
|
357
|
+
this.delete(h);
|
|
358
|
+
}
|
|
359
|
+
this.map.set(e, n);
|
|
360
|
+
}
|
|
361
|
+
return this;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
var Os = Cs, ft, Qt;
|
|
365
|
+
function ae() {
|
|
366
|
+
if (Qt) return ft;
|
|
367
|
+
Qt = 1;
|
|
368
|
+
const s = /\s+/g;
|
|
369
|
+
class e {
|
|
370
|
+
constructor(E, C) {
|
|
371
|
+
if (C = h(C), E instanceof e)
|
|
372
|
+
return E.loose === !!C.loose && E.includePrerelease === !!C.includePrerelease ? E : new e(E.raw, C);
|
|
373
|
+
if (E instanceof u)
|
|
374
|
+
return this.raw = E.value, this.set = [[E]], this.formatted = void 0, this;
|
|
375
|
+
if (this.options = C, this.loose = !!C.loose, this.includePrerelease = !!C.includePrerelease, this.raw = E.trim().replace(s, " "), this.set = this.raw.split("||").map((w) => this.parseRange(w.trim())).filter((w) => w.length), !this.set.length)
|
|
376
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
377
|
+
if (this.set.length > 1) {
|
|
378
|
+
const w = this.set[0];
|
|
379
|
+
if (this.set = this.set.filter((I) => !H(I[0])), this.set.length === 0)
|
|
380
|
+
this.set = [w];
|
|
381
|
+
else if (this.set.length > 1) {
|
|
382
|
+
for (const I of this.set)
|
|
383
|
+
if (I.length === 1 && Y(I[0])) {
|
|
384
|
+
this.set = [I];
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
this.formatted = void 0;
|
|
390
|
+
}
|
|
391
|
+
get range() {
|
|
392
|
+
if (this.formatted === void 0) {
|
|
393
|
+
this.formatted = "";
|
|
394
|
+
for (let E = 0; E < this.set.length; E++) {
|
|
395
|
+
E > 0 && (this.formatted += "||");
|
|
396
|
+
const C = this.set[E];
|
|
397
|
+
for (let w = 0; w < C.length; w++)
|
|
398
|
+
w > 0 && (this.formatted += " "), this.formatted += C[w].toString().trim();
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return this.formatted;
|
|
402
|
+
}
|
|
403
|
+
format() {
|
|
404
|
+
return this.range;
|
|
405
|
+
}
|
|
406
|
+
toString() {
|
|
407
|
+
return this.range;
|
|
408
|
+
}
|
|
409
|
+
parseRange(E) {
|
|
410
|
+
const w = ((this.options.includePrerelease && $) | (this.options.loose && T)) + ":" + E, I = a.get(w);
|
|
411
|
+
if (I)
|
|
412
|
+
return I;
|
|
413
|
+
const y = this.options.loose, D = y ? l[o.HYPHENRANGELOOSE] : l[o.HYPHENRANGE];
|
|
414
|
+
E = E.replace(D, ue(this.options.includePrerelease)), m("hyphen replace", E), E = E.replace(l[o.COMPARATORTRIM], v), m("comparator trim", E), E = E.replace(l[o.TILDETRIM], R), m("tilde trim", E), E = E.replace(l[o.CARETTRIM], b), m("caret trim", E);
|
|
415
|
+
let _ = E.split(" ").map((k) => V(k, this.options)).join(" ").split(/\s+/).map((k) => ve(k, this.options));
|
|
416
|
+
y && (_ = _.filter((k) => (m("loose invalid filter", k, this.options), !!k.match(l[o.COMPARATORLOOSE])))), m("range list", _);
|
|
417
|
+
const N = /* @__PURE__ */ new Map(), X = _.map((k) => new u(k, this.options));
|
|
418
|
+
for (const k of X) {
|
|
419
|
+
if (H(k))
|
|
420
|
+
return [k];
|
|
421
|
+
N.set(k.value, k);
|
|
422
|
+
}
|
|
423
|
+
N.size > 1 && N.has("") && N.delete("");
|
|
424
|
+
const K = [...N.values()];
|
|
425
|
+
return a.set(w, K), K;
|
|
426
|
+
}
|
|
427
|
+
intersects(E, C) {
|
|
428
|
+
if (!(E instanceof e))
|
|
429
|
+
throw new TypeError("a Range is required");
|
|
430
|
+
return this.set.some((w) => Q(w, C) && E.set.some((I) => Q(I, C) && w.every((y) => I.every((D) => y.intersects(D, C)))));
|
|
431
|
+
}
|
|
432
|
+
// if ANY of the sets match ALL of its comparators, then pass
|
|
433
|
+
test(E) {
|
|
434
|
+
if (!E)
|
|
435
|
+
return !1;
|
|
436
|
+
if (typeof E == "string")
|
|
437
|
+
try {
|
|
438
|
+
E = new O(E, this.options);
|
|
439
|
+
} catch {
|
|
440
|
+
return !1;
|
|
441
|
+
}
|
|
442
|
+
for (let C = 0; C < this.set.length; C++)
|
|
443
|
+
if (Le(this.set[C], E, this.options))
|
|
444
|
+
return !0;
|
|
445
|
+
return !1;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
ft = e;
|
|
449
|
+
const n = Os, a = new n(), h = wt, u = Qe(), m = Ze, O = z, {
|
|
450
|
+
safeRe: l,
|
|
451
|
+
t: o,
|
|
452
|
+
comparatorTrimReplace: v,
|
|
453
|
+
tildeTrimReplace: R,
|
|
454
|
+
caretTrimReplace: b
|
|
455
|
+
} = Ae, { FLAG_INCLUDE_PRERELEASE: $, FLAG_LOOSE: T } = ze, H = (g) => g.value === "<0.0.0-0", Y = (g) => g.value === "", Q = (g, E) => {
|
|
456
|
+
let C = !0;
|
|
457
|
+
const w = g.slice();
|
|
458
|
+
let I = w.pop();
|
|
459
|
+
for (; C && w.length; )
|
|
460
|
+
C = w.every((y) => I.intersects(y, E)), I = w.pop();
|
|
461
|
+
return C;
|
|
462
|
+
}, V = (g, E) => (m("comp", g, E), g = q(g, E), m("caret", g), g = me(g, E), m("tildes", g), g = Se(g, E), m("xrange", g), g = ce(g, E), m("stars", g), g), j = (g) => !g || g.toLowerCase() === "x" || g === "*", me = (g, E) => g.trim().split(/\s+/).map((C) => $e(C, E)).join(" "), $e = (g, E) => {
|
|
463
|
+
const C = E.loose ? l[o.TILDELOOSE] : l[o.TILDE];
|
|
464
|
+
return g.replace(C, (w, I, y, D, _) => {
|
|
465
|
+
m("tilde", g, w, I, y, D, _);
|
|
466
|
+
let N;
|
|
467
|
+
return j(I) ? N = "" : j(y) ? N = `>=${I}.0.0 <${+I + 1}.0.0-0` : j(D) ? N = `>=${I}.${y}.0 <${I}.${+y + 1}.0-0` : _ ? (m("replaceTilde pr", _), N = `>=${I}.${y}.${D}-${_} <${I}.${+y + 1}.0-0`) : N = `>=${I}.${y}.${D} <${I}.${+y + 1}.0-0`, m("tilde return", N), N;
|
|
468
|
+
});
|
|
469
|
+
}, q = (g, E) => g.trim().split(/\s+/).map((C) => oe(C, E)).join(" "), oe = (g, E) => {
|
|
470
|
+
m("caret", g, E);
|
|
471
|
+
const C = E.loose ? l[o.CARETLOOSE] : l[o.CARET], w = E.includePrerelease ? "-0" : "";
|
|
472
|
+
return g.replace(C, (I, y, D, _, N) => {
|
|
473
|
+
m("caret", g, I, y, D, _, N);
|
|
474
|
+
let X;
|
|
475
|
+
return j(y) ? X = "" : j(D) ? X = `>=${y}.0.0${w} <${+y + 1}.0.0-0` : j(_) ? y === "0" ? X = `>=${y}.${D}.0${w} <${y}.${+D + 1}.0-0` : X = `>=${y}.${D}.0${w} <${+y + 1}.0.0-0` : N ? (m("replaceCaret pr", N), y === "0" ? D === "0" ? X = `>=${y}.${D}.${_}-${N} <${y}.${D}.${+_ + 1}-0` : X = `>=${y}.${D}.${_}-${N} <${y}.${+D + 1}.0-0` : X = `>=${y}.${D}.${_}-${N} <${+y + 1}.0.0-0`) : (m("no pr"), y === "0" ? D === "0" ? X = `>=${y}.${D}.${_}${w} <${y}.${D}.${+_ + 1}-0` : X = `>=${y}.${D}.${_}${w} <${y}.${+D + 1}.0-0` : X = `>=${y}.${D}.${_} <${+y + 1}.0.0-0`), m("caret return", X), X;
|
|
476
|
+
});
|
|
477
|
+
}, Se = (g, E) => (m("replaceXRanges", g, E), g.split(/\s+/).map((C) => le(C, E)).join(" ")), le = (g, E) => {
|
|
478
|
+
g = g.trim();
|
|
479
|
+
const C = E.loose ? l[o.XRANGELOOSE] : l[o.XRANGE];
|
|
480
|
+
return g.replace(C, (w, I, y, D, _, N) => {
|
|
481
|
+
m("xRange", g, w, I, y, D, _, N);
|
|
482
|
+
const X = j(y), K = X || j(D), k = K || j(_), fe = k;
|
|
483
|
+
return I === "=" && fe && (I = ""), N = E.includePrerelease ? "-0" : "", X ? I === ">" || I === "<" ? w = "<0.0.0-0" : w = "*" : I && fe ? (K && (D = 0), _ = 0, I === ">" ? (I = ">=", K ? (y = +y + 1, D = 0, _ = 0) : (D = +D + 1, _ = 0)) : I === "<=" && (I = "<", K ? y = +y + 1 : D = +D + 1), I === "<" && (N = "-0"), w = `${I + y}.${D}.${_}${N}`) : K ? w = `>=${y}.0.0${N} <${+y + 1}.0.0-0` : k && (w = `>=${y}.${D}.0${N} <${y}.${+D + 1}.0-0`), m("xRange return", w), w;
|
|
484
|
+
});
|
|
485
|
+
}, ce = (g, E) => (m("replaceStars", g, E), g.trim().replace(l[o.STAR], "")), ve = (g, E) => (m("replaceGTE0", g, E), g.trim().replace(l[E.includePrerelease ? o.GTE0PRE : o.GTE0], "")), ue = (g) => (E, C, w, I, y, D, _, N, X, K, k, fe) => (j(w) ? C = "" : j(I) ? C = `>=${w}.0.0${g ? "-0" : ""}` : j(y) ? C = `>=${w}.${I}.0${g ? "-0" : ""}` : D ? C = `>=${C}` : C = `>=${C}${g ? "-0" : ""}`, j(X) ? N = "" : j(K) ? N = `<${+X + 1}.0.0-0` : j(k) ? N = `<${X}.${+K + 1}.0-0` : fe ? N = `<=${X}.${K}.${k}-${fe}` : g ? N = `<${X}.${K}.${+k + 1}-0` : N = `<=${N}`, `${C} ${N}`.trim()), Le = (g, E, C) => {
|
|
486
|
+
for (let w = 0; w < g.length; w++)
|
|
487
|
+
if (!g[w].test(E))
|
|
488
|
+
return !1;
|
|
489
|
+
if (E.prerelease.length && !C.includePrerelease) {
|
|
490
|
+
for (let w = 0; w < g.length; w++)
|
|
491
|
+
if (m(g[w].semver), g[w].semver !== u.ANY && g[w].semver.prerelease.length > 0) {
|
|
492
|
+
const I = g[w].semver;
|
|
493
|
+
if (I.major === E.major && I.minor === E.minor && I.patch === E.patch)
|
|
494
|
+
return !0;
|
|
495
|
+
}
|
|
496
|
+
return !1;
|
|
497
|
+
}
|
|
498
|
+
return !0;
|
|
499
|
+
};
|
|
500
|
+
return ft;
|
|
501
|
+
}
|
|
502
|
+
var pt, er;
|
|
503
|
+
function Qe() {
|
|
504
|
+
if (er) return pt;
|
|
505
|
+
er = 1;
|
|
506
|
+
const s = Symbol("SemVer ANY");
|
|
507
|
+
class e {
|
|
508
|
+
static get ANY() {
|
|
509
|
+
return s;
|
|
510
|
+
}
|
|
511
|
+
constructor(v, R) {
|
|
512
|
+
if (R = n(R), v instanceof e) {
|
|
513
|
+
if (v.loose === !!R.loose)
|
|
514
|
+
return v;
|
|
515
|
+
v = v.value;
|
|
516
|
+
}
|
|
517
|
+
v = v.trim().split(/\s+/).join(" "), m("comparator", v, R), this.options = R, this.loose = !!R.loose, this.parse(v), this.semver === s ? this.value = "" : this.value = this.operator + this.semver.version, m("comp", this);
|
|
518
|
+
}
|
|
519
|
+
parse(v) {
|
|
520
|
+
const R = this.options.loose ? a[h.COMPARATORLOOSE] : a[h.COMPARATOR], b = v.match(R);
|
|
521
|
+
if (!b)
|
|
522
|
+
throw new TypeError(`Invalid comparator: ${v}`);
|
|
523
|
+
this.operator = b[1] !== void 0 ? b[1] : "", this.operator === "=" && (this.operator = ""), b[2] ? this.semver = new O(b[2], this.options.loose) : this.semver = s;
|
|
524
|
+
}
|
|
525
|
+
toString() {
|
|
526
|
+
return this.value;
|
|
527
|
+
}
|
|
528
|
+
test(v) {
|
|
529
|
+
if (m("Comparator.test", v, this.options.loose), this.semver === s || v === s)
|
|
530
|
+
return !0;
|
|
531
|
+
if (typeof v == "string")
|
|
532
|
+
try {
|
|
533
|
+
v = new O(v, this.options);
|
|
534
|
+
} catch {
|
|
535
|
+
return !1;
|
|
536
|
+
}
|
|
537
|
+
return u(v, this.operator, this.semver, this.options);
|
|
538
|
+
}
|
|
539
|
+
intersects(v, R) {
|
|
540
|
+
if (!(v instanceof e))
|
|
541
|
+
throw new TypeError("a Comparator is required");
|
|
542
|
+
return this.operator === "" ? this.value === "" ? !0 : new l(v.value, R).test(this.value) : v.operator === "" ? v.value === "" ? !0 : new l(this.value, R).test(v.semver) : (R = n(R), R.includePrerelease && (this.value === "<0.0.0-0" || v.value === "<0.0.0-0") || !R.includePrerelease && (this.value.startsWith("<0.0.0") || v.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && v.operator.startsWith(">") || this.operator.startsWith("<") && v.operator.startsWith("<") || this.semver.version === v.semver.version && this.operator.includes("=") && v.operator.includes("=") || u(this.semver, "<", v.semver, R) && this.operator.startsWith(">") && v.operator.startsWith("<") || u(this.semver, ">", v.semver, R) && this.operator.startsWith("<") && v.operator.startsWith(">")));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
pt = e;
|
|
546
|
+
const n = wt, { safeRe: a, t: h } = Ae, u = Tr, m = Ze, O = z, l = ae();
|
|
547
|
+
return pt;
|
|
548
|
+
}
|
|
549
|
+
const Ss = ae(), Ls = (s, e, n) => {
|
|
550
|
+
try {
|
|
551
|
+
e = new Ss(e, n);
|
|
552
|
+
} catch {
|
|
553
|
+
return !1;
|
|
554
|
+
}
|
|
555
|
+
return e.test(s);
|
|
556
|
+
};
|
|
557
|
+
var et = Ls;
|
|
558
|
+
const Ds = ae(), Ns = (s, e) => new Ds(s, e).set.map((n) => n.map((a) => a.value).join(" ").trim().split(" "));
|
|
559
|
+
var bs = Ns;
|
|
560
|
+
const As = z, Ps = ae(), _s = (s, e, n) => {
|
|
561
|
+
let a = null, h = null, u = null;
|
|
562
|
+
try {
|
|
563
|
+
u = new Ps(e, n);
|
|
564
|
+
} catch {
|
|
565
|
+
return null;
|
|
566
|
+
}
|
|
567
|
+
return s.forEach((m) => {
|
|
568
|
+
u.test(m) && (!a || h.compare(m) === -1) && (a = m, h = new As(a, n));
|
|
569
|
+
}), a;
|
|
570
|
+
};
|
|
571
|
+
var ks = _s;
|
|
572
|
+
const Ms = z, Us = ae(), Fs = (s, e, n) => {
|
|
573
|
+
let a = null, h = null, u = null;
|
|
574
|
+
try {
|
|
575
|
+
u = new Us(e, n);
|
|
576
|
+
} catch {
|
|
577
|
+
return null;
|
|
578
|
+
}
|
|
579
|
+
return s.forEach((m) => {
|
|
580
|
+
u.test(m) && (!a || h.compare(m) === 1) && (a = m, h = new Ms(a, n));
|
|
581
|
+
}), a;
|
|
582
|
+
};
|
|
583
|
+
var js = Fs;
|
|
584
|
+
const ht = z, Xs = ae(), tr = Je, xs = (s, e) => {
|
|
585
|
+
s = new Xs(s, e);
|
|
586
|
+
let n = new ht("0.0.0");
|
|
587
|
+
if (s.test(n) || (n = new ht("0.0.0-0"), s.test(n)))
|
|
588
|
+
return n;
|
|
589
|
+
n = null;
|
|
590
|
+
for (let a = 0; a < s.set.length; ++a) {
|
|
591
|
+
const h = s.set[a];
|
|
592
|
+
let u = null;
|
|
593
|
+
h.forEach((m) => {
|
|
594
|
+
const O = new ht(m.semver.version);
|
|
595
|
+
switch (m.operator) {
|
|
596
|
+
case ">":
|
|
597
|
+
O.prerelease.length === 0 ? O.patch++ : O.prerelease.push(0), O.raw = O.format();
|
|
598
|
+
case "":
|
|
599
|
+
case ">=":
|
|
600
|
+
(!u || tr(O, u)) && (u = O);
|
|
601
|
+
break;
|
|
602
|
+
case "<":
|
|
603
|
+
case "<=":
|
|
604
|
+
break;
|
|
605
|
+
default:
|
|
606
|
+
throw new Error(`Unexpected operation: ${m.operator}`);
|
|
607
|
+
}
|
|
608
|
+
}), u && (!n || tr(n, u)) && (n = u);
|
|
609
|
+
}
|
|
610
|
+
return n && s.test(n) ? n : null;
|
|
611
|
+
};
|
|
612
|
+
var Gs = xs;
|
|
613
|
+
const Ws = ae(), Vs = (s, e) => {
|
|
614
|
+
try {
|
|
615
|
+
return new Ws(s, e).range || "*";
|
|
616
|
+
} catch {
|
|
617
|
+
return null;
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
var Ys = Vs;
|
|
621
|
+
const Ks = z, Cr = Qe(), { ANY: Hs } = Cr, qs = ae(), Bs = et, rr = Je, nr = Rt, zs = It, Zs = $t, Js = (s, e, n, a) => {
|
|
622
|
+
s = new Ks(s, a), e = new qs(e, a);
|
|
623
|
+
let h, u, m, O, l;
|
|
624
|
+
switch (n) {
|
|
625
|
+
case ">":
|
|
626
|
+
h = rr, u = zs, m = nr, O = ">", l = ">=";
|
|
627
|
+
break;
|
|
628
|
+
case "<":
|
|
629
|
+
h = nr, u = Zs, m = rr, O = "<", l = "<=";
|
|
630
|
+
break;
|
|
631
|
+
default:
|
|
632
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
633
|
+
}
|
|
634
|
+
if (Bs(s, e, a))
|
|
635
|
+
return !1;
|
|
636
|
+
for (let o = 0; o < e.set.length; ++o) {
|
|
637
|
+
const v = e.set[o];
|
|
638
|
+
let R = null, b = null;
|
|
639
|
+
if (v.forEach(($) => {
|
|
640
|
+
$.semver === Hs && ($ = new Cr(">=0.0.0")), R = R || $, b = b || $, h($.semver, R.semver, a) ? R = $ : m($.semver, b.semver, a) && (b = $);
|
|
641
|
+
}), R.operator === O || R.operator === l || (!b.operator || b.operator === O) && u(s, b.semver))
|
|
642
|
+
return !1;
|
|
643
|
+
if (b.operator === l && m(s, b.semver))
|
|
644
|
+
return !1;
|
|
645
|
+
}
|
|
646
|
+
return !0;
|
|
647
|
+
};
|
|
648
|
+
var Tt = Js;
|
|
649
|
+
const Qs = Tt, ea = (s, e, n) => Qs(s, e, ">", n);
|
|
650
|
+
var ta = ea;
|
|
651
|
+
const ra = Tt, na = (s, e, n) => ra(s, e, "<", n);
|
|
652
|
+
var sa = na;
|
|
653
|
+
const sr = ae(), aa = (s, e, n) => (s = new sr(s, n), e = new sr(e, n), s.intersects(e, n));
|
|
654
|
+
var oa = aa;
|
|
655
|
+
const ia = et, la = se;
|
|
656
|
+
var ca = (s, e, n) => {
|
|
657
|
+
const a = [];
|
|
658
|
+
let h = null, u = null;
|
|
659
|
+
const m = s.sort((v, R) => la(v, R, n));
|
|
660
|
+
for (const v of m)
|
|
661
|
+
ia(v, e, n) ? (u = v, h || (h = v)) : (u && a.push([h, u]), u = null, h = null);
|
|
662
|
+
h && a.push([h, null]);
|
|
663
|
+
const O = [];
|
|
664
|
+
for (const [v, R] of a)
|
|
665
|
+
v === R ? O.push(v) : !R && v === m[0] ? O.push("*") : R ? v === m[0] ? O.push(`<=${R}`) : O.push(`${v} - ${R}`) : O.push(`>=${v}`);
|
|
666
|
+
const l = O.join(" || "), o = typeof e.raw == "string" ? e.raw : String(e);
|
|
667
|
+
return l.length < o.length ? l : e;
|
|
668
|
+
};
|
|
669
|
+
const ar = ae(), Ct = Qe(), { ANY: dt } = Ct, Ne = et, Ot = se, ua = (s, e, n = {}) => {
|
|
670
|
+
if (s === e)
|
|
671
|
+
return !0;
|
|
672
|
+
s = new ar(s, n), e = new ar(e, n);
|
|
673
|
+
let a = !1;
|
|
674
|
+
e: for (const h of s.set) {
|
|
675
|
+
for (const u of e.set) {
|
|
676
|
+
const m = pa(h, u, n);
|
|
677
|
+
if (a = a || m !== null, m)
|
|
678
|
+
continue e;
|
|
679
|
+
}
|
|
680
|
+
if (a)
|
|
681
|
+
return !1;
|
|
682
|
+
}
|
|
683
|
+
return !0;
|
|
684
|
+
}, fa = [new Ct(">=0.0.0-0")], or = [new Ct(">=0.0.0")], pa = (s, e, n) => {
|
|
685
|
+
if (s === e)
|
|
686
|
+
return !0;
|
|
687
|
+
if (s.length === 1 && s[0].semver === dt) {
|
|
688
|
+
if (e.length === 1 && e[0].semver === dt)
|
|
689
|
+
return !0;
|
|
690
|
+
n.includePrerelease ? s = fa : s = or;
|
|
691
|
+
}
|
|
692
|
+
if (e.length === 1 && e[0].semver === dt) {
|
|
693
|
+
if (n.includePrerelease)
|
|
694
|
+
return !0;
|
|
695
|
+
e = or;
|
|
696
|
+
}
|
|
697
|
+
const a = /* @__PURE__ */ new Set();
|
|
698
|
+
let h, u;
|
|
699
|
+
for (const $ of s)
|
|
700
|
+
$.operator === ">" || $.operator === ">=" ? h = ir(h, $, n) : $.operator === "<" || $.operator === "<=" ? u = lr(u, $, n) : a.add($.semver);
|
|
701
|
+
if (a.size > 1)
|
|
702
|
+
return null;
|
|
703
|
+
let m;
|
|
704
|
+
if (h && u) {
|
|
705
|
+
if (m = Ot(h.semver, u.semver, n), m > 0)
|
|
706
|
+
return null;
|
|
707
|
+
if (m === 0 && (h.operator !== ">=" || u.operator !== "<="))
|
|
708
|
+
return null;
|
|
709
|
+
}
|
|
710
|
+
for (const $ of a) {
|
|
711
|
+
if (h && !Ne($, String(h), n) || u && !Ne($, String(u), n))
|
|
712
|
+
return null;
|
|
713
|
+
for (const T of e)
|
|
714
|
+
if (!Ne($, String(T), n))
|
|
715
|
+
return !1;
|
|
716
|
+
return !0;
|
|
717
|
+
}
|
|
718
|
+
let O, l, o, v, R = u && !n.includePrerelease && u.semver.prerelease.length ? u.semver : !1, b = h && !n.includePrerelease && h.semver.prerelease.length ? h.semver : !1;
|
|
719
|
+
R && R.prerelease.length === 1 && u.operator === "<" && R.prerelease[0] === 0 && (R = !1);
|
|
720
|
+
for (const $ of e) {
|
|
721
|
+
if (v = v || $.operator === ">" || $.operator === ">=", o = o || $.operator === "<" || $.operator === "<=", h) {
|
|
722
|
+
if (b && $.semver.prerelease && $.semver.prerelease.length && $.semver.major === b.major && $.semver.minor === b.minor && $.semver.patch === b.patch && (b = !1), $.operator === ">" || $.operator === ">=") {
|
|
723
|
+
if (O = ir(h, $, n), O === $ && O !== h)
|
|
724
|
+
return !1;
|
|
725
|
+
} else if (h.operator === ">=" && !Ne(h.semver, String($), n))
|
|
726
|
+
return !1;
|
|
727
|
+
}
|
|
728
|
+
if (u) {
|
|
729
|
+
if (R && $.semver.prerelease && $.semver.prerelease.length && $.semver.major === R.major && $.semver.minor === R.minor && $.semver.patch === R.patch && (R = !1), $.operator === "<" || $.operator === "<=") {
|
|
730
|
+
if (l = lr(u, $, n), l === $ && l !== u)
|
|
731
|
+
return !1;
|
|
732
|
+
} else if (u.operator === "<=" && !Ne(u.semver, String($), n))
|
|
733
|
+
return !1;
|
|
734
|
+
}
|
|
735
|
+
if (!$.operator && (u || h) && m !== 0)
|
|
736
|
+
return !1;
|
|
737
|
+
}
|
|
738
|
+
return !(h && o && !u && m !== 0 || u && v && !h && m !== 0 || b || R);
|
|
739
|
+
}, ir = (s, e, n) => {
|
|
740
|
+
if (!s)
|
|
741
|
+
return e;
|
|
742
|
+
const a = Ot(s.semver, e.semver, n);
|
|
743
|
+
return a > 0 ? s : a < 0 || e.operator === ">" && s.operator === ">=" ? e : s;
|
|
744
|
+
}, lr = (s, e, n) => {
|
|
745
|
+
if (!s)
|
|
746
|
+
return e;
|
|
747
|
+
const a = Ot(s.semver, e.semver, n);
|
|
748
|
+
return a < 0 ? s : a > 0 || e.operator === "<" && s.operator === "<=" ? e : s;
|
|
749
|
+
};
|
|
750
|
+
var ha = ua;
|
|
751
|
+
const mt = Ae, cr = ze, da = z, ur = Rr, ma = Oe, Ea = $n, va = Cn, ga = Sn, wa = Dn, ya = An, Ra = kn, $a = Fn, Ia = xn, Ta = se, Ca = Yn, Oa = qn, Sa = yt, La = Jn, Da = ts, Na = Je, ba = Rt, Aa = $r, Pa = Ir, _a = $t, ka = It, Ma = Tr, Ua = Ts, Fa = Qe(), ja = ae(), Xa = et, xa = bs, Ga = ks, Wa = js, Va = Gs, Ya = Ys, Ka = Tt, Ha = ta, qa = sa, Ba = oa, za = ca, Za = ha;
|
|
752
|
+
var Ja = {
|
|
753
|
+
parse: ma,
|
|
754
|
+
valid: Ea,
|
|
755
|
+
clean: va,
|
|
756
|
+
inc: ga,
|
|
757
|
+
diff: wa,
|
|
758
|
+
major: ya,
|
|
759
|
+
minor: Ra,
|
|
760
|
+
patch: $a,
|
|
761
|
+
prerelease: Ia,
|
|
762
|
+
compare: Ta,
|
|
763
|
+
rcompare: Ca,
|
|
764
|
+
compareLoose: Oa,
|
|
765
|
+
compareBuild: Sa,
|
|
766
|
+
sort: La,
|
|
767
|
+
rsort: Da,
|
|
768
|
+
gt: Na,
|
|
769
|
+
lt: ba,
|
|
770
|
+
eq: Aa,
|
|
771
|
+
neq: Pa,
|
|
772
|
+
gte: _a,
|
|
773
|
+
lte: ka,
|
|
774
|
+
cmp: Ma,
|
|
775
|
+
coerce: Ua,
|
|
776
|
+
Comparator: Fa,
|
|
777
|
+
Range: ja,
|
|
778
|
+
satisfies: Xa,
|
|
779
|
+
toComparators: xa,
|
|
780
|
+
maxSatisfying: Ga,
|
|
781
|
+
minSatisfying: Wa,
|
|
782
|
+
minVersion: Va,
|
|
783
|
+
validRange: Ya,
|
|
784
|
+
outside: Ka,
|
|
785
|
+
gtr: Ha,
|
|
786
|
+
ltr: qa,
|
|
787
|
+
intersects: Ba,
|
|
788
|
+
simplifyRange: za,
|
|
789
|
+
subset: Za,
|
|
790
|
+
SemVer: da,
|
|
791
|
+
re: mt.re,
|
|
792
|
+
src: mt.src,
|
|
793
|
+
tokens: mt.t,
|
|
794
|
+
SEMVER_SPEC_VERSION: cr.SEMVER_SPEC_VERSION,
|
|
795
|
+
RELEASE_TYPES: cr.RELEASE_TYPES,
|
|
796
|
+
compareIdentifiers: ur.compareIdentifiers,
|
|
797
|
+
rcompareIdentifiers: ur.rcompareIdentifiers
|
|
798
|
+
};
|
|
799
|
+
const fr = /* @__PURE__ */ an(Ja);
|
|
800
|
+
var gt = { exports: {} }, G = {};
|
|
801
|
+
/**
|
|
802
|
+
* @license React
|
|
803
|
+
* react-dom-test-utils.production.min.js
|
|
804
|
+
*
|
|
805
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
806
|
+
*
|
|
807
|
+
* This source code is licensed under the MIT license found in the
|
|
808
|
+
* LICENSE file in the root directory of this source tree.
|
|
809
|
+
*/
|
|
810
|
+
var pr;
|
|
811
|
+
function Qa() {
|
|
812
|
+
if (pr) return G;
|
|
813
|
+
pr = 1;
|
|
814
|
+
var s = Re, e = gr;
|
|
815
|
+
function n(r) {
|
|
816
|
+
var d = r, f = r;
|
|
817
|
+
if (r.alternate) for (; d.return; ) d = d.return;
|
|
818
|
+
else {
|
|
819
|
+
r = d;
|
|
820
|
+
do
|
|
821
|
+
d = r, d.flags & 4098 && (f = d.return), r = d.return;
|
|
822
|
+
while (r);
|
|
823
|
+
}
|
|
824
|
+
return d.tag === 3 ? f : null;
|
|
825
|
+
}
|
|
826
|
+
function a(r) {
|
|
827
|
+
if (n(r) !== r) throw Error("Unable to find node on an unmounted component.");
|
|
828
|
+
}
|
|
829
|
+
function h(r) {
|
|
830
|
+
var d = r.alternate;
|
|
831
|
+
if (!d) {
|
|
832
|
+
if (d = n(r), d === null) throw Error("Unable to find node on an unmounted component.");
|
|
833
|
+
return d !== r ? null : r;
|
|
834
|
+
}
|
|
835
|
+
for (var f = r, S = d; ; ) {
|
|
836
|
+
var M = f.return;
|
|
837
|
+
if (M === null) break;
|
|
838
|
+
var U = M.alternate;
|
|
839
|
+
if (U === null) {
|
|
840
|
+
if (S = M.return, S !== null) {
|
|
841
|
+
f = S;
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
if (M.child === U.child) {
|
|
847
|
+
for (U = M.child; U; ) {
|
|
848
|
+
if (U === f) return a(M), r;
|
|
849
|
+
if (U === S) return a(M), d;
|
|
850
|
+
U = U.sibling;
|
|
851
|
+
}
|
|
852
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
853
|
+
}
|
|
854
|
+
if (f.return !== S.return) f = M, S = U;
|
|
855
|
+
else {
|
|
856
|
+
for (var A = !1, F = M.child; F; ) {
|
|
857
|
+
if (F === f) {
|
|
858
|
+
A = !0, f = M, S = U;
|
|
859
|
+
break;
|
|
860
|
+
}
|
|
861
|
+
if (F === S) {
|
|
862
|
+
A = !0, S = M, f = U;
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
F = F.sibling;
|
|
866
|
+
}
|
|
867
|
+
if (!A) {
|
|
868
|
+
for (F = U.child; F; ) {
|
|
869
|
+
if (F === f) {
|
|
870
|
+
A = !0, f = U, S = M;
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
if (F === S) {
|
|
874
|
+
A = !0, S = U, f = M;
|
|
875
|
+
break;
|
|
876
|
+
}
|
|
877
|
+
F = F.sibling;
|
|
878
|
+
}
|
|
879
|
+
if (!A) throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
if (f.alternate !== S) throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
|
|
883
|
+
}
|
|
884
|
+
if (f.tag !== 3) throw Error("Unable to find node on an unmounted component.");
|
|
885
|
+
return f.stateNode.current === f ? r : d;
|
|
886
|
+
}
|
|
887
|
+
var u = Object.assign;
|
|
888
|
+
function m(r) {
|
|
889
|
+
var d = r.keyCode;
|
|
890
|
+
return "charCode" in r ? (r = r.charCode, r === 0 && d === 13 && (r = 13)) : r = d, r === 10 && (r = 13), 32 <= r || r === 13 ? r : 0;
|
|
891
|
+
}
|
|
892
|
+
function O() {
|
|
893
|
+
return !0;
|
|
894
|
+
}
|
|
895
|
+
function l() {
|
|
896
|
+
return !1;
|
|
897
|
+
}
|
|
898
|
+
function o(r) {
|
|
899
|
+
function d(f, S, M, U, A) {
|
|
900
|
+
this._reactName = f, this._targetInst = M, this.type = S, this.nativeEvent = U, this.target = A, this.currentTarget = null;
|
|
901
|
+
for (var F in r) r.hasOwnProperty(F) && (f = r[F], this[F] = f ? f(U) : U[F]);
|
|
902
|
+
return this.isDefaultPrevented = (U.defaultPrevented != null ? U.defaultPrevented : U.returnValue === !1) ? O : l, this.isPropagationStopped = l, this;
|
|
903
|
+
}
|
|
904
|
+
return u(d.prototype, { preventDefault: function() {
|
|
905
|
+
this.defaultPrevented = !0;
|
|
906
|
+
var f = this.nativeEvent;
|
|
907
|
+
f && (f.preventDefault ? f.preventDefault() : typeof f.returnValue != "unknown" && (f.returnValue = !1), this.isDefaultPrevented = O);
|
|
908
|
+
}, stopPropagation: function() {
|
|
909
|
+
var f = this.nativeEvent;
|
|
910
|
+
f && (f.stopPropagation ? f.stopPropagation() : typeof f.cancelBubble != "unknown" && (f.cancelBubble = !0), this.isPropagationStopped = O);
|
|
911
|
+
}, persist: function() {
|
|
912
|
+
}, isPersistent: O }), d;
|
|
913
|
+
}
|
|
914
|
+
var v = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(r) {
|
|
915
|
+
return r.timeStamp || Date.now();
|
|
916
|
+
}, defaultPrevented: 0, isTrusted: 0 }, R = o(v), b = u({}, v, { view: 0, detail: 0 });
|
|
917
|
+
o(b);
|
|
918
|
+
var $, T, H, Y = u({}, b, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: ce, button: 0, buttons: 0, relatedTarget: function(r) {
|
|
919
|
+
return r.relatedTarget === void 0 ? r.fromElement === r.srcElement ? r.toElement : r.fromElement : r.relatedTarget;
|
|
920
|
+
}, movementX: function(r) {
|
|
921
|
+
return "movementX" in r ? r.movementX : (r !== H && (H && r.type === "mousemove" ? ($ = r.screenX - H.screenX, T = r.screenY - H.screenY) : T = $ = 0, H = r), $);
|
|
922
|
+
}, movementY: function(r) {
|
|
923
|
+
return "movementY" in r ? r.movementY : T;
|
|
924
|
+
} });
|
|
925
|
+
o(Y);
|
|
926
|
+
var Q = u({}, Y, { dataTransfer: 0 });
|
|
927
|
+
o(Q);
|
|
928
|
+
var V = u({}, b, { relatedTarget: 0 });
|
|
929
|
+
o(V);
|
|
930
|
+
var j = u({}, v, { animationName: 0, elapsedTime: 0, pseudoElement: 0 });
|
|
931
|
+
o(j);
|
|
932
|
+
var me = u({}, v, { clipboardData: function(r) {
|
|
933
|
+
return "clipboardData" in r ? r.clipboardData : window.clipboardData;
|
|
934
|
+
} });
|
|
935
|
+
o(me);
|
|
936
|
+
var $e = u({}, v, { data: 0 });
|
|
937
|
+
o($e);
|
|
938
|
+
var q = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, oe = {
|
|
939
|
+
8: "Backspace",
|
|
940
|
+
9: "Tab",
|
|
941
|
+
12: "Clear",
|
|
942
|
+
13: "Enter",
|
|
943
|
+
16: "Shift",
|
|
944
|
+
17: "Control",
|
|
945
|
+
18: "Alt",
|
|
946
|
+
19: "Pause",
|
|
947
|
+
20: "CapsLock",
|
|
948
|
+
27: "Escape",
|
|
949
|
+
32: " ",
|
|
950
|
+
33: "PageUp",
|
|
951
|
+
34: "PageDown",
|
|
952
|
+
35: "End",
|
|
953
|
+
36: "Home",
|
|
954
|
+
37: "ArrowLeft",
|
|
955
|
+
38: "ArrowUp",
|
|
956
|
+
39: "ArrowRight",
|
|
957
|
+
40: "ArrowDown",
|
|
958
|
+
45: "Insert",
|
|
959
|
+
46: "Delete",
|
|
960
|
+
112: "F1",
|
|
961
|
+
113: "F2",
|
|
962
|
+
114: "F3",
|
|
963
|
+
115: "F4",
|
|
964
|
+
116: "F5",
|
|
965
|
+
117: "F6",
|
|
966
|
+
118: "F7",
|
|
967
|
+
119: "F8",
|
|
968
|
+
120: "F9",
|
|
969
|
+
121: "F10",
|
|
970
|
+
122: "F11",
|
|
971
|
+
123: "F12",
|
|
972
|
+
144: "NumLock",
|
|
973
|
+
145: "ScrollLock",
|
|
974
|
+
224: "Meta"
|
|
975
|
+
}, Se = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
|
|
976
|
+
function le(r) {
|
|
977
|
+
var d = this.nativeEvent;
|
|
978
|
+
return d.getModifierState ? d.getModifierState(r) : (r = Se[r]) ? !!d[r] : !1;
|
|
979
|
+
}
|
|
980
|
+
function ce() {
|
|
981
|
+
return le;
|
|
982
|
+
}
|
|
983
|
+
var ve = u({}, b, { key: function(r) {
|
|
984
|
+
if (r.key) {
|
|
985
|
+
var d = q[r.key] || r.key;
|
|
986
|
+
if (d !== "Unidentified") return d;
|
|
987
|
+
}
|
|
988
|
+
return r.type === "keypress" ? (r = m(r), r === 13 ? "Enter" : String.fromCharCode(r)) : r.type === "keydown" || r.type === "keyup" ? oe[r.keyCode] || "Unidentified" : "";
|
|
989
|
+
}, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: ce, charCode: function(r) {
|
|
990
|
+
return r.type === "keypress" ? m(r) : 0;
|
|
991
|
+
}, keyCode: function(r) {
|
|
992
|
+
return r.type === "keydown" || r.type === "keyup" ? r.keyCode : 0;
|
|
993
|
+
}, which: function(r) {
|
|
994
|
+
return r.type === "keypress" ? m(r) : r.type === "keydown" || r.type === "keyup" ? r.keyCode : 0;
|
|
995
|
+
} });
|
|
996
|
+
o(ve);
|
|
997
|
+
var ue = u({}, Y, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 });
|
|
998
|
+
o(ue);
|
|
999
|
+
var Le = u({}, b, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: ce });
|
|
1000
|
+
o(Le);
|
|
1001
|
+
var g = u({}, v, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 });
|
|
1002
|
+
o(g);
|
|
1003
|
+
var E = u({}, Y, { deltaX: function(r) {
|
|
1004
|
+
return "deltaX" in r ? r.deltaX : "wheelDeltaX" in r ? -r.wheelDeltaX : 0;
|
|
1005
|
+
}, deltaY: function(r) {
|
|
1006
|
+
return "deltaY" in r ? r.deltaY : "wheelDeltaY" in r ? -r.wheelDeltaY : "wheelDelta" in r ? -r.wheelDelta : 0;
|
|
1007
|
+
}, deltaZ: 0, deltaMode: 0 });
|
|
1008
|
+
o(E);
|
|
1009
|
+
function C(r, d, f, S, M, U, A, F, Z) {
|
|
1010
|
+
var ne = Array.prototype.slice.call(arguments, 3);
|
|
1011
|
+
try {
|
|
1012
|
+
d.apply(f, ne);
|
|
1013
|
+
} catch (it) {
|
|
1014
|
+
this.onError(it);
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
var w = !1, I = null, y = !1, D = null, _ = { onError: function(r) {
|
|
1018
|
+
w = !0, I = r;
|
|
1019
|
+
} };
|
|
1020
|
+
function N(r, d, f, S, M, U, A, F, Z) {
|
|
1021
|
+
w = !1, I = null, C.apply(_, arguments);
|
|
1022
|
+
}
|
|
1023
|
+
function X(r, d, f, S, M, U, A, F, Z) {
|
|
1024
|
+
if (N.apply(this, arguments), w) {
|
|
1025
|
+
if (w) {
|
|
1026
|
+
var ne = I;
|
|
1027
|
+
w = !1, I = null;
|
|
1028
|
+
} else throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
|
|
1029
|
+
y || (y = !0, D = ne);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
var K = Array.isArray, k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events, fe = k[0], tt = k[1], rt = k[2], nt = k[3], st = k[4], Pe = s.unstable_act;
|
|
1033
|
+
function _e() {
|
|
1034
|
+
}
|
|
1035
|
+
function ke(r, d) {
|
|
1036
|
+
if (!r) return [];
|
|
1037
|
+
if (r = h(r), !r) return [];
|
|
1038
|
+
for (var f = r, S = []; ; ) {
|
|
1039
|
+
if (f.tag === 5 || f.tag === 6 || f.tag === 1 || f.tag === 0) {
|
|
1040
|
+
var M = f.stateNode;
|
|
1041
|
+
d(M) && S.push(M);
|
|
1042
|
+
}
|
|
1043
|
+
if (f.child) f.child.return = f, f = f.child;
|
|
1044
|
+
else {
|
|
1045
|
+
if (f === r) return S;
|
|
1046
|
+
for (; !f.sibling; ) {
|
|
1047
|
+
if (!f.return || f.return === r) return S;
|
|
1048
|
+
f = f.return;
|
|
1049
|
+
}
|
|
1050
|
+
f.sibling.return = f.return, f = f.sibling;
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
function re(r, d) {
|
|
1055
|
+
if (r && !r._reactInternals) {
|
|
1056
|
+
var f = String(r);
|
|
1057
|
+
throw r = K(r) ? "an array" : r && r.nodeType === 1 && r.tagName ? "a DOM node" : f === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : f, Error(d + "(...): the first argument must be a React class instance. Instead received: " + (r + "."));
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
function Ie(r) {
|
|
1061
|
+
return !(!r || r.nodeType !== 1 || !r.tagName);
|
|
1062
|
+
}
|
|
1063
|
+
function pe(r) {
|
|
1064
|
+
return Ie(r) ? !1 : r != null && typeof r.render == "function" && typeof r.setState == "function";
|
|
1065
|
+
}
|
|
1066
|
+
function ge(r, d) {
|
|
1067
|
+
return pe(r) ? r._reactInternals.type === d : !1;
|
|
1068
|
+
}
|
|
1069
|
+
function he(r, d) {
|
|
1070
|
+
return re(r, "findAllInRenderedTree"), r ? ke(r._reactInternals, d) : [];
|
|
1071
|
+
}
|
|
1072
|
+
function Te(r, d) {
|
|
1073
|
+
return re(r, "scryRenderedDOMComponentsWithClass"), he(r, function(f) {
|
|
1074
|
+
if (Ie(f)) {
|
|
1075
|
+
var S = f.className;
|
|
1076
|
+
typeof S != "string" && (S = f.getAttribute("class") || "");
|
|
1077
|
+
var M = S.split(/\s+/);
|
|
1078
|
+
if (!K(d)) {
|
|
1079
|
+
if (d === void 0) throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
|
|
1080
|
+
d = d.split(/\s+/);
|
|
1081
|
+
}
|
|
1082
|
+
return d.every(function(U) {
|
|
1083
|
+
return M.indexOf(U) !== -1;
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
return !1;
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
function Me(r, d) {
|
|
1090
|
+
return re(r, "scryRenderedDOMComponentsWithTag"), he(r, function(f) {
|
|
1091
|
+
return Ie(f) && f.tagName.toUpperCase() === d.toUpperCase();
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
function Ue(r, d) {
|
|
1095
|
+
return re(r, "scryRenderedComponentsWithType"), he(r, function(f) {
|
|
1096
|
+
return ge(f, d);
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
function Fe(r, d, f) {
|
|
1100
|
+
var S = r.type || "unknown-event";
|
|
1101
|
+
r.currentTarget = tt(f), X(S, d, void 0, r), r.currentTarget = null;
|
|
1102
|
+
}
|
|
1103
|
+
function je(r, d, f) {
|
|
1104
|
+
for (var S = []; r; ) {
|
|
1105
|
+
S.push(r);
|
|
1106
|
+
do
|
|
1107
|
+
r = r.return;
|
|
1108
|
+
while (r && r.tag !== 5);
|
|
1109
|
+
r = r || null;
|
|
1110
|
+
}
|
|
1111
|
+
for (r = S.length; 0 < r--; ) d(S[r], "captured", f);
|
|
1112
|
+
for (r = 0; r < S.length; r++) d(S[r], "bubbled", f);
|
|
1113
|
+
}
|
|
1114
|
+
function Xe(r, d) {
|
|
1115
|
+
var f = r.stateNode;
|
|
1116
|
+
if (!f) return null;
|
|
1117
|
+
var S = rt(f);
|
|
1118
|
+
if (!S) return null;
|
|
1119
|
+
f = S[d];
|
|
1120
|
+
e: switch (d) {
|
|
1121
|
+
case "onClick":
|
|
1122
|
+
case "onClickCapture":
|
|
1123
|
+
case "onDoubleClick":
|
|
1124
|
+
case "onDoubleClickCapture":
|
|
1125
|
+
case "onMouseDown":
|
|
1126
|
+
case "onMouseDownCapture":
|
|
1127
|
+
case "onMouseMove":
|
|
1128
|
+
case "onMouseMoveCapture":
|
|
1129
|
+
case "onMouseUp":
|
|
1130
|
+
case "onMouseUpCapture":
|
|
1131
|
+
case "onMouseEnter":
|
|
1132
|
+
(S = !S.disabled) || (r = r.type, S = !(r === "button" || r === "input" || r === "select" || r === "textarea")), r = !S;
|
|
1133
|
+
break e;
|
|
1134
|
+
default:
|
|
1135
|
+
r = !1;
|
|
1136
|
+
}
|
|
1137
|
+
if (r) return null;
|
|
1138
|
+
if (f && typeof f != "function") throw Error("Expected `" + d + "` listener to be a function, instead got a value of `" + typeof f + "` type.");
|
|
1139
|
+
return f;
|
|
1140
|
+
}
|
|
1141
|
+
function at(r, d, f) {
|
|
1142
|
+
r && f && f._reactName && (d = Xe(r, f._reactName)) && (f._dispatchListeners == null && (f._dispatchListeners = []), f._dispatchInstances == null && (f._dispatchInstances = []), f._dispatchListeners.push(d), f._dispatchInstances.push(r));
|
|
1143
|
+
}
|
|
1144
|
+
function De(r, d, f) {
|
|
1145
|
+
var S = f._reactName;
|
|
1146
|
+
d === "captured" && (S += "Capture"), (d = Xe(r, S)) && (f._dispatchListeners == null && (f._dispatchListeners = []), f._dispatchInstances == null && (f._dispatchInstances = []), f._dispatchListeners.push(d), f._dispatchInstances.push(r));
|
|
1147
|
+
}
|
|
1148
|
+
var xe = {}, we = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
|
|
1149
|
+
function ot(r) {
|
|
1150
|
+
return function(d, f) {
|
|
1151
|
+
if (s.isValidElement(d)) throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
|
|
1152
|
+
if (pe(d)) throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
|
|
1153
|
+
var S = "on" + r[0].toUpperCase() + r.slice(1), M = new _e();
|
|
1154
|
+
M.target = d, M.type = r.toLowerCase();
|
|
1155
|
+
var U = fe(d), A = new R(S, M.type, U, M, d);
|
|
1156
|
+
A.persist(), u(A, f), we.has(r) ? A && A._reactName && at(A._targetInst, null, A) : A && A._reactName && je(A._targetInst, De, A), e.unstable_batchedUpdates(function() {
|
|
1157
|
+
if (nt(d), A) {
|
|
1158
|
+
var F = A._dispatchListeners, Z = A._dispatchInstances;
|
|
1159
|
+
if (K(F)) for (var ne = 0; ne < F.length && !A.isPropagationStopped(); ne++) Fe(A, F[ne], Z[ne]);
|
|
1160
|
+
else F && Fe(A, F, Z);
|
|
1161
|
+
A._dispatchListeners = null, A._dispatchInstances = null, A.isPersistent() || A.constructor.release(A);
|
|
1162
|
+
}
|
|
1163
|
+
if (y) throw F = D, y = !1, D = null, F;
|
|
1164
|
+
}), st();
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
return "blur cancel click close contextMenu copy cut auxClick doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play pointerCancel pointerDown pointerUp rateChange reset resize seeked submit touchCancel touchEnd touchStart volumeChange drag dragEnter dragExit dragLeave dragOver mouseMove mouseOut mouseOver pointerMove pointerOut pointerOver scroll toggle touchMove wheel abort animationEnd animationIteration animationStart canPlay canPlayThrough durationChange emptied encrypted ended error gotPointerCapture load loadedData loadedMetadata loadStart lostPointerCapture playing progress seeking stalled suspend timeUpdate transitionEnd waiting mouseEnter mouseLeave pointerEnter pointerLeave change select beforeInput compositionEnd compositionStart compositionUpdate".split(" ").forEach(function(r) {
|
|
1168
|
+
xe[r] = ot(r);
|
|
1169
|
+
}), G.Simulate = xe, G.act = Pe, G.findAllInRenderedTree = he, G.findRenderedComponentWithType = function(r, d) {
|
|
1170
|
+
if (re(r, "findRenderedComponentWithType"), r = Ue(r, d), r.length !== 1) throw Error("Did not find exactly one match (found: " + r.length + ") for componentType:" + d);
|
|
1171
|
+
return r[0];
|
|
1172
|
+
}, G.findRenderedDOMComponentWithClass = function(r, d) {
|
|
1173
|
+
if (re(r, "findRenderedDOMComponentWithClass"), r = Te(r, d), r.length !== 1) throw Error("Did not find exactly one match (found: " + r.length + ") for class:" + d);
|
|
1174
|
+
return r[0];
|
|
1175
|
+
}, G.findRenderedDOMComponentWithTag = function(r, d) {
|
|
1176
|
+
if (re(r, "findRenderedDOMComponentWithTag"), r = Me(r, d), r.length !== 1) throw Error("Did not find exactly one match (found: " + r.length + ") for tag:" + d);
|
|
1177
|
+
return r[0];
|
|
1178
|
+
}, G.isCompositeComponent = pe, G.isCompositeComponentWithType = ge, G.isDOMComponent = Ie, G.isDOMComponentElement = function(r) {
|
|
1179
|
+
return !!(r && s.isValidElement(r) && r.tagName);
|
|
1180
|
+
}, G.isElement = function(r) {
|
|
1181
|
+
return s.isValidElement(r);
|
|
1182
|
+
}, G.isElementOfType = function(r, d) {
|
|
1183
|
+
return s.isValidElement(r) && r.type === d;
|
|
1184
|
+
}, G.mockComponent = function(r, d) {
|
|
1185
|
+
return d = d || r.mockTagName || "div", r.prototype.render.mockImplementation(function() {
|
|
1186
|
+
return s.createElement(d, null, this.props.children);
|
|
1187
|
+
}), this;
|
|
1188
|
+
}, G.nativeTouchData = function(r, d) {
|
|
1189
|
+
return { touches: [{ pageX: r, pageY: d }] };
|
|
1190
|
+
}, G.renderIntoDocument = function(r) {
|
|
1191
|
+
var d = document.createElement("div");
|
|
1192
|
+
return e.render(r, d);
|
|
1193
|
+
}, G.scryRenderedComponentsWithType = Ue, G.scryRenderedDOMComponentsWithClass = Te, G.scryRenderedDOMComponentsWithTag = Me, G.traverseTwoPhase = je, G;
|
|
1194
|
+
}
|
|
1195
|
+
var W = {};
|
|
1196
|
+
/**
|
|
1197
|
+
* @license React
|
|
1198
|
+
* react-dom-test-utils.development.js
|
|
1199
|
+
*
|
|
1200
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
1201
|
+
*
|
|
1202
|
+
* This source code is licensed under the MIT license found in the
|
|
1203
|
+
* LICENSE file in the root directory of this source tree.
|
|
1204
|
+
*/
|
|
1205
|
+
var hr;
|
|
1206
|
+
function eo() {
|
|
1207
|
+
return hr || (hr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1208
|
+
var s = Re, e = gr, n = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1209
|
+
function a(t) {
|
|
1210
|
+
{
|
|
1211
|
+
for (var i = arguments.length, c = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
1212
|
+
c[p - 1] = arguments[p];
|
|
1213
|
+
u("warn", t, c);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
function h(t) {
|
|
1217
|
+
{
|
|
1218
|
+
for (var i = arguments.length, c = new Array(i > 1 ? i - 1 : 0), p = 1; p < i; p++)
|
|
1219
|
+
c[p - 1] = arguments[p];
|
|
1220
|
+
u("error", t, c);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
function u(t, i, c) {
|
|
1224
|
+
{
|
|
1225
|
+
var p = n.ReactDebugCurrentFrame, L = p.getStackAddendum();
|
|
1226
|
+
L !== "" && (i += "%s", c = c.concat([L]));
|
|
1227
|
+
var P = c.map(function(x) {
|
|
1228
|
+
return String(x);
|
|
1229
|
+
});
|
|
1230
|
+
P.unshift("Warning: " + i), Function.prototype.apply.call(console[t], console, P);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
function m(t) {
|
|
1234
|
+
return t._reactInternals;
|
|
1235
|
+
}
|
|
1236
|
+
var O = 0, l = 1, o = 3, v = 5, R = 6, b = (
|
|
1237
|
+
/* */
|
|
1238
|
+
0
|
|
1239
|
+
), $ = (
|
|
1240
|
+
/* */
|
|
1241
|
+
2
|
|
1242
|
+
), T = (
|
|
1243
|
+
/* */
|
|
1244
|
+
4096
|
|
1245
|
+
);
|
|
1246
|
+
n.ReactCurrentOwner;
|
|
1247
|
+
function H(t) {
|
|
1248
|
+
var i = t, c = t;
|
|
1249
|
+
if (t.alternate)
|
|
1250
|
+
for (; i.return; )
|
|
1251
|
+
i = i.return;
|
|
1252
|
+
else {
|
|
1253
|
+
var p = i;
|
|
1254
|
+
do
|
|
1255
|
+
i = p, (i.flags & ($ | T)) !== b && (c = i.return), p = i.return;
|
|
1256
|
+
while (p);
|
|
1257
|
+
}
|
|
1258
|
+
return i.tag === o ? c : null;
|
|
1259
|
+
}
|
|
1260
|
+
function Y(t) {
|
|
1261
|
+
if (H(t) !== t)
|
|
1262
|
+
throw new Error("Unable to find node on an unmounted component.");
|
|
1263
|
+
}
|
|
1264
|
+
function Q(t) {
|
|
1265
|
+
var i = t.alternate;
|
|
1266
|
+
if (!i) {
|
|
1267
|
+
var c = H(t);
|
|
1268
|
+
if (c === null)
|
|
1269
|
+
throw new Error("Unable to find node on an unmounted component.");
|
|
1270
|
+
return c !== t ? null : t;
|
|
1271
|
+
}
|
|
1272
|
+
for (var p = t, L = i; ; ) {
|
|
1273
|
+
var P = p.return;
|
|
1274
|
+
if (P === null)
|
|
1275
|
+
break;
|
|
1276
|
+
var x = P.alternate;
|
|
1277
|
+
if (x === null) {
|
|
1278
|
+
var ee = P.return;
|
|
1279
|
+
if (ee !== null) {
|
|
1280
|
+
p = L = ee;
|
|
1281
|
+
continue;
|
|
1282
|
+
}
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
if (P.child === x.child) {
|
|
1286
|
+
for (var te = P.child; te; ) {
|
|
1287
|
+
if (te === p)
|
|
1288
|
+
return Y(P), t;
|
|
1289
|
+
if (te === L)
|
|
1290
|
+
return Y(P), i;
|
|
1291
|
+
te = te.sibling;
|
|
1292
|
+
}
|
|
1293
|
+
throw new Error("Unable to find node on an unmounted component.");
|
|
1294
|
+
}
|
|
1295
|
+
if (p.return !== L.return)
|
|
1296
|
+
p = P, L = x;
|
|
1297
|
+
else {
|
|
1298
|
+
for (var J = !1, B = P.child; B; ) {
|
|
1299
|
+
if (B === p) {
|
|
1300
|
+
J = !0, p = P, L = x;
|
|
1301
|
+
break;
|
|
1302
|
+
}
|
|
1303
|
+
if (B === L) {
|
|
1304
|
+
J = !0, L = P, p = x;
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1307
|
+
B = B.sibling;
|
|
1308
|
+
}
|
|
1309
|
+
if (!J) {
|
|
1310
|
+
for (B = x.child; B; ) {
|
|
1311
|
+
if (B === p) {
|
|
1312
|
+
J = !0, p = x, L = P;
|
|
1313
|
+
break;
|
|
1314
|
+
}
|
|
1315
|
+
if (B === L) {
|
|
1316
|
+
J = !0, L = x, p = P;
|
|
1317
|
+
break;
|
|
1318
|
+
}
|
|
1319
|
+
B = B.sibling;
|
|
1320
|
+
}
|
|
1321
|
+
if (!J)
|
|
1322
|
+
throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
if (p.alternate !== L)
|
|
1326
|
+
throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
|
|
1327
|
+
}
|
|
1328
|
+
if (p.tag !== o)
|
|
1329
|
+
throw new Error("Unable to find node on an unmounted component.");
|
|
1330
|
+
return p.stateNode.current === p ? t : i;
|
|
1331
|
+
}
|
|
1332
|
+
var V = Object.assign;
|
|
1333
|
+
function j(t) {
|
|
1334
|
+
var i, c = t.keyCode;
|
|
1335
|
+
return "charCode" in t ? (i = t.charCode, i === 0 && c === 13 && (i = 13)) : i = c, i === 10 && (i = 13), i >= 32 || i === 13 ? i : 0;
|
|
1336
|
+
}
|
|
1337
|
+
function me() {
|
|
1338
|
+
return !0;
|
|
1339
|
+
}
|
|
1340
|
+
function $e() {
|
|
1341
|
+
return !1;
|
|
1342
|
+
}
|
|
1343
|
+
function q(t) {
|
|
1344
|
+
function i(c, p, L, P, x) {
|
|
1345
|
+
this._reactName = c, this._targetInst = L, this.type = p, this.nativeEvent = P, this.target = x, this.currentTarget = null;
|
|
1346
|
+
for (var ee in t)
|
|
1347
|
+
if (t.hasOwnProperty(ee)) {
|
|
1348
|
+
var te = t[ee];
|
|
1349
|
+
te ? this[ee] = te(P) : this[ee] = P[ee];
|
|
1350
|
+
}
|
|
1351
|
+
var J = P.defaultPrevented != null ? P.defaultPrevented : P.returnValue === !1;
|
|
1352
|
+
return J ? this.isDefaultPrevented = me : this.isDefaultPrevented = $e, this.isPropagationStopped = $e, this;
|
|
1353
|
+
}
|
|
1354
|
+
return V(i.prototype, {
|
|
1355
|
+
preventDefault: function() {
|
|
1356
|
+
this.defaultPrevented = !0;
|
|
1357
|
+
var c = this.nativeEvent;
|
|
1358
|
+
c && (c.preventDefault ? c.preventDefault() : typeof c.returnValue != "unknown" && (c.returnValue = !1), this.isDefaultPrevented = me);
|
|
1359
|
+
},
|
|
1360
|
+
stopPropagation: function() {
|
|
1361
|
+
var c = this.nativeEvent;
|
|
1362
|
+
c && (c.stopPropagation ? c.stopPropagation() : typeof c.cancelBubble != "unknown" && (c.cancelBubble = !0), this.isPropagationStopped = me);
|
|
1363
|
+
},
|
|
1364
|
+
/**
|
|
1365
|
+
* We release all dispatched `SyntheticEvent`s after each event loop, adding
|
|
1366
|
+
* them back into the pool. This allows a way to hold onto a reference that
|
|
1367
|
+
* won't be added back into the pool.
|
|
1368
|
+
*/
|
|
1369
|
+
persist: function() {
|
|
1370
|
+
},
|
|
1371
|
+
/**
|
|
1372
|
+
* Checks if this event should be released back into the pool.
|
|
1373
|
+
*
|
|
1374
|
+
* @return {boolean} True if this should not be released, false otherwise.
|
|
1375
|
+
*/
|
|
1376
|
+
isPersistent: me
|
|
1377
|
+
}), i;
|
|
1378
|
+
}
|
|
1379
|
+
var oe = {
|
|
1380
|
+
eventPhase: 0,
|
|
1381
|
+
bubbles: 0,
|
|
1382
|
+
cancelable: 0,
|
|
1383
|
+
timeStamp: function(t) {
|
|
1384
|
+
return t.timeStamp || Date.now();
|
|
1385
|
+
},
|
|
1386
|
+
defaultPrevented: 0,
|
|
1387
|
+
isTrusted: 0
|
|
1388
|
+
}, Se = q(oe), le = V({}, oe, {
|
|
1389
|
+
view: 0,
|
|
1390
|
+
detail: 0
|
|
1391
|
+
});
|
|
1392
|
+
q(le);
|
|
1393
|
+
var ce, ve, ue;
|
|
1394
|
+
function Le(t) {
|
|
1395
|
+
t !== ue && (ue && t.type === "mousemove" ? (ce = t.screenX - ue.screenX, ve = t.screenY - ue.screenY) : (ce = 0, ve = 0), ue = t);
|
|
1396
|
+
}
|
|
1397
|
+
var g = V({}, le, {
|
|
1398
|
+
screenX: 0,
|
|
1399
|
+
screenY: 0,
|
|
1400
|
+
clientX: 0,
|
|
1401
|
+
clientY: 0,
|
|
1402
|
+
pageX: 0,
|
|
1403
|
+
pageY: 0,
|
|
1404
|
+
ctrlKey: 0,
|
|
1405
|
+
shiftKey: 0,
|
|
1406
|
+
altKey: 0,
|
|
1407
|
+
metaKey: 0,
|
|
1408
|
+
getModifierState: k,
|
|
1409
|
+
button: 0,
|
|
1410
|
+
buttons: 0,
|
|
1411
|
+
relatedTarget: function(t) {
|
|
1412
|
+
return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget;
|
|
1413
|
+
},
|
|
1414
|
+
movementX: function(t) {
|
|
1415
|
+
return "movementX" in t ? t.movementX : (Le(t), ce);
|
|
1416
|
+
},
|
|
1417
|
+
movementY: function(t) {
|
|
1418
|
+
return "movementY" in t ? t.movementY : ve;
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
q(g);
|
|
1422
|
+
var E = V({}, g, {
|
|
1423
|
+
dataTransfer: 0
|
|
1424
|
+
});
|
|
1425
|
+
q(E);
|
|
1426
|
+
var C = V({}, le, {
|
|
1427
|
+
relatedTarget: 0
|
|
1428
|
+
});
|
|
1429
|
+
q(C);
|
|
1430
|
+
var w = V({}, oe, {
|
|
1431
|
+
animationName: 0,
|
|
1432
|
+
elapsedTime: 0,
|
|
1433
|
+
pseudoElement: 0
|
|
1434
|
+
});
|
|
1435
|
+
q(w);
|
|
1436
|
+
var I = V({}, oe, {
|
|
1437
|
+
clipboardData: function(t) {
|
|
1438
|
+
return "clipboardData" in t ? t.clipboardData : window.clipboardData;
|
|
1439
|
+
}
|
|
1440
|
+
});
|
|
1441
|
+
q(I);
|
|
1442
|
+
var y = V({}, oe, {
|
|
1443
|
+
data: 0
|
|
1444
|
+
});
|
|
1445
|
+
q(y);
|
|
1446
|
+
var D = {
|
|
1447
|
+
Esc: "Escape",
|
|
1448
|
+
Spacebar: " ",
|
|
1449
|
+
Left: "ArrowLeft",
|
|
1450
|
+
Up: "ArrowUp",
|
|
1451
|
+
Right: "ArrowRight",
|
|
1452
|
+
Down: "ArrowDown",
|
|
1453
|
+
Del: "Delete",
|
|
1454
|
+
Win: "OS",
|
|
1455
|
+
Menu: "ContextMenu",
|
|
1456
|
+
Apps: "ContextMenu",
|
|
1457
|
+
Scroll: "ScrollLock",
|
|
1458
|
+
MozPrintableKey: "Unidentified"
|
|
1459
|
+
}, _ = {
|
|
1460
|
+
8: "Backspace",
|
|
1461
|
+
9: "Tab",
|
|
1462
|
+
12: "Clear",
|
|
1463
|
+
13: "Enter",
|
|
1464
|
+
16: "Shift",
|
|
1465
|
+
17: "Control",
|
|
1466
|
+
18: "Alt",
|
|
1467
|
+
19: "Pause",
|
|
1468
|
+
20: "CapsLock",
|
|
1469
|
+
27: "Escape",
|
|
1470
|
+
32: " ",
|
|
1471
|
+
33: "PageUp",
|
|
1472
|
+
34: "PageDown",
|
|
1473
|
+
35: "End",
|
|
1474
|
+
36: "Home",
|
|
1475
|
+
37: "ArrowLeft",
|
|
1476
|
+
38: "ArrowUp",
|
|
1477
|
+
39: "ArrowRight",
|
|
1478
|
+
40: "ArrowDown",
|
|
1479
|
+
45: "Insert",
|
|
1480
|
+
46: "Delete",
|
|
1481
|
+
112: "F1",
|
|
1482
|
+
113: "F2",
|
|
1483
|
+
114: "F3",
|
|
1484
|
+
115: "F4",
|
|
1485
|
+
116: "F5",
|
|
1486
|
+
117: "F6",
|
|
1487
|
+
118: "F7",
|
|
1488
|
+
119: "F8",
|
|
1489
|
+
120: "F9",
|
|
1490
|
+
121: "F10",
|
|
1491
|
+
122: "F11",
|
|
1492
|
+
123: "F12",
|
|
1493
|
+
144: "NumLock",
|
|
1494
|
+
145: "ScrollLock",
|
|
1495
|
+
224: "Meta"
|
|
1496
|
+
};
|
|
1497
|
+
function N(t) {
|
|
1498
|
+
if (t.key) {
|
|
1499
|
+
var i = D[t.key] || t.key;
|
|
1500
|
+
if (i !== "Unidentified")
|
|
1501
|
+
return i;
|
|
1502
|
+
}
|
|
1503
|
+
if (t.type === "keypress") {
|
|
1504
|
+
var c = j(t);
|
|
1505
|
+
return c === 13 ? "Enter" : String.fromCharCode(c);
|
|
1506
|
+
}
|
|
1507
|
+
return t.type === "keydown" || t.type === "keyup" ? _[t.keyCode] || "Unidentified" : "";
|
|
1508
|
+
}
|
|
1509
|
+
var X = {
|
|
1510
|
+
Alt: "altKey",
|
|
1511
|
+
Control: "ctrlKey",
|
|
1512
|
+
Meta: "metaKey",
|
|
1513
|
+
Shift: "shiftKey"
|
|
1514
|
+
};
|
|
1515
|
+
function K(t) {
|
|
1516
|
+
var i = this, c = i.nativeEvent;
|
|
1517
|
+
if (c.getModifierState)
|
|
1518
|
+
return c.getModifierState(t);
|
|
1519
|
+
var p = X[t];
|
|
1520
|
+
return p ? !!c[p] : !1;
|
|
1521
|
+
}
|
|
1522
|
+
function k(t) {
|
|
1523
|
+
return K;
|
|
1524
|
+
}
|
|
1525
|
+
var fe = V({}, le, {
|
|
1526
|
+
key: N,
|
|
1527
|
+
code: 0,
|
|
1528
|
+
location: 0,
|
|
1529
|
+
ctrlKey: 0,
|
|
1530
|
+
shiftKey: 0,
|
|
1531
|
+
altKey: 0,
|
|
1532
|
+
metaKey: 0,
|
|
1533
|
+
repeat: 0,
|
|
1534
|
+
locale: 0,
|
|
1535
|
+
getModifierState: k,
|
|
1536
|
+
// Legacy Interface
|
|
1537
|
+
charCode: function(t) {
|
|
1538
|
+
return t.type === "keypress" ? j(t) : 0;
|
|
1539
|
+
},
|
|
1540
|
+
keyCode: function(t) {
|
|
1541
|
+
return t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
|
|
1542
|
+
},
|
|
1543
|
+
which: function(t) {
|
|
1544
|
+
return t.type === "keypress" ? j(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
|
|
1545
|
+
}
|
|
1546
|
+
});
|
|
1547
|
+
q(fe);
|
|
1548
|
+
var tt = V({}, g, {
|
|
1549
|
+
pointerId: 0,
|
|
1550
|
+
width: 0,
|
|
1551
|
+
height: 0,
|
|
1552
|
+
pressure: 0,
|
|
1553
|
+
tangentialPressure: 0,
|
|
1554
|
+
tiltX: 0,
|
|
1555
|
+
tiltY: 0,
|
|
1556
|
+
twist: 0,
|
|
1557
|
+
pointerType: 0,
|
|
1558
|
+
isPrimary: 0
|
|
1559
|
+
});
|
|
1560
|
+
q(tt);
|
|
1561
|
+
var rt = V({}, le, {
|
|
1562
|
+
touches: 0,
|
|
1563
|
+
targetTouches: 0,
|
|
1564
|
+
changedTouches: 0,
|
|
1565
|
+
altKey: 0,
|
|
1566
|
+
metaKey: 0,
|
|
1567
|
+
ctrlKey: 0,
|
|
1568
|
+
shiftKey: 0,
|
|
1569
|
+
getModifierState: k
|
|
1570
|
+
});
|
|
1571
|
+
q(rt);
|
|
1572
|
+
var nt = V({}, oe, {
|
|
1573
|
+
propertyName: 0,
|
|
1574
|
+
elapsedTime: 0,
|
|
1575
|
+
pseudoElement: 0
|
|
1576
|
+
});
|
|
1577
|
+
q(nt);
|
|
1578
|
+
var st = V({}, g, {
|
|
1579
|
+
deltaX: function(t) {
|
|
1580
|
+
return "deltaX" in t ? t.deltaX : (
|
|
1581
|
+
// Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
|
|
1582
|
+
"wheelDeltaX" in t ? -t.wheelDeltaX : 0
|
|
1583
|
+
);
|
|
1584
|
+
},
|
|
1585
|
+
deltaY: function(t) {
|
|
1586
|
+
return "deltaY" in t ? t.deltaY : (
|
|
1587
|
+
// Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
|
|
1588
|
+
"wheelDeltaY" in t ? -t.wheelDeltaY : (
|
|
1589
|
+
// Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
|
|
1590
|
+
"wheelDelta" in t ? -t.wheelDelta : 0
|
|
1591
|
+
)
|
|
1592
|
+
);
|
|
1593
|
+
},
|
|
1594
|
+
deltaZ: 0,
|
|
1595
|
+
// Browsers without "deltaMode" is reporting in raw wheel delta where one
|
|
1596
|
+
// notch on the scroll is always +/- 120, roughly equivalent to pixels.
|
|
1597
|
+
// A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
|
|
1598
|
+
// ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
|
|
1599
|
+
deltaMode: 0
|
|
1600
|
+
});
|
|
1601
|
+
q(st);
|
|
1602
|
+
var Pe = 1;
|
|
1603
|
+
function _e(t, i, c, p, L, P, x, ee, te) {
|
|
1604
|
+
var J = Array.prototype.slice.call(arguments, 3);
|
|
1605
|
+
try {
|
|
1606
|
+
i.apply(c, J);
|
|
1607
|
+
} catch (B) {
|
|
1608
|
+
this.onError(B);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
var ke = _e;
|
|
1612
|
+
if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") {
|
|
1613
|
+
var re = document.createElement("react");
|
|
1614
|
+
ke = function(i, c, p, L, P, x, ee, te, J) {
|
|
1615
|
+
if (typeof document > "u" || document === null)
|
|
1616
|
+
throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
|
|
1617
|
+
var B = document.createEvent("Event"), ct = !1, Ut = !0, Zr = window.event, Ft = Object.getOwnPropertyDescriptor(window, "event");
|
|
1618
|
+
function jt() {
|
|
1619
|
+
re.removeEventListener(ut, Xt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = Zr);
|
|
1620
|
+
}
|
|
1621
|
+
var Jr = Array.prototype.slice.call(arguments, 3);
|
|
1622
|
+
function Xt() {
|
|
1623
|
+
ct = !0, jt(), c.apply(p, Jr), Ut = !1;
|
|
1624
|
+
}
|
|
1625
|
+
var Ee, xt = !1, Gt = !1;
|
|
1626
|
+
function Wt(Ve) {
|
|
1627
|
+
if (Ee = Ve.error, xt = !0, Ee === null && Ve.colno === 0 && Ve.lineno === 0 && (Gt = !0), Ve.defaultPrevented && Ee != null && typeof Ee == "object")
|
|
1628
|
+
try {
|
|
1629
|
+
Ee._suppressLogging = !0;
|
|
1630
|
+
} catch {
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
var ut = "react-" + (i || "invokeguardedcallback");
|
|
1634
|
+
if (window.addEventListener("error", Wt), re.addEventListener(ut, Xt, !1), B.initEvent(ut, !1, !1), re.dispatchEvent(B), Ft && Object.defineProperty(window, "event", Ft), ct && Ut && (xt ? Gt && (Ee = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Ee = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Ee)), window.removeEventListener("error", Wt), !ct)
|
|
1635
|
+
return jt(), _e.apply(this, arguments);
|
|
1636
|
+
};
|
|
1637
|
+
}
|
|
1638
|
+
var Ie = ke, pe = !1, ge = null, he = !1, Te = null, Me = {
|
|
1639
|
+
onError: function(t) {
|
|
1640
|
+
pe = !0, ge = t;
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
function Ue(t, i, c, p, L, P, x, ee, te) {
|
|
1644
|
+
pe = !1, ge = null, Ie.apply(Me, arguments);
|
|
1645
|
+
}
|
|
1646
|
+
function Fe(t, i, c, p, L, P, x, ee, te) {
|
|
1647
|
+
if (Ue.apply(this, arguments), pe) {
|
|
1648
|
+
var J = Xe();
|
|
1649
|
+
he || (he = !0, Te = J);
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
function je() {
|
|
1653
|
+
if (he) {
|
|
1654
|
+
var t = Te;
|
|
1655
|
+
throw he = !1, Te = null, t;
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
function Xe() {
|
|
1659
|
+
if (pe) {
|
|
1660
|
+
var t = ge;
|
|
1661
|
+
return pe = !1, ge = null, t;
|
|
1662
|
+
} else
|
|
1663
|
+
throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");
|
|
1664
|
+
}
|
|
1665
|
+
var at = Array.isArray;
|
|
1666
|
+
function De(t) {
|
|
1667
|
+
return at(t);
|
|
1668
|
+
}
|
|
1669
|
+
var xe = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, we = xe.Events, ot = we[0], r = we[1], d = we[2], f = we[3], S = we[4], M = s.unstable_act;
|
|
1670
|
+
function U(t) {
|
|
1671
|
+
}
|
|
1672
|
+
var A = !1;
|
|
1673
|
+
function F(t, i) {
|
|
1674
|
+
if (!t)
|
|
1675
|
+
return [];
|
|
1676
|
+
var c = Q(t);
|
|
1677
|
+
if (!c)
|
|
1678
|
+
return [];
|
|
1679
|
+
for (var p = c, L = []; ; ) {
|
|
1680
|
+
if (p.tag === v || p.tag === R || p.tag === l || p.tag === O) {
|
|
1681
|
+
var P = p.stateNode;
|
|
1682
|
+
i(P) && L.push(P);
|
|
1683
|
+
}
|
|
1684
|
+
if (p.child) {
|
|
1685
|
+
p.child.return = p, p = p.child;
|
|
1686
|
+
continue;
|
|
1687
|
+
}
|
|
1688
|
+
if (p === c)
|
|
1689
|
+
return L;
|
|
1690
|
+
for (; !p.sibling; ) {
|
|
1691
|
+
if (!p.return || p.return === c)
|
|
1692
|
+
return L;
|
|
1693
|
+
p = p.return;
|
|
1694
|
+
}
|
|
1695
|
+
p.sibling.return = p.return, p = p.sibling;
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
function Z(t, i) {
|
|
1699
|
+
if (t && !m(t)) {
|
|
1700
|
+
var c, p = String(t);
|
|
1701
|
+
throw De(t) ? c = "an array" : t && t.nodeType === Pe && t.tagName ? c = "a DOM node" : p === "[object Object]" ? c = "object with keys {" + Object.keys(t).join(", ") + "}" : c = p, new Error(i + "(...): the first argument must be a React class instance. " + ("Instead received: " + c + "."));
|
|
1702
|
+
}
|
|
1703
|
+
}
|
|
1704
|
+
var ne = !1;
|
|
1705
|
+
function it(t) {
|
|
1706
|
+
ne || (ne = !0, h("ReactDOMTestUtils is deprecated and will be removed in a future major release, because it exposes internal implementation details that are highly likely to change between releases. Upgrade to a modern testing library, such as @testing-library/react. See https://react.dev/warnings/react-dom-test-utils for more info."));
|
|
1707
|
+
var i = document.createElement("div");
|
|
1708
|
+
return e.render(t, i);
|
|
1709
|
+
}
|
|
1710
|
+
function Lr(t) {
|
|
1711
|
+
return s.isValidElement(t);
|
|
1712
|
+
}
|
|
1713
|
+
function Dr(t, i) {
|
|
1714
|
+
return s.isValidElement(t) && t.type === i;
|
|
1715
|
+
}
|
|
1716
|
+
function Ge(t) {
|
|
1717
|
+
return !!(t && t.nodeType === Pe && t.tagName);
|
|
1718
|
+
}
|
|
1719
|
+
function Nr(t) {
|
|
1720
|
+
return !!(t && s.isValidElement(t) && t.tagName);
|
|
1721
|
+
}
|
|
1722
|
+
function lt(t) {
|
|
1723
|
+
return Ge(t) ? !1 : t != null && typeof t.render == "function" && typeof t.setState == "function";
|
|
1724
|
+
}
|
|
1725
|
+
function Lt(t, i) {
|
|
1726
|
+
if (!lt(t))
|
|
1727
|
+
return !1;
|
|
1728
|
+
var c = m(t), p = c.type;
|
|
1729
|
+
return p === i;
|
|
1730
|
+
}
|
|
1731
|
+
function We(t, i) {
|
|
1732
|
+
if (Z(t, "findAllInRenderedTree"), !t)
|
|
1733
|
+
return [];
|
|
1734
|
+
var c = m(t);
|
|
1735
|
+
return F(c, i);
|
|
1736
|
+
}
|
|
1737
|
+
function Dt(t, i) {
|
|
1738
|
+
return Z(t, "scryRenderedDOMComponentsWithClass"), We(t, function(c) {
|
|
1739
|
+
if (Ge(c)) {
|
|
1740
|
+
var p = c.className;
|
|
1741
|
+
typeof p != "string" && (p = c.getAttribute("class") || "");
|
|
1742
|
+
var L = p.split(/\s+/);
|
|
1743
|
+
if (!De(i)) {
|
|
1744
|
+
if (i === void 0)
|
|
1745
|
+
throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
|
|
1746
|
+
i = i.split(/\s+/);
|
|
1747
|
+
}
|
|
1748
|
+
return i.every(function(P) {
|
|
1749
|
+
return L.indexOf(P) !== -1;
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
return !1;
|
|
1753
|
+
});
|
|
1754
|
+
}
|
|
1755
|
+
function br(t, i) {
|
|
1756
|
+
Z(t, "findRenderedDOMComponentWithClass");
|
|
1757
|
+
var c = Dt(t, i);
|
|
1758
|
+
if (c.length !== 1)
|
|
1759
|
+
throw new Error("Did not find exactly one match (found: " + c.length + ") for class:" + i);
|
|
1760
|
+
return c[0];
|
|
1761
|
+
}
|
|
1762
|
+
function Nt(t, i) {
|
|
1763
|
+
return Z(t, "scryRenderedDOMComponentsWithTag"), We(t, function(c) {
|
|
1764
|
+
return Ge(c) && c.tagName.toUpperCase() === i.toUpperCase();
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
function Ar(t, i) {
|
|
1768
|
+
Z(t, "findRenderedDOMComponentWithTag");
|
|
1769
|
+
var c = Nt(t, i);
|
|
1770
|
+
if (c.length !== 1)
|
|
1771
|
+
throw new Error("Did not find exactly one match (found: " + c.length + ") for tag:" + i);
|
|
1772
|
+
return c[0];
|
|
1773
|
+
}
|
|
1774
|
+
function bt(t, i) {
|
|
1775
|
+
return Z(t, "scryRenderedComponentsWithType"), We(t, function(c) {
|
|
1776
|
+
return Lt(c, i);
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
function Pr(t, i) {
|
|
1780
|
+
Z(t, "findRenderedComponentWithType");
|
|
1781
|
+
var c = bt(t, i);
|
|
1782
|
+
if (c.length !== 1)
|
|
1783
|
+
throw new Error("Did not find exactly one match (found: " + c.length + ") for componentType:" + i);
|
|
1784
|
+
return c[0];
|
|
1785
|
+
}
|
|
1786
|
+
function _r(t, i) {
|
|
1787
|
+
return A || (A = !0, a(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
|
|
1788
|
+
|
|
1789
|
+
See https://reactjs.org/link/test-utils-mock-component for more information.`)), i = i || t.mockTagName || "div", t.prototype.render.mockImplementation(function() {
|
|
1790
|
+
return s.createElement(i, null, this.props.children);
|
|
1791
|
+
}), this;
|
|
1792
|
+
}
|
|
1793
|
+
function kr(t, i) {
|
|
1794
|
+
return {
|
|
1795
|
+
touches: [{
|
|
1796
|
+
pageX: t,
|
|
1797
|
+
pageY: i
|
|
1798
|
+
}]
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
function At(t, i, c) {
|
|
1802
|
+
var p = t.type || "unknown-event";
|
|
1803
|
+
t.currentTarget = r(c), Fe(p, i, void 0, t), t.currentTarget = null;
|
|
1804
|
+
}
|
|
1805
|
+
function Mr(t) {
|
|
1806
|
+
var i = t._dispatchListeners, c = t._dispatchInstances;
|
|
1807
|
+
if (De(i))
|
|
1808
|
+
for (var p = 0; p < i.length && !t.isPropagationStopped(); p++)
|
|
1809
|
+
At(t, i[p], c[p]);
|
|
1810
|
+
else i && At(t, i, c);
|
|
1811
|
+
t._dispatchListeners = null, t._dispatchInstances = null;
|
|
1812
|
+
}
|
|
1813
|
+
var Ur = function(t) {
|
|
1814
|
+
t && (Mr(t), t.isPersistent() || t.constructor.release(t));
|
|
1815
|
+
};
|
|
1816
|
+
function Fr(t) {
|
|
1817
|
+
return t === "button" || t === "input" || t === "select" || t === "textarea";
|
|
1818
|
+
}
|
|
1819
|
+
function jr(t) {
|
|
1820
|
+
do
|
|
1821
|
+
t = t.return;
|
|
1822
|
+
while (t && t.tag !== v);
|
|
1823
|
+
return t || null;
|
|
1824
|
+
}
|
|
1825
|
+
function Pt(t, i, c) {
|
|
1826
|
+
for (var p = []; t; )
|
|
1827
|
+
p.push(t), t = jr(t);
|
|
1828
|
+
var L;
|
|
1829
|
+
for (L = p.length; L-- > 0; )
|
|
1830
|
+
i(p[L], "captured", c);
|
|
1831
|
+
for (L = 0; L < p.length; L++)
|
|
1832
|
+
i(p[L], "bubbled", c);
|
|
1833
|
+
}
|
|
1834
|
+
function Xr(t, i, c) {
|
|
1835
|
+
switch (t) {
|
|
1836
|
+
case "onClick":
|
|
1837
|
+
case "onClickCapture":
|
|
1838
|
+
case "onDoubleClick":
|
|
1839
|
+
case "onDoubleClickCapture":
|
|
1840
|
+
case "onMouseDown":
|
|
1841
|
+
case "onMouseDownCapture":
|
|
1842
|
+
case "onMouseMove":
|
|
1843
|
+
case "onMouseMoveCapture":
|
|
1844
|
+
case "onMouseUp":
|
|
1845
|
+
case "onMouseUpCapture":
|
|
1846
|
+
case "onMouseEnter":
|
|
1847
|
+
return !!(c.disabled && Fr(i));
|
|
1848
|
+
default:
|
|
1849
|
+
return !1;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
function _t(t, i) {
|
|
1853
|
+
var c = t.stateNode;
|
|
1854
|
+
if (!c)
|
|
1855
|
+
return null;
|
|
1856
|
+
var p = d(c);
|
|
1857
|
+
if (!p)
|
|
1858
|
+
return null;
|
|
1859
|
+
var L = p[i];
|
|
1860
|
+
if (Xr(i, t.type, p))
|
|
1861
|
+
return null;
|
|
1862
|
+
if (L && typeof L != "function")
|
|
1863
|
+
throw new Error("Expected `" + i + "` listener to be a function, instead got a value of `" + typeof L + "` type.");
|
|
1864
|
+
return L;
|
|
1865
|
+
}
|
|
1866
|
+
function xr(t, i, c) {
|
|
1867
|
+
var p = i._reactName;
|
|
1868
|
+
return c === "captured" && (p += "Capture"), _t(t, p);
|
|
1869
|
+
}
|
|
1870
|
+
function Gr(t, i, c) {
|
|
1871
|
+
if (t && c && c._reactName) {
|
|
1872
|
+
var p = c._reactName, L = _t(t, p);
|
|
1873
|
+
L && (c._dispatchListeners == null && (c._dispatchListeners = []), c._dispatchInstances == null && (c._dispatchInstances = []), c._dispatchListeners.push(L), c._dispatchInstances.push(t));
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
function Wr(t, i, c) {
|
|
1877
|
+
t || h("Dispatching inst must not be null");
|
|
1878
|
+
var p = xr(t, c, i);
|
|
1879
|
+
p && (c._dispatchListeners == null && (c._dispatchListeners = []), c._dispatchInstances == null && (c._dispatchInstances = []), c._dispatchListeners.push(p), c._dispatchInstances.push(t));
|
|
1880
|
+
}
|
|
1881
|
+
function Vr(t) {
|
|
1882
|
+
t && t._reactName && Gr(t._targetInst, null, t);
|
|
1883
|
+
}
|
|
1884
|
+
function Yr(t) {
|
|
1885
|
+
t && t._reactName && Pt(t._targetInst, Wr, t);
|
|
1886
|
+
}
|
|
1887
|
+
var kt = {}, Kr = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
|
|
1888
|
+
function Hr(t) {
|
|
1889
|
+
return function(i, c) {
|
|
1890
|
+
if (s.isValidElement(i))
|
|
1891
|
+
throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
|
|
1892
|
+
if (lt(i))
|
|
1893
|
+
throw new Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
|
|
1894
|
+
var p = "on" + t[0].toUpperCase() + t.slice(1), L = new U();
|
|
1895
|
+
L.target = i, L.type = t.toLowerCase();
|
|
1896
|
+
var P = ot(i), x = new Se(p, L.type, P, L, i);
|
|
1897
|
+
x.persist(), V(x, c), Kr.has(t) ? Vr(x) : Yr(x), e.unstable_batchedUpdates(function() {
|
|
1898
|
+
f(i), Ur(x), je();
|
|
1899
|
+
}), S();
|
|
1900
|
+
};
|
|
1901
|
+
}
|
|
1902
|
+
var qr = ["blur", "cancel", "click", "close", "contextMenu", "copy", "cut", "auxClick", "doubleClick", "dragEnd", "dragStart", "drop", "focus", "input", "invalid", "keyDown", "keyPress", "keyUp", "mouseDown", "mouseUp", "paste", "pause", "play", "pointerCancel", "pointerDown", "pointerUp", "rateChange", "reset", "resize", "seeked", "submit", "touchCancel", "touchEnd", "touchStart", "volumeChange", "drag", "dragEnter", "dragExit", "dragLeave", "dragOver", "mouseMove", "mouseOut", "mouseOver", "pointerMove", "pointerOut", "pointerOver", "scroll", "toggle", "touchMove", "wheel", "abort", "animationEnd", "animationIteration", "animationStart", "canPlay", "canPlayThrough", "durationChange", "emptied", "encrypted", "ended", "error", "gotPointerCapture", "load", "loadedData", "loadedMetadata", "loadStart", "lostPointerCapture", "playing", "progress", "seeking", "stalled", "suspend", "timeUpdate", "transitionEnd", "waiting", "mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave", "change", "select", "beforeInput", "compositionEnd", "compositionStart", "compositionUpdate"];
|
|
1903
|
+
function Br() {
|
|
1904
|
+
qr.forEach(function(t) {
|
|
1905
|
+
kt[t] = Hr(t);
|
|
1906
|
+
});
|
|
1907
|
+
}
|
|
1908
|
+
Br();
|
|
1909
|
+
var Mt = !1, zr = function(i) {
|
|
1910
|
+
return Mt || (Mt = !0, h("`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info.")), M(i);
|
|
1911
|
+
};
|
|
1912
|
+
W.Simulate = kt, W.act = zr, W.findAllInRenderedTree = We, W.findRenderedComponentWithType = Pr, W.findRenderedDOMComponentWithClass = br, W.findRenderedDOMComponentWithTag = Ar, W.isCompositeComponent = lt, W.isCompositeComponentWithType = Lt, W.isDOMComponent = Ge, W.isDOMComponentElement = Nr, W.isElement = Lr, W.isElementOfType = Dr, W.mockComponent = _r, W.nativeTouchData = kr, W.renderIntoDocument = it, W.scryRenderedComponentsWithType = bt, W.scryRenderedDOMComponentsWithClass = Dt, W.scryRenderedDOMComponentsWithTag = Nt, W.traverseTwoPhase = Pt;
|
|
1913
|
+
}()), W;
|
|
1914
|
+
}
|
|
1915
|
+
process.env.NODE_ENV === "production" ? gt.exports = Qa() : gt.exports = eo();
|
|
1916
|
+
var to = gt.exports, Or = {};
|
|
1917
|
+
sn(Or, { decorators: () => lo, mount: () => oo, parameters: () => io, render: () => ro, renderToCanvas: () => Sr });
|
|
1918
|
+
var ro = (s, e) => {
|
|
1919
|
+
let { id: n, component: a } = e;
|
|
1920
|
+
if (!a) throw new Error(`Unable to render story ${n} as the component annotation is missing from the default export`);
|
|
1921
|
+
return Re.createElement(a, { ...s });
|
|
1922
|
+
}, no = typeof de.act == "function" ? de.act : to.act;
|
|
1923
|
+
function ye(s) {
|
|
1924
|
+
globalThis.IS_REACT_ACT_ENVIRONMENT = s;
|
|
1925
|
+
}
|
|
1926
|
+
function St() {
|
|
1927
|
+
return globalThis.IS_REACT_ACT_ENVIRONMENT;
|
|
1928
|
+
}
|
|
1929
|
+
function so(s) {
|
|
1930
|
+
return (e) => {
|
|
1931
|
+
let n = St();
|
|
1932
|
+
ye(!0);
|
|
1933
|
+
try {
|
|
1934
|
+
let a = !1, h = s(() => {
|
|
1935
|
+
let u = e();
|
|
1936
|
+
return u !== null && typeof u == "object" && typeof u.then == "function" && (a = !0), u;
|
|
1937
|
+
});
|
|
1938
|
+
if (a) {
|
|
1939
|
+
let u = h;
|
|
1940
|
+
return { then: (m, O) => {
|
|
1941
|
+
u.then((l) => {
|
|
1942
|
+
ye(n), m(l);
|
|
1943
|
+
}, (l) => {
|
|
1944
|
+
ye(n), O(l);
|
|
1945
|
+
});
|
|
1946
|
+
} };
|
|
1947
|
+
} else return ye(n), h;
|
|
1948
|
+
} catch (a) {
|
|
1949
|
+
throw ye(n), a;
|
|
1950
|
+
}
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
var Be = so(no), { FRAMEWORK_OPTIONS: Et } = vr, ao = class extends rn {
|
|
1954
|
+
constructor() {
|
|
1955
|
+
super(...arguments), this.state = { hasError: !1 };
|
|
1956
|
+
}
|
|
1957
|
+
static getDerivedStateFromError() {
|
|
1958
|
+
return { hasError: !0 };
|
|
1959
|
+
}
|
|
1960
|
+
componentDidMount() {
|
|
1961
|
+
let { hasError: s } = this.state, { showMain: e } = this.props;
|
|
1962
|
+
s || e();
|
|
1963
|
+
}
|
|
1964
|
+
componentDidCatch(s) {
|
|
1965
|
+
let { showException: e } = this.props;
|
|
1966
|
+
e(s);
|
|
1967
|
+
}
|
|
1968
|
+
render() {
|
|
1969
|
+
let { hasError: s } = this.state, { children: e } = this.props;
|
|
1970
|
+
return s ? null : e;
|
|
1971
|
+
}
|
|
1972
|
+
}, dr = Et != null && Et.strictMode ? en : tn;
|
|
1973
|
+
async function Sr({ storyContext: s, unboundStoryFn: e, showMain: n, showException: a, forceRemount: h }, u) {
|
|
1974
|
+
var R, b;
|
|
1975
|
+
let { renderElement: m, unmountElement: O } = await import("./react-18-C0Aiha-e.js"), l = e, o = St() ? Re.createElement(l, { ...s }) : Re.createElement(ao, { showMain: n, showException: a }, Re.createElement(l, { ...s })), v = dr ? Re.createElement(dr, null, o) : o;
|
|
1976
|
+
return h && O(u), await m(v, u, (b = (R = s == null ? void 0 : s.parameters) == null ? void 0 : R.react) == null ? void 0 : b.rootOptions), () => O(u);
|
|
1977
|
+
}
|
|
1978
|
+
var oo = (s) => async (e) => (e != null && (s.originalStoryFn = () => e), await s.renderToCanvas(), s.canvas), io = { renderer: "react" }, lo = [(s, e) => {
|
|
1979
|
+
var h, u;
|
|
1980
|
+
if (!((u = (h = e.parameters) == null ? void 0 : h.react) != null && u.rsc)) return de.createElement(s, null);
|
|
1981
|
+
let n = fr.major(de.version), a = fr.minor(de.version);
|
|
1982
|
+
if (n < 18 || n === 18 && a < 3) throw new Error("React Server Components require React >= 18.3");
|
|
1983
|
+
return de.createElement(de.Suspense, null, de.createElement(s, null));
|
|
1984
|
+
}], { window: mr } = vr;
|
|
1985
|
+
mr && (mr.STORYBOOK_ENV = "react");
|
|
1986
|
+
({ ...Or });
|
|
1987
|
+
function co() {
|
|
1988
|
+
return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === !0 || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : !1;
|
|
1989
|
+
}
|
|
1990
|
+
var Er;
|
|
1991
|
+
typeof be < "u" && ((Er = be == null ? void 0 : be.hot) == null || Er.decline());
|
|
1992
|
+
});
|
|
1993
|
+
export default uo();
|
|
2
1994
|
//# sourceMappingURL=storybook__react.d.js.map
|