@uva-glass/component-library 3.1.1 → 3.2.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.
Files changed (73) hide show
  1. package/dist/assets/FeedbackBar.css +1 -1
  2. package/dist/assets/StatusBage.css +1 -0
  3. package/dist/components/Accordion/Accordion.test.js +2 -2
  4. package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
  5. package/dist/components/ActionList/ActionList.test.js +2 -2
  6. package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
  7. package/dist/components/Attention/Attention.test.js +1 -1
  8. package/dist/components/Backdrop/Backdrop.test.js +1 -1
  9. package/dist/components/Buttons/Button.stories.js +1 -1
  10. package/dist/components/Buttons/Button.test.js +1 -1
  11. package/dist/components/Buttons/LinkButton.stories.js +1 -1
  12. package/dist/components/Buttons/LinkButton.test.js +1 -1
  13. package/dist/components/Buttons/MenuButton.stories.js +1 -1
  14. package/dist/components/Buttons/MenuButton.test.js +1 -1
  15. package/dist/components/Card/Card.test.js +1 -1
  16. package/dist/components/Checkbox/Checkbox.stories.js +1 -1
  17. package/dist/components/Checkbox/Checkbox.test.js +1 -1
  18. package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
  19. package/dist/components/CheckboxButton/CheckboxButton.test.js +1 -1
  20. package/dist/components/CheckboxButton/CheckboxButton.test.js.map +1 -1
  21. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
  22. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
  23. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  24. package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
  25. package/dist/components/Chip/Chip.stories.js +1 -1
  26. package/dist/components/Drawer/Drawer.stories.js +1 -1
  27. package/dist/components/FeedbackBar/FeedbackBar.js +17 -17
  28. package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
  29. package/dist/components/FormInput/FormInput.stories.js +1 -1
  30. package/dist/components/IconButton/IconButton.stories.js +1 -1
  31. package/dist/components/InputField/InputField.stories.js +1 -1
  32. package/dist/components/Label/Label.test.js +1 -1
  33. package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
  34. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  35. package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
  36. package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
  37. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  38. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +1 -1
  39. package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
  40. package/dist/components/Sortable/Sortable.stories.js +1 -1
  41. package/dist/components/StatusBadge/StatusBadge.stories.d.ts +5 -0
  42. package/dist/components/StatusBadge/StatusBadge.stories.js +21 -0
  43. package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -0
  44. package/dist/components/StatusBadge/StatusBadge.test.d.ts +0 -0
  45. package/dist/components/StatusBadge/StatusBadge.test.js +12 -0
  46. package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -0
  47. package/dist/components/StatusBadge/StatusBage.d.ts +7 -0
  48. package/dist/components/StatusBadge/StatusBage.js +10 -0
  49. package/dist/components/StatusBadge/StatusBage.js.map +1 -0
  50. package/dist/components/StatusBadge/index.d.ts +1 -0
  51. package/dist/components/StatusBadge/index.js +5 -0
  52. package/dist/components/StatusBadge/index.js.map +1 -0
  53. package/dist/components/Timeline/Timeline.test.js +1 -1
  54. package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
  55. package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
  56. package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
  57. package/dist/components/index.d.ts +1 -0
  58. package/dist/components/index.js +20 -18
  59. package/dist/components/index.js.map +1 -1
  60. package/dist/{index-DMVXQIB9.js → index-COab4Oy9.js} +2 -2
  61. package/dist/{index-DMVXQIB9.js.map → index-COab4Oy9.js.map} +1 -1
  62. package/dist/{index-C7jFUWYs.js → index-DXR-TB1d.js} +2155 -2135
  63. package/dist/index-DXR-TB1d.js.map +1 -0
  64. package/dist/index.js +20 -18
  65. package/dist/index.js.map +1 -1
  66. package/dist/{react.esm-BOUd0cvD.js → react.esm-B8teOYlo.js} +2 -2
  67. package/dist/{react.esm-BOUd0cvD.js.map → react.esm-B8teOYlo.js.map} +1 -1
  68. package/dist/storybook__react.d.js +641 -637
  69. package/dist/storybook__react.d.js.map +1 -1
  70. package/dist/{test-utils-uaSbIYda.js → test-utils-Brqoydie.js} +279 -259
  71. package/dist/{test-utils-uaSbIYda.js.map → test-utils-Brqoydie.js.map} +1 -1
  72. package/package.json +19 -19
  73. package/dist/index-C7jFUWYs.js.map +0 -1
@@ -1,6 +1,22 @@
1
1
  import lt from "react";
2
2
  import ct from "react-dom";
3
- var De = { exports: {} }, m = {};
3
+ function Wt(g, P) {
4
+ for (var _ = 0; _ < P.length; _++) {
5
+ const I = P[_];
6
+ if (typeof I != "string" && !Array.isArray(I)) {
7
+ for (const R in I)
8
+ if (R !== "default" && !(R in g)) {
9
+ const m = Object.getOwnPropertyDescriptor(I, R);
10
+ m && Object.defineProperty(g, R, m.get ? m : {
11
+ enumerable: !0,
12
+ get: () => I[R]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var De = { exports: {} }, v = {};
4
20
  /**
5
21
  * @license React
6
22
  * react-dom-test-utils.production.min.js
@@ -11,11 +27,11 @@ var De = { exports: {} }, m = {};
11
27
  * LICENSE file in the root directory of this source tree.
12
28
  */
13
29
  var it;
14
- function At() {
15
- if (it) return m;
30
+ function Nt() {
31
+ if (it) return v;
16
32
  it = 1;
17
- var b = lt, A = ct;
18
- function Q(t) {
33
+ var g = lt, P = ct;
34
+ function _(t) {
19
35
  var i = t, o = t;
20
36
  if (t.alternate) for (; i.return; ) i = i.return;
21
37
  else {
@@ -26,13 +42,13 @@ function At() {
26
42
  }
27
43
  return i.tag === 3 ? o : null;
28
44
  }
29
- function ue(t) {
30
- if (Q(t) !== t) throw Error("Unable to find node on an unmounted component.");
45
+ function I(t) {
46
+ if (_(t) !== t) throw Error("Unable to find node on an unmounted component.");
31
47
  }
32
- function ee(t) {
48
+ function R(t) {
33
49
  var i = t.alternate;
34
50
  if (!i) {
35
- if (i = Q(t), i === null) throw Error("Unable to find node on an unmounted component.");
51
+ if (i = _(t), i === null) throw Error("Unable to find node on an unmounted component.");
36
52
  return i !== t ? null : t;
37
53
  }
38
54
  for (var o = t, s = i; ; ) {
@@ -48,8 +64,8 @@ function At() {
48
64
  }
49
65
  if (d.child === f.child) {
50
66
  for (f = d.child; f; ) {
51
- if (f === o) return ue(d), t;
52
- if (f === s) return ue(d), i;
67
+ if (f === o) return I(d), t;
68
+ if (f === s) return I(d), i;
53
69
  f = f.sibling;
54
70
  }
55
71
  throw Error("Unable to find node on an unmounted component.");
@@ -87,58 +103,58 @@ function At() {
87
103
  if (o.tag !== 3) throw Error("Unable to find node on an unmounted component.");
88
104
  return o.stateNode.current === o ? t : i;
89
105
  }
90
- var y = Object.assign;
91
- function x(t) {
106
+ var m = Object.assign;
107
+ function F(t) {
92
108
  var i = t.keyCode;
93
109
  return "charCode" in t ? (t = t.charCode, t === 0 && i === 13 && (t = 13)) : t = i, t === 10 && (t = 13), 32 <= t || t === 13 ? t : 0;
94
110
  }
95
- function G() {
111
+ function B() {
96
112
  return !0;
97
113
  }
98
114
  function le() {
99
115
  return !1;
100
116
  }
101
- function g(t) {
117
+ function w(t) {
102
118
  function i(o, s, d, f, l) {
103
119
  this._reactName = o, this._targetInst = d, this.type = s, this.nativeEvent = f, this.target = l, this.currentTarget = null;
104
120
  for (var p in t) t.hasOwnProperty(p) && (o = t[p], this[p] = o ? o(f) : f[p]);
105
- return this.isDefaultPrevented = (f.defaultPrevented != null ? f.defaultPrevented : f.returnValue === !1) ? G : le, this.isPropagationStopped = le, this;
121
+ return this.isDefaultPrevented = (f.defaultPrevented != null ? f.defaultPrevented : f.returnValue === !1) ? B : le, this.isPropagationStopped = le, this;
106
122
  }
107
- return y(i.prototype, { preventDefault: function() {
123
+ return m(i.prototype, { preventDefault: function() {
108
124
  this.defaultPrevented = !0;
109
125
  var o = this.nativeEvent;
110
- o && (o.preventDefault ? o.preventDefault() : typeof o.returnValue != "unknown" && (o.returnValue = !1), this.isDefaultPrevented = G);
126
+ o && (o.preventDefault ? o.preventDefault() : typeof o.returnValue != "unknown" && (o.returnValue = !1), this.isDefaultPrevented = B);
111
127
  }, stopPropagation: function() {
112
128
  var o = this.nativeEvent;
113
- o && (o.stopPropagation ? o.stopPropagation() : typeof o.cancelBubble != "unknown" && (o.cancelBubble = !0), this.isPropagationStopped = G);
129
+ o && (o.stopPropagation ? o.stopPropagation() : typeof o.cancelBubble != "unknown" && (o.cancelBubble = !0), this.isPropagationStopped = B);
114
130
  }, persist: function() {
115
- }, isPersistent: G }), i;
131
+ }, isPersistent: B }), i;
116
132
  }
117
- var O = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(t) {
133
+ var U = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function(t) {
118
134
  return t.timeStamp || Date.now();
119
- }, defaultPrevented: 0, isTrusted: 0 }, ke = g(O), N = y({}, O, { view: 0, detail: 0 });
120
- g(N);
121
- var te, ne, U, K = y({}, N, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: Y, button: 0, buttons: 0, relatedTarget: function(t) {
135
+ }, defaultPrevented: 0, isTrusted: 0 }, ke = w(U), Y = m({}, U, { view: 0, detail: 0 });
136
+ w(Y);
137
+ var ne, re, N, X = m({}, Y, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: V, button: 0, buttons: 0, relatedTarget: function(t) {
122
138
  return t.relatedTarget === void 0 ? t.fromElement === t.srcElement ? t.toElement : t.fromElement : t.relatedTarget;
123
139
  }, movementX: function(t) {
124
- return "movementX" in t ? t.movementX : (t !== U && (U && t.type === "mousemove" ? (te = t.screenX - U.screenX, ne = t.screenY - U.screenY) : ne = te = 0, U = t), te);
140
+ return "movementX" in t ? t.movementX : (t !== N && (N && t.type === "mousemove" ? (ne = t.screenX - N.screenX, re = t.screenY - N.screenY) : re = ne = 0, N = t), ne);
125
141
  }, movementY: function(t) {
126
- return "movementY" in t ? t.movementY : ne;
142
+ return "movementY" in t ? t.movementY : re;
127
143
  } });
128
- g(K);
129
- var Te = y({}, K, { dataTransfer: 0 });
130
- g(Te);
131
- var w = y({}, N, { relatedTarget: 0 });
132
- g(w);
133
- var re = y({}, O, { animationName: 0, elapsedTime: 0, pseudoElement: 0 });
134
- g(re);
135
- var z = y({}, O, { clipboardData: function(t) {
144
+ w(X);
145
+ var Te = m({}, X, { dataTransfer: 0 });
146
+ w(Te);
147
+ var E = m({}, Y, { relatedTarget: 0 });
148
+ w(E);
149
+ var oe = m({}, U, { animationName: 0, elapsedTime: 0, pseudoElement: 0 });
150
+ w(oe);
151
+ var Z = m({}, U, { clipboardData: function(t) {
136
152
  return "clipboardData" in t ? t.clipboardData : window.clipboardData;
137
153
  } });
138
- g(z);
139
- var ce = y({}, O, { data: 0 });
140
- g(ce);
141
- var C = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, L = {
154
+ w(Z);
155
+ var ce = m({}, U, { data: 0 });
156
+ w(ce);
157
+ var b = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, x = {
142
158
  8: "Backspace",
143
159
  9: "Tab",
144
160
  12: "Clear",
@@ -176,40 +192,40 @@ function At() {
176
192
  145: "ScrollLock",
177
193
  224: "Meta"
178
194
  }, Me = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" };
179
- function F(t) {
195
+ function j(t) {
180
196
  var i = this.nativeEvent;
181
197
  return i.getModifierState ? i.getModifierState(t) : (t = Me[t]) ? !!i[t] : !1;
182
198
  }
183
- function Y() {
184
- return F;
199
+ function V() {
200
+ return j;
185
201
  }
186
- var oe = y({}, N, { key: function(t) {
202
+ var ae = m({}, Y, { key: function(t) {
187
203
  if (t.key) {
188
- var i = C[t.key] || t.key;
204
+ var i = b[t.key] || t.key;
189
205
  if (i !== "Unidentified") return i;
190
206
  }
191
- return t.type === "keypress" ? (t = x(t), t === 13 ? "Enter" : String.fromCharCode(t)) : t.type === "keydown" || t.type === "keyup" ? L[t.keyCode] || "Unidentified" : "";
192
- }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: Y, charCode: function(t) {
193
- return t.type === "keypress" ? x(t) : 0;
207
+ return t.type === "keypress" ? (t = F(t), t === 13 ? "Enter" : String.fromCharCode(t)) : t.type === "keydown" || t.type === "keyup" ? x[t.keyCode] || "Unidentified" : "";
208
+ }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: V, charCode: function(t) {
209
+ return t.type === "keypress" ? F(t) : 0;
194
210
  }, keyCode: function(t) {
195
211
  return t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
196
212
  }, which: function(t) {
197
- return t.type === "keypress" ? x(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
213
+ return t.type === "keypress" ? F(t) : t.type === "keydown" || t.type === "keyup" ? t.keyCode : 0;
198
214
  } });
199
- g(oe);
200
- var X = y({}, K, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 });
201
- g(X);
202
- var Re = y({}, N, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: Y });
203
- g(Re);
204
- var H = y({}, O, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 });
205
- g(H);
206
- var Se = y({}, K, { deltaX: function(t) {
215
+ w(ae);
216
+ var q = m({}, X, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 });
217
+ w(q);
218
+ var Re = m({}, Y, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: V });
219
+ w(Re);
220
+ var $ = m({}, U, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 });
221
+ w($);
222
+ var Oe = m({}, X, { deltaX: function(t) {
207
223
  return "deltaX" in t ? t.deltaX : "wheelDeltaX" in t ? -t.wheelDeltaX : 0;
208
224
  }, deltaY: function(t) {
209
225
  return "deltaY" in t ? t.deltaY : "wheelDeltaY" in t ? -t.wheelDeltaY : "wheelDelta" in t ? -t.wheelDelta : 0;
210
226
  }, deltaZ: 0, deltaMode: 0 });
211
- g(Se);
212
- function Oe(t, i, o, s, d, f, l, p, D) {
227
+ w(Oe);
228
+ function Se(t, i, o, s, d, f, l, p, D) {
213
229
  var S = Array.prototype.slice.call(arguments, 3);
214
230
  try {
215
231
  i.apply(o, S);
@@ -217,27 +233,27 @@ function At() {
217
233
  this.onError(Fe);
218
234
  }
219
235
  }
220
- var j = !1, B = null, Z = !1, ae = null, Ie = { onError: function(t) {
221
- j = !0, B = t;
236
+ var z = !1, J = null, Q = !1, ie = null, Pe = { onError: function(t) {
237
+ z = !0, J = t;
222
238
  } };
223
- function Pe(t, i, o, s, d, f, l, p, D) {
224
- j = !1, B = null, Oe.apply(Ie, arguments);
239
+ function Ie(t, i, o, s, d, f, l, p, D) {
240
+ z = !1, J = null, Se.apply(Pe, arguments);
225
241
  }
226
242
  function _e(t, i, o, s, d, f, l, p, D) {
227
- if (Pe.apply(this, arguments), j) {
228
- if (j) {
229
- var S = B;
230
- j = !1, B = null;
243
+ if (Ie.apply(this, arguments), z) {
244
+ if (z) {
245
+ var S = J;
246
+ z = !1, J = null;
231
247
  } 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.");
232
- Z || (Z = !0, ae = S);
248
+ Q || (Q = !0, ie = S);
233
249
  }
234
250
  }
235
- var ie = Array.isArray, I = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events, Ue = I[0], Le = I[1], We = I[2], Ae = I[3], xe = I[4], de = b.unstable_act;
251
+ var se = Array.isArray, L = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events, Ue = L[0], Le = L[1], Ae = L[2], We = L[3], Ne = L[4], de = g.unstable_act;
236
252
  function fe() {
237
253
  }
238
254
  function pe(t, i) {
239
255
  if (!t) return [];
240
- if (t = ee(t), !t) return [];
256
+ if (t = R(t), !t) return [];
241
257
  for (var o = t, s = []; ; ) {
242
258
  if (o.tag === 5 || o.tag === 6 || o.tag === 1 || o.tag === 0) {
243
259
  var d = o.stateNode;
@@ -254,31 +270,31 @@ function At() {
254
270
  }
255
271
  }
256
272
  }
257
- function R(t, i) {
273
+ function O(t, i) {
258
274
  if (t && !t._reactInternals) {
259
275
  var o = String(t);
260
- throw t = ie(t) ? "an array" : t && t.nodeType === 1 && t.tagName ? "a DOM node" : o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o, Error(i + "(...): the first argument must be a React class instance. Instead received: " + (t + "."));
276
+ throw t = se(t) ? "an array" : t && t.nodeType === 1 && t.tagName ? "a DOM node" : o === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : o, Error(i + "(...): the first argument must be a React class instance. Instead received: " + (t + "."));
261
277
  }
262
278
  }
263
- function $(t) {
279
+ function ee(t) {
264
280
  return !(!t || t.nodeType !== 1 || !t.tagName);
265
281
  }
266
- function P(t) {
267
- return $(t) ? !1 : t != null && typeof t.render == "function" && typeof t.setState == "function";
282
+ function A(t) {
283
+ return ee(t) ? !1 : t != null && typeof t.render == "function" && typeof t.setState == "function";
268
284
  }
269
- function V(t, i) {
270
- return P(t) ? t._reactInternals.type === i : !1;
285
+ function G(t, i) {
286
+ return A(t) ? t._reactInternals.type === i : !1;
271
287
  }
272
- function _(t, i) {
273
- return R(t, "findAllInRenderedTree"), t ? pe(t._reactInternals, i) : [];
288
+ function W(t, i) {
289
+ return O(t, "findAllInRenderedTree"), t ? pe(t._reactInternals, i) : [];
274
290
  }
275
- function J(t, i) {
276
- return R(t, "scryRenderedDOMComponentsWithClass"), _(t, function(o) {
277
- if ($(o)) {
291
+ function te(t, i) {
292
+ return O(t, "scryRenderedDOMComponentsWithClass"), W(t, function(o) {
293
+ if (ee(o)) {
278
294
  var s = o.className;
279
295
  typeof s != "string" && (s = o.getAttribute("class") || "");
280
296
  var d = s.split(/\s+/);
281
- if (!ie(i)) {
297
+ if (!se(i)) {
282
298
  if (i === void 0) throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
283
299
  i = i.split(/\s+/);
284
300
  }
@@ -290,13 +306,13 @@ function At() {
290
306
  });
291
307
  }
292
308
  function he(t, i) {
293
- return R(t, "scryRenderedDOMComponentsWithTag"), _(t, function(o) {
294
- return $(o) && o.tagName.toUpperCase() === i.toUpperCase();
309
+ return O(t, "scryRenderedDOMComponentsWithTag"), W(t, function(o) {
310
+ return ee(o) && o.tagName.toUpperCase() === i.toUpperCase();
295
311
  });
296
312
  }
297
313
  function me(t, i) {
298
- return R(t, "scryRenderedComponentsWithType"), _(t, function(o) {
299
- return V(o, i);
314
+ return O(t, "scryRenderedComponentsWithType"), W(t, function(o) {
315
+ return G(o, i);
300
316
  });
301
317
  }
302
318
  function ve(t, i, o) {
@@ -317,7 +333,7 @@ function At() {
317
333
  function ge(t, i) {
318
334
  var o = t.stateNode;
319
335
  if (!o) return null;
320
- var s = We(o);
336
+ var s = Ae(o);
321
337
  if (!s) return null;
322
338
  o = s[i];
323
339
  e: switch (i) {
@@ -341,61 +357,61 @@ function At() {
341
357
  if (o && typeof o != "function") throw Error("Expected `" + i + "` listener to be a function, instead got a value of `" + typeof o + "` type.");
342
358
  return o;
343
359
  }
344
- function Ne(t, i, o) {
360
+ function xe(t, i, o) {
345
361
  t && o && o._reactName && (i = ge(t, o._reactName)) && (o._dispatchListeners == null && (o._dispatchListeners = []), o._dispatchInstances == null && (o._dispatchInstances = []), o._dispatchListeners.push(i), o._dispatchInstances.push(t));
346
362
  }
347
- function se(t, i, o) {
363
+ function ue(t, i, o) {
348
364
  var s = o._reactName;
349
365
  i === "captured" && (s += "Capture"), (i = ge(t, s)) && (o._dispatchListeners == null && (o._dispatchListeners = []), o._dispatchInstances == null && (o._dispatchInstances = []), o._dispatchListeners.push(i), o._dispatchInstances.push(t));
350
366
  }
351
- var we = {}, q = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
367
+ var we = {}, H = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
352
368
  function Ke(t) {
353
369
  return function(i, o) {
354
- if (b.isValidElement(i)) 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.");
355
- if (P(i)) 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.");
370
+ if (g.isValidElement(i)) 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.");
371
+ if (A(i)) 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.");
356
372
  var s = "on" + t[0].toUpperCase() + t.slice(1), d = new fe();
357
373
  d.target = i, d.type = t.toLowerCase();
358
374
  var f = Ue(i), l = new ke(s, d.type, f, d, i);
359
- l.persist(), y(l, o), q.has(t) ? l && l._reactName && Ne(l._targetInst, null, l) : l && l._reactName && ye(l._targetInst, se, l), A.unstable_batchedUpdates(function() {
360
- if (Ae(i), l) {
375
+ l.persist(), m(l, o), H.has(t) ? l && l._reactName && xe(l._targetInst, null, l) : l && l._reactName && ye(l._targetInst, ue, l), P.unstable_batchedUpdates(function() {
376
+ if (We(i), l) {
361
377
  var p = l._dispatchListeners, D = l._dispatchInstances;
362
- if (ie(p)) for (var S = 0; S < p.length && !l.isPropagationStopped(); S++) ve(l, p[S], D[S]);
378
+ if (se(p)) for (var S = 0; S < p.length && !l.isPropagationStopped(); S++) ve(l, p[S], D[S]);
363
379
  else p && ve(l, p, D);
364
380
  l._dispatchListeners = null, l._dispatchInstances = null, l.isPersistent() || l.constructor.release(l);
365
381
  }
366
- if (Z) throw p = ae, Z = !1, ae = null, p;
367
- }), xe();
382
+ if (Q) throw p = ie, Q = !1, ie = null, p;
383
+ }), Ne();
368
384
  };
369
385
  }
370
386
  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(t) {
371
387
  we[t] = Ke(t);
372
- }), m.Simulate = we, m.act = de, m.findAllInRenderedTree = _, m.findRenderedComponentWithType = function(t, i) {
373
- if (R(t, "findRenderedComponentWithType"), t = me(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for componentType:" + i);
388
+ }), v.Simulate = we, v.act = de, v.findAllInRenderedTree = W, v.findRenderedComponentWithType = function(t, i) {
389
+ if (O(t, "findRenderedComponentWithType"), t = me(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for componentType:" + i);
374
390
  return t[0];
375
- }, m.findRenderedDOMComponentWithClass = function(t, i) {
376
- if (R(t, "findRenderedDOMComponentWithClass"), t = J(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for class:" + i);
391
+ }, v.findRenderedDOMComponentWithClass = function(t, i) {
392
+ if (O(t, "findRenderedDOMComponentWithClass"), t = te(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for class:" + i);
377
393
  return t[0];
378
- }, m.findRenderedDOMComponentWithTag = function(t, i) {
379
- if (R(t, "findRenderedDOMComponentWithTag"), t = he(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for tag:" + i);
394
+ }, v.findRenderedDOMComponentWithTag = function(t, i) {
395
+ if (O(t, "findRenderedDOMComponentWithTag"), t = he(t, i), t.length !== 1) throw Error("Did not find exactly one match (found: " + t.length + ") for tag:" + i);
380
396
  return t[0];
381
- }, m.isCompositeComponent = P, m.isCompositeComponentWithType = V, m.isDOMComponent = $, m.isDOMComponentElement = function(t) {
382
- return !!(t && b.isValidElement(t) && t.tagName);
383
- }, m.isElement = function(t) {
384
- return b.isValidElement(t);
385
- }, m.isElementOfType = function(t, i) {
386
- return b.isValidElement(t) && t.type === i;
387
- }, m.mockComponent = function(t, i) {
397
+ }, v.isCompositeComponent = A, v.isCompositeComponentWithType = G, v.isDOMComponent = ee, v.isDOMComponentElement = function(t) {
398
+ return !!(t && g.isValidElement(t) && t.tagName);
399
+ }, v.isElement = function(t) {
400
+ return g.isValidElement(t);
401
+ }, v.isElementOfType = function(t, i) {
402
+ return g.isValidElement(t) && t.type === i;
403
+ }, v.mockComponent = function(t, i) {
388
404
  return i = i || t.mockTagName || "div", t.prototype.render.mockImplementation(function() {
389
- return b.createElement(i, null, this.props.children);
405
+ return g.createElement(i, null, this.props.children);
390
406
  }), this;
391
- }, m.nativeTouchData = function(t, i) {
407
+ }, v.nativeTouchData = function(t, i) {
392
408
  return { touches: [{ pageX: t, pageY: i }] };
393
- }, m.renderIntoDocument = function(t) {
409
+ }, v.renderIntoDocument = function(t) {
394
410
  var i = document.createElement("div");
395
- return A.render(t, i);
396
- }, m.scryRenderedComponentsWithType = me, m.scryRenderedDOMComponentsWithClass = J, m.scryRenderedDOMComponentsWithTag = he, m.traverseTwoPhase = ye, m;
411
+ return P.render(t, i);
412
+ }, v.scryRenderedComponentsWithType = me, v.scryRenderedDOMComponentsWithClass = te, v.scryRenderedDOMComponentsWithTag = he, v.traverseTwoPhase = ye, v;
397
413
  }
398
- var v = {};
414
+ var y = {};
399
415
  /**
400
416
  * @license React
401
417
  * react-dom-test-utils.development.js
@@ -408,24 +424,24 @@ var v = {};
408
424
  var st;
409
425
  function xt() {
410
426
  return st || (st = 1, process.env.NODE_ENV !== "production" && function() {
411
- var b = lt, A = ct, Q = b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
412
- function ue(e) {
427
+ var g = lt, P = ct, _ = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
428
+ function I(e) {
413
429
  {
414
430
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
415
431
  r[a - 1] = arguments[a];
416
- y("warn", e, r);
432
+ m("warn", e, r);
417
433
  }
418
434
  }
419
- function ee(e) {
435
+ function R(e) {
420
436
  {
421
437
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
422
438
  r[a - 1] = arguments[a];
423
- y("error", e, r);
439
+ m("error", e, r);
424
440
  }
425
441
  }
426
- function y(e, n, r) {
442
+ function m(e, n, r) {
427
443
  {
428
- var a = Q.ReactDebugCurrentFrame, u = a.getStackAddendum();
444
+ var a = _.ReactDebugCurrentFrame, u = a.getStackAddendum();
429
445
  u !== "" && (n += "%s", r = r.concat([u]));
430
446
  var c = r.map(function(h) {
431
447
  return String(h);
@@ -433,21 +449,21 @@ function xt() {
433
449
  c.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, c);
434
450
  }
435
451
  }
436
- function x(e) {
452
+ function F(e) {
437
453
  return e._reactInternals;
438
454
  }
439
- var G = 0, le = 1, g = 3, O = 5, ke = 6, N = (
455
+ var B = 0, le = 1, w = 3, U = 5, ke = 6, Y = (
440
456
  /* */
441
457
  0
442
- ), te = (
458
+ ), ne = (
443
459
  /* */
444
460
  2
445
- ), ne = (
461
+ ), re = (
446
462
  /* */
447
463
  4096
448
464
  );
449
- Q.ReactCurrentOwner;
450
- function U(e) {
465
+ _.ReactCurrentOwner;
466
+ function N(e) {
451
467
  var n = e, r = e;
452
468
  if (e.alternate)
453
469
  for (; n.return; )
@@ -455,19 +471,19 @@ function xt() {
455
471
  else {
456
472
  var a = n;
457
473
  do
458
- n = a, (n.flags & (te | ne)) !== N && (r = n.return), a = n.return;
474
+ n = a, (n.flags & (ne | re)) !== Y && (r = n.return), a = n.return;
459
475
  while (a);
460
476
  }
461
- return n.tag === g ? r : null;
477
+ return n.tag === w ? r : null;
462
478
  }
463
- function K(e) {
464
- if (U(e) !== e)
479
+ function X(e) {
480
+ if (N(e) !== e)
465
481
  throw new Error("Unable to find node on an unmounted component.");
466
482
  }
467
483
  function Te(e) {
468
484
  var n = e.alternate;
469
485
  if (!n) {
470
- var r = U(e);
486
+ var r = N(e);
471
487
  if (r === null)
472
488
  throw new Error("Unable to find node on an unmounted component.");
473
489
  return r !== e ? null : e;
@@ -488,9 +504,9 @@ function xt() {
488
504
  if (c.child === h.child) {
489
505
  for (var M = c.child; M; ) {
490
506
  if (M === a)
491
- return K(c), e;
507
+ return X(c), e;
492
508
  if (M === u)
493
- return K(c), n;
509
+ return X(c), n;
494
510
  M = M.sibling;
495
511
  }
496
512
  throw new Error("Unable to find node on an unmounted component.");
@@ -498,28 +514,28 @@ function xt() {
498
514
  if (a.return !== u.return)
499
515
  a = c, u = h;
500
516
  else {
501
- for (var k = !1, E = c.child; E; ) {
502
- if (E === a) {
517
+ for (var k = !1, C = c.child; C; ) {
518
+ if (C === a) {
503
519
  k = !0, a = c, u = h;
504
520
  break;
505
521
  }
506
- if (E === u) {
522
+ if (C === u) {
507
523
  k = !0, u = c, a = h;
508
524
  break;
509
525
  }
510
- E = E.sibling;
526
+ C = C.sibling;
511
527
  }
512
528
  if (!k) {
513
- for (E = h.child; E; ) {
514
- if (E === a) {
529
+ for (C = h.child; C; ) {
530
+ if (C === a) {
515
531
  k = !0, a = h, u = c;
516
532
  break;
517
533
  }
518
- if (E === u) {
534
+ if (C === u) {
519
535
  k = !0, u = h, a = c;
520
536
  break;
521
537
  }
522
- E = E.sibling;
538
+ C = C.sibling;
523
539
  }
524
540
  if (!k)
525
541
  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.");
@@ -528,22 +544,22 @@ function xt() {
528
544
  if (a.alternate !== u)
529
545
  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.");
530
546
  }
531
- if (a.tag !== g)
547
+ if (a.tag !== w)
532
548
  throw new Error("Unable to find node on an unmounted component.");
533
549
  return a.stateNode.current === a ? e : n;
534
550
  }
535
- var w = Object.assign;
536
- function re(e) {
551
+ var E = Object.assign;
552
+ function oe(e) {
537
553
  var n, r = e.keyCode;
538
554
  return "charCode" in e ? (n = e.charCode, n === 0 && r === 13 && (n = 13)) : n = r, n === 10 && (n = 13), n >= 32 || n === 13 ? n : 0;
539
555
  }
540
- function z() {
556
+ function Z() {
541
557
  return !0;
542
558
  }
543
559
  function ce() {
544
560
  return !1;
545
561
  }
546
- function C(e) {
562
+ function b(e) {
547
563
  function n(r, a, u, c, h) {
548
564
  this._reactName = r, this._targetInst = u, this.type = a, this.nativeEvent = c, this.target = h, this.currentTarget = null;
549
565
  for (var T in e)
@@ -552,17 +568,17 @@ function xt() {
552
568
  M ? this[T] = M(c) : this[T] = c[T];
553
569
  }
554
570
  var k = c.defaultPrevented != null ? c.defaultPrevented : c.returnValue === !1;
555
- return k ? this.isDefaultPrevented = z : this.isDefaultPrevented = ce, this.isPropagationStopped = ce, this;
571
+ return k ? this.isDefaultPrevented = Z : this.isDefaultPrevented = ce, this.isPropagationStopped = ce, this;
556
572
  }
557
- return w(n.prototype, {
573
+ return E(n.prototype, {
558
574
  preventDefault: function() {
559
575
  this.defaultPrevented = !0;
560
576
  var r = this.nativeEvent;
561
- r && (r.preventDefault ? r.preventDefault() : typeof r.returnValue != "unknown" && (r.returnValue = !1), this.isDefaultPrevented = z);
577
+ r && (r.preventDefault ? r.preventDefault() : typeof r.returnValue != "unknown" && (r.returnValue = !1), this.isDefaultPrevented = Z);
562
578
  },
563
579
  stopPropagation: function() {
564
580
  var r = this.nativeEvent;
565
- r && (r.stopPropagation ? r.stopPropagation() : typeof r.cancelBubble != "unknown" && (r.cancelBubble = !0), this.isPropagationStopped = z);
581
+ r && (r.stopPropagation ? r.stopPropagation() : typeof r.cancelBubble != "unknown" && (r.cancelBubble = !0), this.isPropagationStopped = Z);
566
582
  },
567
583
  /**
568
584
  * We release all dispatched `SyntheticEvent`s after each event loop, adding
@@ -576,10 +592,10 @@ function xt() {
576
592
  *
577
593
  * @return {boolean} True if this should not be released, false otherwise.
578
594
  */
579
- isPersistent: z
595
+ isPersistent: Z
580
596
  }), n;
581
597
  }
582
- var L = {
598
+ var x = {
583
599
  eventPhase: 0,
584
600
  bubbles: 0,
585
601
  cancelable: 0,
@@ -588,16 +604,16 @@ function xt() {
588
604
  },
589
605
  defaultPrevented: 0,
590
606
  isTrusted: 0
591
- }, Me = C(L), F = w({}, L, {
607
+ }, Me = b(x), j = E({}, x, {
592
608
  view: 0,
593
609
  detail: 0
594
610
  });
595
- C(F);
596
- var Y, oe, X;
611
+ b(j);
612
+ var V, ae, q;
597
613
  function Re(e) {
598
- e !== X && (X && e.type === "mousemove" ? (Y = e.screenX - X.screenX, oe = e.screenY - X.screenY) : (Y = 0, oe = 0), X = e);
614
+ e !== q && (q && e.type === "mousemove" ? (V = e.screenX - q.screenX, ae = e.screenY - q.screenY) : (V = 0, ae = 0), q = e);
599
615
  }
600
- var H = w({}, F, {
616
+ var $ = E({}, j, {
601
617
  screenX: 0,
602
618
  screenY: 0,
603
619
  clientX: 0,
@@ -608,45 +624,45 @@ function xt() {
608
624
  shiftKey: 0,
609
625
  altKey: 0,
610
626
  metaKey: 0,
611
- getModifierState: I,
627
+ getModifierState: L,
612
628
  button: 0,
613
629
  buttons: 0,
614
630
  relatedTarget: function(e) {
615
631
  return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget;
616
632
  },
617
633
  movementX: function(e) {
618
- return "movementX" in e ? e.movementX : (Re(e), Y);
634
+ return "movementX" in e ? e.movementX : (Re(e), V);
619
635
  },
620
636
  movementY: function(e) {
621
- return "movementY" in e ? e.movementY : oe;
637
+ return "movementY" in e ? e.movementY : ae;
622
638
  }
623
639
  });
624
- C(H);
625
- var Se = w({}, H, {
640
+ b($);
641
+ var Oe = E({}, $, {
626
642
  dataTransfer: 0
627
643
  });
628
- C(Se);
629
- var Oe = w({}, F, {
644
+ b(Oe);
645
+ var Se = E({}, j, {
630
646
  relatedTarget: 0
631
647
  });
632
- C(Oe);
633
- var j = w({}, L, {
648
+ b(Se);
649
+ var z = E({}, x, {
634
650
  animationName: 0,
635
651
  elapsedTime: 0,
636
652
  pseudoElement: 0
637
653
  });
638
- C(j);
639
- var B = w({}, L, {
654
+ b(z);
655
+ var J = E({}, x, {
640
656
  clipboardData: function(e) {
641
657
  return "clipboardData" in e ? e.clipboardData : window.clipboardData;
642
658
  }
643
659
  });
644
- C(B);
645
- var Z = w({}, L, {
660
+ b(J);
661
+ var Q = E({}, x, {
646
662
  data: 0
647
663
  });
648
- C(Z);
649
- var ae = {
664
+ b(Q);
665
+ var ie = {
650
666
  Esc: "Escape",
651
667
  Spacebar: " ",
652
668
  Left: "ArrowLeft",
@@ -659,7 +675,7 @@ function xt() {
659
675
  Apps: "ContextMenu",
660
676
  Scroll: "ScrollLock",
661
677
  MozPrintableKey: "Unidentified"
662
- }, Ie = {
678
+ }, Pe = {
663
679
  8: "Backspace",
664
680
  9: "Tab",
665
681
  12: "Clear",
@@ -697,17 +713,17 @@ function xt() {
697
713
  145: "ScrollLock",
698
714
  224: "Meta"
699
715
  };
700
- function Pe(e) {
716
+ function Ie(e) {
701
717
  if (e.key) {
702
- var n = ae[e.key] || e.key;
718
+ var n = ie[e.key] || e.key;
703
719
  if (n !== "Unidentified")
704
720
  return n;
705
721
  }
706
722
  if (e.type === "keypress") {
707
- var r = re(e);
723
+ var r = oe(e);
708
724
  return r === 13 ? "Enter" : String.fromCharCode(r);
709
725
  }
710
- return e.type === "keydown" || e.type === "keyup" ? Ie[e.keyCode] || "Unidentified" : "";
726
+ return e.type === "keydown" || e.type === "keyup" ? Pe[e.keyCode] || "Unidentified" : "";
711
727
  }
712
728
  var _e = {
713
729
  Alt: "altKey",
@@ -715,18 +731,18 @@ function xt() {
715
731
  Meta: "metaKey",
716
732
  Shift: "shiftKey"
717
733
  };
718
- function ie(e) {
734
+ function se(e) {
719
735
  var n = this, r = n.nativeEvent;
720
736
  if (r.getModifierState)
721
737
  return r.getModifierState(e);
722
738
  var a = _e[e];
723
739
  return a ? !!r[a] : !1;
724
740
  }
725
- function I(e) {
726
- return ie;
741
+ function L(e) {
742
+ return se;
727
743
  }
728
- var Ue = w({}, F, {
729
- key: Pe,
744
+ var Ue = E({}, j, {
745
+ key: Ie,
730
746
  code: 0,
731
747
  location: 0,
732
748
  ctrlKey: 0,
@@ -735,20 +751,20 @@ function xt() {
735
751
  metaKey: 0,
736
752
  repeat: 0,
737
753
  locale: 0,
738
- getModifierState: I,
754
+ getModifierState: L,
739
755
  // Legacy Interface
740
756
  charCode: function(e) {
741
- return e.type === "keypress" ? re(e) : 0;
757
+ return e.type === "keypress" ? oe(e) : 0;
742
758
  },
743
759
  keyCode: function(e) {
744
760
  return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
745
761
  },
746
762
  which: function(e) {
747
- return e.type === "keypress" ? re(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
763
+ return e.type === "keypress" ? oe(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0;
748
764
  }
749
765
  });
750
- C(Ue);
751
- var Le = w({}, H, {
766
+ b(Ue);
767
+ var Le = E({}, $, {
752
768
  pointerId: 0,
753
769
  width: 0,
754
770
  height: 0,
@@ -760,8 +776,8 @@ function xt() {
760
776
  pointerType: 0,
761
777
  isPrimary: 0
762
778
  });
763
- C(Le);
764
- var We = w({}, F, {
779
+ b(Le);
780
+ var Ae = E({}, j, {
765
781
  touches: 0,
766
782
  targetTouches: 0,
767
783
  changedTouches: 0,
@@ -769,16 +785,16 @@ function xt() {
769
785
  metaKey: 0,
770
786
  ctrlKey: 0,
771
787
  shiftKey: 0,
772
- getModifierState: I
788
+ getModifierState: L
773
789
  });
774
- C(We);
775
- var Ae = w({}, L, {
790
+ b(Ae);
791
+ var We = E({}, x, {
776
792
  propertyName: 0,
777
793
  elapsedTime: 0,
778
794
  pseudoElement: 0
779
795
  });
780
- C(Ae);
781
- var xe = w({}, H, {
796
+ b(We);
797
+ var Ne = E({}, $, {
782
798
  deltaX: function(e) {
783
799
  return "deltaX" in e ? e.deltaX : (
784
800
  // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
@@ -801,75 +817,75 @@ function xt() {
801
817
  // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
802
818
  deltaMode: 0
803
819
  });
804
- C(xe);
820
+ b(Ne);
805
821
  var de = 1;
806
822
  function fe(e, n, r, a, u, c, h, T, M) {
807
823
  var k = Array.prototype.slice.call(arguments, 3);
808
824
  try {
809
825
  n.apply(r, k);
810
- } catch (E) {
811
- this.onError(E);
826
+ } catch (C) {
827
+ this.onError(C);
812
828
  }
813
829
  }
814
830
  var pe = fe;
815
831
  if (typeof window < "u" && typeof window.dispatchEvent == "function" && typeof document < "u" && typeof document.createEvent == "function") {
816
- var R = document.createElement("react");
832
+ var O = document.createElement("react");
817
833
  pe = function(n, r, a, u, c, h, T, M, k) {
818
834
  if (typeof document > "u" || document === null)
819
835
  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.");
820
- var E = document.createEvent("Event"), Xe = !1, Qe = !0, Lt = window.event, et = Object.getOwnPropertyDescriptor(window, "event");
836
+ var C = document.createEvent("Event"), Xe = !1, Qe = !0, Lt = window.event, et = Object.getOwnPropertyDescriptor(window, "event");
821
837
  function tt() {
822
- R.removeEventListener(je, nt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = Lt);
838
+ O.removeEventListener(je, nt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = Lt);
823
839
  }
824
- var Wt = Array.prototype.slice.call(arguments, 3);
840
+ var At = Array.prototype.slice.call(arguments, 3);
825
841
  function nt() {
826
- Xe = !0, tt(), r.apply(a, Wt), Qe = !1;
842
+ Xe = !0, tt(), r.apply(a, At), Qe = !1;
827
843
  }
828
- var W, rt = !1, ot = !1;
844
+ var K, rt = !1, ot = !1;
829
845
  function at(be) {
830
- if (W = be.error, rt = !0, W === null && be.colno === 0 && be.lineno === 0 && (ot = !0), be.defaultPrevented && W != null && typeof W == "object")
846
+ if (K = be.error, rt = !0, K === null && be.colno === 0 && be.lineno === 0 && (ot = !0), be.defaultPrevented && K != null && typeof K == "object")
831
847
  try {
832
- W._suppressLogging = !0;
848
+ K._suppressLogging = !0;
833
849
  } catch {
834
850
  }
835
851
  }
836
852
  var je = "react-" + (n || "invokeguardedcallback");
837
- if (window.addEventListener("error", at), R.addEventListener(je, nt, !1), E.initEvent(je, !1, !1), R.dispatchEvent(E), et && Object.defineProperty(window, "event", et), Xe && Qe && (rt ? ot && (W = 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.")) : W = 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(W)), window.removeEventListener("error", at), !Xe)
853
+ if (window.addEventListener("error", at), O.addEventListener(je, nt, !1), C.initEvent(je, !1, !1), O.dispatchEvent(C), et && Object.defineProperty(window, "event", et), Xe && Qe && (rt ? ot && (K = 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.")) : K = 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(K)), window.removeEventListener("error", at), !Xe)
838
854
  return tt(), fe.apply(this, arguments);
839
855
  };
840
856
  }
841
- var $ = pe, P = !1, V = null, _ = !1, J = null, he = {
857
+ var ee = pe, A = !1, G = null, W = !1, te = null, he = {
842
858
  onError: function(e) {
843
- P = !0, V = e;
859
+ A = !0, G = e;
844
860
  }
845
861
  };
846
862
  function me(e, n, r, a, u, c, h, T, M) {
847
- P = !1, V = null, $.apply(he, arguments);
863
+ A = !1, G = null, ee.apply(he, arguments);
848
864
  }
849
865
  function ve(e, n, r, a, u, c, h, T, M) {
850
- if (me.apply(this, arguments), P) {
866
+ if (me.apply(this, arguments), A) {
851
867
  var k = ge();
852
- _ || (_ = !0, J = k);
868
+ W || (W = !0, te = k);
853
869
  }
854
870
  }
855
871
  function ye() {
856
- if (_) {
857
- var e = J;
858
- throw _ = !1, J = null, e;
872
+ if (W) {
873
+ var e = te;
874
+ throw W = !1, te = null, e;
859
875
  }
860
876
  }
861
877
  function ge() {
862
- if (P) {
863
- var e = V;
864
- return P = !1, V = null, e;
878
+ if (A) {
879
+ var e = G;
880
+ return A = !1, G = null, e;
865
881
  } else
866
882
  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.");
867
883
  }
868
- var Ne = Array.isArray;
869
- function se(e) {
870
- return Ne(e);
884
+ var xe = Array.isArray;
885
+ function ue(e) {
886
+ return xe(e);
871
887
  }
872
- var we = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, q = we.Events, Ke = q[0], t = q[1], i = q[2], o = q[3], s = q[4], d = b.unstable_act;
888
+ var we = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, H = we.Events, Ke = H[0], t = H[1], i = H[2], o = H[3], s = H[4], d = g.unstable_act;
873
889
  function f(e) {
874
890
  }
875
891
  var l = !1;
@@ -880,7 +896,7 @@ function xt() {
880
896
  if (!r)
881
897
  return [];
882
898
  for (var a = r, u = []; ; ) {
883
- if (a.tag === O || a.tag === ke || a.tag === le || a.tag === G) {
899
+ if (a.tag === U || a.tag === ke || a.tag === le || a.tag === B) {
884
900
  var c = a.stateNode;
885
901
  n(c) && u.push(c);
886
902
  }
@@ -899,28 +915,28 @@ function xt() {
899
915
  }
900
916
  }
901
917
  function D(e, n) {
902
- if (e && !x(e)) {
918
+ if (e && !F(e)) {
903
919
  var r, a = String(e);
904
- throw se(e) ? r = "an array" : e && e.nodeType === de && e.tagName ? r = "a DOM node" : a === "[object Object]" ? r = "object with keys {" + Object.keys(e).join(", ") + "}" : r = a, new Error(n + "(...): the first argument must be a React class instance. " + ("Instead received: " + r + "."));
920
+ throw ue(e) ? r = "an array" : e && e.nodeType === de && e.tagName ? r = "a DOM node" : a === "[object Object]" ? r = "object with keys {" + Object.keys(e).join(", ") + "}" : r = a, new Error(n + "(...): the first argument must be a React class instance. " + ("Instead received: " + r + "."));
905
921
  }
906
922
  }
907
923
  var S = !1;
908
924
  function Fe(e) {
909
- S || (S = !0, ee("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."));
925
+ S || (S = !0, R("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."));
910
926
  var n = document.createElement("div");
911
- return A.render(e, n);
927
+ return P.render(e, n);
912
928
  }
913
929
  function dt(e) {
914
- return b.isValidElement(e);
930
+ return g.isValidElement(e);
915
931
  }
916
932
  function ft(e, n) {
917
- return b.isValidElement(e) && e.type === n;
933
+ return g.isValidElement(e) && e.type === n;
918
934
  }
919
935
  function Ee(e) {
920
936
  return !!(e && e.nodeType === de && e.tagName);
921
937
  }
922
938
  function pt(e) {
923
- return !!(e && b.isValidElement(e) && e.tagName);
939
+ return !!(e && g.isValidElement(e) && e.tagName);
924
940
  }
925
941
  function Ye(e) {
926
942
  return Ee(e) ? !1 : e != null && typeof e.render == "function" && typeof e.setState == "function";
@@ -928,13 +944,13 @@ function xt() {
928
944
  function Ve(e, n) {
929
945
  if (!Ye(e))
930
946
  return !1;
931
- var r = x(e), a = r.type;
947
+ var r = F(e), a = r.type;
932
948
  return a === n;
933
949
  }
934
950
  function Ce(e, n) {
935
951
  if (D(e, "findAllInRenderedTree"), !e)
936
952
  return [];
937
- var r = x(e);
953
+ var r = F(e);
938
954
  return p(r, n);
939
955
  }
940
956
  function qe(e, n) {
@@ -943,7 +959,7 @@ function xt() {
943
959
  var a = r.className;
944
960
  typeof a != "string" && (a = r.getAttribute("class") || "");
945
961
  var u = a.split(/\s+/);
946
- if (!se(n)) {
962
+ if (!ue(n)) {
947
963
  if (n === void 0)
948
964
  throw new Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
949
965
  n = n.split(/\s+/);
@@ -962,35 +978,35 @@ function xt() {
962
978
  throw new Error("Did not find exactly one match (found: " + r.length + ") for class:" + n);
963
979
  return r[0];
964
980
  }
965
- function Ge(e, n) {
981
+ function ze(e, n) {
966
982
  return D(e, "scryRenderedDOMComponentsWithTag"), Ce(e, function(r) {
967
983
  return Ee(r) && r.tagName.toUpperCase() === n.toUpperCase();
968
984
  });
969
985
  }
970
986
  function mt(e, n) {
971
987
  D(e, "findRenderedDOMComponentWithTag");
972
- var r = Ge(e, n);
988
+ var r = ze(e, n);
973
989
  if (r.length !== 1)
974
990
  throw new Error("Did not find exactly one match (found: " + r.length + ") for tag:" + n);
975
991
  return r[0];
976
992
  }
977
- function ze(e, n) {
993
+ function Ge(e, n) {
978
994
  return D(e, "scryRenderedComponentsWithType"), Ce(e, function(r) {
979
995
  return Ve(r, n);
980
996
  });
981
997
  }
982
998
  function vt(e, n) {
983
999
  D(e, "findRenderedComponentWithType");
984
- var r = ze(e, n);
1000
+ var r = Ge(e, n);
985
1001
  if (r.length !== 1)
986
1002
  throw new Error("Did not find exactly one match (found: " + r.length + ") for componentType:" + n);
987
1003
  return r[0];
988
1004
  }
989
1005
  function yt(e, n) {
990
- return l || (l = !0, ue(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
1006
+ return l || (l = !0, I(`ReactTestUtils.mockComponent() is deprecated. Use shallow rendering or jest.mock() instead.
991
1007
 
992
1008
  See https://reactjs.org/link/test-utils-mock-component for more information.`)), n = n || e.mockTagName || "div", e.prototype.render.mockImplementation(function() {
993
- return b.createElement(n, null, this.props.children);
1009
+ return g.createElement(n, null, this.props.children);
994
1010
  }), this;
995
1011
  }
996
1012
  function gt(e, n) {
@@ -1007,7 +1023,7 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1007
1023
  }
1008
1024
  function wt(e) {
1009
1025
  var n = e._dispatchListeners, r = e._dispatchInstances;
1010
- if (se(n))
1026
+ if (ue(n))
1011
1027
  for (var a = 0; a < n.length && !e.isPropagationStopped(); a++)
1012
1028
  He(e, n[a], r[a]);
1013
1029
  else n && He(e, n, r);
@@ -1022,7 +1038,7 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1022
1038
  function bt(e) {
1023
1039
  do
1024
1040
  e = e.return;
1025
- while (e && e.tag !== O);
1041
+ while (e && e.tag !== U);
1026
1042
  return e || null;
1027
1043
  }
1028
1044
  function Be(e, n, r) {
@@ -1077,50 +1093,54 @@ See https://reactjs.org/link/test-utils-mock-component for more information.`)),
1077
1093
  }
1078
1094
  }
1079
1095
  function Mt(e, n, r) {
1080
- e || ee("Dispatching inst must not be null");
1096
+ e || R("Dispatching inst must not be null");
1081
1097
  var a = kt(e, r, n);
1082
1098
  a && (r._dispatchListeners == null && (r._dispatchListeners = []), r._dispatchInstances == null && (r._dispatchInstances = []), r._dispatchListeners.push(a), r._dispatchInstances.push(e));
1083
1099
  }
1084
1100
  function Rt(e) {
1085
1101
  e && e._reactName && Tt(e._targetInst, null, e);
1086
1102
  }
1087
- function St(e) {
1103
+ function Ot(e) {
1088
1104
  e && e._reactName && Be(e._targetInst, Mt, e);
1089
1105
  }
1090
- var $e = {}, Ot = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
1091
- function It(e) {
1106
+ var $e = {}, St = /* @__PURE__ */ new Set(["mouseEnter", "mouseLeave", "pointerEnter", "pointerLeave"]);
1107
+ function Pt(e) {
1092
1108
  return function(n, r) {
1093
- if (b.isValidElement(n))
1109
+ if (g.isValidElement(n))
1094
1110
  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.");
1095
1111
  if (Ye(n))
1096
1112
  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.");
1097
1113
  var a = "on" + e[0].toUpperCase() + e.slice(1), u = new f();
1098
1114
  u.target = n, u.type = e.toLowerCase();
1099
1115
  var c = Ke(n), h = new Me(a, u.type, c, u, n);
1100
- h.persist(), w(h, r), Ot.has(e) ? Rt(h) : St(h), A.unstable_batchedUpdates(function() {
1116
+ h.persist(), E(h, r), St.has(e) ? Rt(h) : Ot(h), P.unstable_batchedUpdates(function() {
1101
1117
  o(n), Et(h), ye();
1102
1118
  }), s();
1103
1119
  };
1104
1120
  }
1105
- var Pt = ["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"];
1121
+ var It = ["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"];
1106
1122
  function _t() {
1107
- Pt.forEach(function(e) {
1108
- $e[e] = It(e);
1123
+ It.forEach(function(e) {
1124
+ $e[e] = Pt(e);
1109
1125
  });
1110
1126
  }
1111
1127
  _t();
1112
1128
  var Je = !1, Ut = function(n) {
1113
- return Je || (Je = !0, ee("`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.")), d(n);
1129
+ return Je || (Je = !0, R("`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.")), d(n);
1114
1130
  };
1115
- v.Simulate = $e, v.act = Ut, v.findAllInRenderedTree = Ce, v.findRenderedComponentWithType = vt, v.findRenderedDOMComponentWithClass = ht, v.findRenderedDOMComponentWithTag = mt, v.isCompositeComponent = Ye, v.isCompositeComponentWithType = Ve, v.isDOMComponent = Ee, v.isDOMComponentElement = pt, v.isElement = dt, v.isElementOfType = ft, v.mockComponent = yt, v.nativeTouchData = gt, v.renderIntoDocument = Fe, v.scryRenderedComponentsWithType = ze, v.scryRenderedDOMComponentsWithClass = qe, v.scryRenderedDOMComponentsWithTag = Ge, v.traverseTwoPhase = Be;
1116
- }()), v;
1131
+ y.Simulate = $e, y.act = Ut, y.findAllInRenderedTree = Ce, y.findRenderedComponentWithType = vt, y.findRenderedDOMComponentWithClass = ht, y.findRenderedDOMComponentWithTag = mt, y.isCompositeComponent = Ye, y.isCompositeComponentWithType = Ve, y.isDOMComponent = Ee, y.isDOMComponentElement = pt, y.isElement = dt, y.isElementOfType = ft, y.mockComponent = yt, y.nativeTouchData = gt, y.renderIntoDocument = Fe, y.scryRenderedComponentsWithType = Ge, y.scryRenderedDOMComponentsWithClass = qe, y.scryRenderedDOMComponentsWithTag = ze, y.traverseTwoPhase = Be;
1132
+ }()), y;
1117
1133
  }
1118
1134
  var ut;
1119
- function Nt() {
1120
- return ut || (ut = 1, process.env.NODE_ENV === "production" ? De.exports = At() : De.exports = xt()), De.exports;
1135
+ function Kt() {
1136
+ return ut || (ut = 1, process.env.NODE_ENV === "production" ? De.exports = Nt() : De.exports = xt()), De.exports;
1121
1137
  }
1122
- var Xt = Nt();
1138
+ var Ft = Kt();
1139
+ const Vt = /* @__PURE__ */ Wt({
1140
+ __proto__: null
1141
+ }, [Ft]);
1123
1142
  export {
1124
- Xt as t
1143
+ Ft as a,
1144
+ Vt as t
1125
1145
  };
1126
- //# sourceMappingURL=test-utils-uaSbIYda.js.map
1146
+ //# sourceMappingURL=test-utils-Brqoydie.js.map