@tscircuit/schematic-viewer 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +6 -1
- package/dist/index.js +33947 -5584
- package/dist/index.js.map +1 -1
- package/package.json +3 -5
- package/dist/Schematic.d.ts +0 -6
- package/dist/Schematic.js +0 -9650
- package/dist/Schematic.js.map +0 -1
- package/dist/lib/hooks/index.d.ts +0 -1
- package/dist/lib/hooks/index.js +0 -2170
- package/dist/lib/hooks/index.js.map +0 -1
- package/dist/lib/hooks/use-maybe-promise.d.ts +0 -3
- package/dist/lib/hooks/use-maybe-promise.js +0 -2170
- package/dist/lib/hooks/use-maybe-promise.js.map +0 -1
- package/dist/lib/render-context/index.d.ts +0 -10
- package/dist/lib/render-context/index.js +0 -45
- package/dist/lib/render-context/index.js.map +0 -1
- package/dist/lib/types/core.d.ts +0 -149
- package/dist/lib/types/core.js +0 -18
- package/dist/lib/types/core.js.map +0 -1
- package/dist/lib/types/index.d.ts +0 -4
- package/dist/lib/types/index.js +0 -18
- package/dist/lib/types/index.js.map +0 -1
- package/dist/lib/types/route-solver.d.ts +0 -24
- package/dist/lib/types/route-solver.js +0 -18
- package/dist/lib/types/route-solver.js.map +0 -1
- package/dist/lib/types/source-component.d.ts +0 -44
- package/dist/lib/types/source-component.js +0 -18
- package/dist/lib/types/source-component.js.map +0 -1
- package/dist/lib/types/util.d.ts +0 -14
- package/dist/lib/types/util.js +0 -18
- package/dist/lib/types/util.js.map +0 -1
- package/dist/lib/utils/direction-to-vec.d.ts +0 -13
- package/dist/lib/utils/direction-to-vec.js +0 -96
- package/dist/lib/utils/direction-to-vec.js.map +0 -1
- package/dist/lib/utils/get-svg-path-bounds.d.ts +0 -10
- package/dist/lib/utils/get-svg-path-bounds.js +0 -51
- package/dist/lib/utils/get-svg-path-bounds.js.map +0 -1
- package/dist/lib/utils/point-math.d.ts +0 -20
- package/dist/lib/utils/point-math.js +0 -57
- package/dist/lib/utils/point-math.js.map +0 -1
- package/dist/pages/_app.d.ts +0 -5
- package/dist/pages/_app.js +0 -3656
- package/dist/pages/_app.js.map +0 -1
- package/dist/pages/index.d.ts +0 -3
- package/dist/pages/index.js +0 -9662
- package/dist/pages/index.js.map +0 -1
- package/dist/pages/led-circuit-react.d.ts +0 -3
- package/dist/pages/led-circuit-react.js +0 -9731
- package/dist/pages/led-circuit-react.js.map +0 -1
- package/dist/pages/led-circuit.d.ts +0 -3
- package/dist/pages/led-circuit.js +0 -9711
- package/dist/pages/led-circuit.js.map +0 -1
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.d.ts +0 -7
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.js +0 -3107
- package/dist/schematic-components/MovableGrid/MovableGrid.stories.js.map +0 -1
- package/dist/schematic-components/MovableGrid/index.d.ts +0 -3
- package/dist/schematic-components/MovableGrid/index.js +0 -3091
- package/dist/schematic-components/MovableGrid/index.js.map +0 -1
- package/dist/schematic-components/ProjectComponent.d.ts +0 -10
- package/dist/schematic-components/ProjectComponent.js +0 -9622
- package/dist/schematic-components/ProjectComponent.js.map +0 -1
- package/dist/schematic-components/RenderError.d.ts +0 -6
- package/dist/schematic-components/RenderError.js +0 -3098
- package/dist/schematic-components/RenderError.js.map +0 -1
- package/dist/schematic-components/SVGPathComponent.d.ts +0 -19
- package/dist/schematic-components/SVGPathComponent.js +0 -3151
- package/dist/schematic-components/SVGPathComponent.js.map +0 -1
- package/dist/schematic-components/SchematicBug.d.ts +0 -13
- package/dist/schematic-components/SchematicBug.js +0 -3532
- package/dist/schematic-components/SchematicBug.js.map +0 -1
- package/dist/schematic-components/SchematicComponent.d.ts +0 -13
- package/dist/schematic-components/SchematicComponent.js +0 -9464
- package/dist/schematic-components/SchematicComponent.js.map +0 -1
- package/dist/schematic-components/SchematicGroup.d.ts +0 -3
- package/dist/schematic-components/SchematicGroup.js +0 -32
- package/dist/schematic-components/SchematicGroup.js.map +0 -1
- package/dist/schematic-components/SchematicPort.d.ts +0 -13
- package/dist/schematic-components/SchematicPort.js +0 -9327
- package/dist/schematic-components/SchematicPort.js.map +0 -1
- package/dist/schematic-components/SchematicText.d.ts +0 -10
- package/dist/schematic-components/SchematicText.js +0 -3124
- package/dist/schematic-components/SchematicText.js.map +0 -1
- package/dist/schematic-components/SchematicTrace.d.ts +0 -13
- package/dist/schematic-components/SchematicTrace.js +0 -3210
- package/dist/schematic-components/SchematicTrace.js.map +0 -1
- package/dist/schematic-components/SimpleCapacitor.d.ts +0 -13
- package/dist/schematic-components/SimpleCapacitor.js +0 -3170
- package/dist/schematic-components/SimpleCapacitor.js.map +0 -1
- package/dist/schematic-components/SimpleDiode.d.ts +0 -13
- package/dist/schematic-components/SimpleDiode.js +0 -3168
- package/dist/schematic-components/SimpleDiode.js.map +0 -1
- package/dist/schematic-components/SimpleGround.d.ts +0 -13
- package/dist/schematic-components/SimpleGround.js +0 -3169
- package/dist/schematic-components/SimpleGround.js.map +0 -1
- package/dist/schematic-components/SimpleInductor.d.ts +0 -13
- package/dist/schematic-components/SimpleInductor.js +0 -3169
- package/dist/schematic-components/SimpleInductor.js.map +0 -1
- package/dist/schematic-components/SimplePowerSource.d.ts +0 -13
- package/dist/schematic-components/SimplePowerSource.js +0 -3171
- package/dist/schematic-components/SimplePowerSource.js.map +0 -1
- package/dist/schematic-components/SimpleResistor.d.ts +0 -13
- package/dist/schematic-components/SimpleResistor.js +0 -3169
- package/dist/schematic-components/SimpleResistor.js.map +0 -1
- package/dist/schematic-components/index.d.ts +0 -18
- package/dist/schematic-components/index.js +0 -9656
- package/dist/schematic-components/index.js.map +0 -1
package/dist/pages/_app.js
DELETED
|
@@ -1,3656 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __export = (target, all) => {
|
|
11
|
-
for (var name in all)
|
|
12
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
-
};
|
|
14
|
-
var __copyProps = (to, from, except, desc) => {
|
|
15
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
-
for (let key of __getOwnPropNames(from))
|
|
17
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
26
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
-
|
|
28
|
-
// node_modules/react/cjs/react.production.min.js
|
|
29
|
-
var require_react_production_min = __commonJS({
|
|
30
|
-
"node_modules/react/cjs/react.production.min.js"(exports) {
|
|
31
|
-
"use strict";
|
|
32
|
-
var l = Symbol.for("react.element");
|
|
33
|
-
var n = Symbol.for("react.portal");
|
|
34
|
-
var p = Symbol.for("react.fragment");
|
|
35
|
-
var q = Symbol.for("react.strict_mode");
|
|
36
|
-
var r = Symbol.for("react.profiler");
|
|
37
|
-
var t = Symbol.for("react.provider");
|
|
38
|
-
var u = Symbol.for("react.context");
|
|
39
|
-
var v = Symbol.for("react.forward_ref");
|
|
40
|
-
var w = Symbol.for("react.suspense");
|
|
41
|
-
var x = Symbol.for("react.memo");
|
|
42
|
-
var y = Symbol.for("react.lazy");
|
|
43
|
-
var z = Symbol.iterator;
|
|
44
|
-
function A(a) {
|
|
45
|
-
if (null === a || "object" !== typeof a)
|
|
46
|
-
return null;
|
|
47
|
-
a = z && a[z] || a["@@iterator"];
|
|
48
|
-
return "function" === typeof a ? a : null;
|
|
49
|
-
}
|
|
50
|
-
var B = { isMounted: function() {
|
|
51
|
-
return false;
|
|
52
|
-
}, enqueueForceUpdate: function() {
|
|
53
|
-
}, enqueueReplaceState: function() {
|
|
54
|
-
}, enqueueSetState: function() {
|
|
55
|
-
} };
|
|
56
|
-
var C = Object.assign;
|
|
57
|
-
var D = {};
|
|
58
|
-
function E(a, b, e) {
|
|
59
|
-
this.props = a;
|
|
60
|
-
this.context = b;
|
|
61
|
-
this.refs = D;
|
|
62
|
-
this.updater = e || B;
|
|
63
|
-
}
|
|
64
|
-
E.prototype.isReactComponent = {};
|
|
65
|
-
E.prototype.setState = function(a, b) {
|
|
66
|
-
if ("object" !== typeof a && "function" !== typeof a && null != a)
|
|
67
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
68
|
-
this.updater.enqueueSetState(this, a, b, "setState");
|
|
69
|
-
};
|
|
70
|
-
E.prototype.forceUpdate = function(a) {
|
|
71
|
-
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
72
|
-
};
|
|
73
|
-
function F() {
|
|
74
|
-
}
|
|
75
|
-
F.prototype = E.prototype;
|
|
76
|
-
function G(a, b, e) {
|
|
77
|
-
this.props = a;
|
|
78
|
-
this.context = b;
|
|
79
|
-
this.refs = D;
|
|
80
|
-
this.updater = e || B;
|
|
81
|
-
}
|
|
82
|
-
var H = G.prototype = new F();
|
|
83
|
-
H.constructor = G;
|
|
84
|
-
C(H, E.prototype);
|
|
85
|
-
H.isPureReactComponent = true;
|
|
86
|
-
var I = Array.isArray;
|
|
87
|
-
var J = Object.prototype.hasOwnProperty;
|
|
88
|
-
var K = { current: null };
|
|
89
|
-
var L = { key: true, ref: true, __self: true, __source: true };
|
|
90
|
-
function M(a, b, e) {
|
|
91
|
-
var d, c = {}, k = null, h = null;
|
|
92
|
-
if (null != b)
|
|
93
|
-
for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
|
|
94
|
-
J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
|
|
95
|
-
var g = arguments.length - 2;
|
|
96
|
-
if (1 === g)
|
|
97
|
-
c.children = e;
|
|
98
|
-
else if (1 < g) {
|
|
99
|
-
for (var f = Array(g), m = 0; m < g; m++)
|
|
100
|
-
f[m] = arguments[m + 2];
|
|
101
|
-
c.children = f;
|
|
102
|
-
}
|
|
103
|
-
if (a && a.defaultProps)
|
|
104
|
-
for (d in g = a.defaultProps, g)
|
|
105
|
-
void 0 === c[d] && (c[d] = g[d]);
|
|
106
|
-
return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
|
|
107
|
-
}
|
|
108
|
-
function N(a, b) {
|
|
109
|
-
return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
|
|
110
|
-
}
|
|
111
|
-
function O(a) {
|
|
112
|
-
return "object" === typeof a && null !== a && a.$$typeof === l;
|
|
113
|
-
}
|
|
114
|
-
function escape(a) {
|
|
115
|
-
var b = { "=": "=0", ":": "=2" };
|
|
116
|
-
return "$" + a.replace(/[=:]/g, function(a2) {
|
|
117
|
-
return b[a2];
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
var P = /\/+/g;
|
|
121
|
-
function Q(a, b) {
|
|
122
|
-
return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
|
|
123
|
-
}
|
|
124
|
-
function R(a, b, e, d, c) {
|
|
125
|
-
var k = typeof a;
|
|
126
|
-
if ("undefined" === k || "boolean" === k)
|
|
127
|
-
a = null;
|
|
128
|
-
var h = false;
|
|
129
|
-
if (null === a)
|
|
130
|
-
h = true;
|
|
131
|
-
else
|
|
132
|
-
switch (k) {
|
|
133
|
-
case "string":
|
|
134
|
-
case "number":
|
|
135
|
-
h = true;
|
|
136
|
-
break;
|
|
137
|
-
case "object":
|
|
138
|
-
switch (a.$$typeof) {
|
|
139
|
-
case l:
|
|
140
|
-
case n:
|
|
141
|
-
h = true;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
if (h)
|
|
145
|
-
return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
|
|
146
|
-
return a2;
|
|
147
|
-
})) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
|
|
148
|
-
h = 0;
|
|
149
|
-
d = "" === d ? "." : d + ":";
|
|
150
|
-
if (I(a))
|
|
151
|
-
for (var g = 0; g < a.length; g++) {
|
|
152
|
-
k = a[g];
|
|
153
|
-
var f = d + Q(k, g);
|
|
154
|
-
h += R(k, b, e, f, c);
|
|
155
|
-
}
|
|
156
|
-
else if (f = A(a), "function" === typeof f)
|
|
157
|
-
for (a = f.call(a), g = 0; !(k = a.next()).done; )
|
|
158
|
-
k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
|
|
159
|
-
else if ("object" === k)
|
|
160
|
-
throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
|
|
161
|
-
return h;
|
|
162
|
-
}
|
|
163
|
-
function S(a, b, e) {
|
|
164
|
-
if (null == a)
|
|
165
|
-
return a;
|
|
166
|
-
var d = [], c = 0;
|
|
167
|
-
R(a, d, "", "", function(a2) {
|
|
168
|
-
return b.call(e, a2, c++);
|
|
169
|
-
});
|
|
170
|
-
return d;
|
|
171
|
-
}
|
|
172
|
-
function T(a) {
|
|
173
|
-
if (-1 === a._status) {
|
|
174
|
-
var b = a._result;
|
|
175
|
-
b = b();
|
|
176
|
-
b.then(function(b2) {
|
|
177
|
-
if (0 === a._status || -1 === a._status)
|
|
178
|
-
a._status = 1, a._result = b2;
|
|
179
|
-
}, function(b2) {
|
|
180
|
-
if (0 === a._status || -1 === a._status)
|
|
181
|
-
a._status = 2, a._result = b2;
|
|
182
|
-
});
|
|
183
|
-
-1 === a._status && (a._status = 0, a._result = b);
|
|
184
|
-
}
|
|
185
|
-
if (1 === a._status)
|
|
186
|
-
return a._result.default;
|
|
187
|
-
throw a._result;
|
|
188
|
-
}
|
|
189
|
-
var U = { current: null };
|
|
190
|
-
var V = { transition: null };
|
|
191
|
-
var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
|
|
192
|
-
exports.Children = { map: S, forEach: function(a, b, e) {
|
|
193
|
-
S(a, function() {
|
|
194
|
-
b.apply(this, arguments);
|
|
195
|
-
}, e);
|
|
196
|
-
}, count: function(a) {
|
|
197
|
-
var b = 0;
|
|
198
|
-
S(a, function() {
|
|
199
|
-
b++;
|
|
200
|
-
});
|
|
201
|
-
return b;
|
|
202
|
-
}, toArray: function(a) {
|
|
203
|
-
return S(a, function(a2) {
|
|
204
|
-
return a2;
|
|
205
|
-
}) || [];
|
|
206
|
-
}, only: function(a) {
|
|
207
|
-
if (!O(a))
|
|
208
|
-
throw Error("React.Children.only expected to receive a single React element child.");
|
|
209
|
-
return a;
|
|
210
|
-
} };
|
|
211
|
-
exports.Component = E;
|
|
212
|
-
exports.Fragment = p;
|
|
213
|
-
exports.Profiler = r;
|
|
214
|
-
exports.PureComponent = G;
|
|
215
|
-
exports.StrictMode = q;
|
|
216
|
-
exports.Suspense = w;
|
|
217
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
|
|
218
|
-
exports.cloneElement = function(a, b, e) {
|
|
219
|
-
if (null === a || void 0 === a)
|
|
220
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
|
|
221
|
-
var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
|
|
222
|
-
if (null != b) {
|
|
223
|
-
void 0 !== b.ref && (k = b.ref, h = K.current);
|
|
224
|
-
void 0 !== b.key && (c = "" + b.key);
|
|
225
|
-
if (a.type && a.type.defaultProps)
|
|
226
|
-
var g = a.type.defaultProps;
|
|
227
|
-
for (f in b)
|
|
228
|
-
J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
229
|
-
}
|
|
230
|
-
var f = arguments.length - 2;
|
|
231
|
-
if (1 === f)
|
|
232
|
-
d.children = e;
|
|
233
|
-
else if (1 < f) {
|
|
234
|
-
g = Array(f);
|
|
235
|
-
for (var m = 0; m < f; m++)
|
|
236
|
-
g[m] = arguments[m + 2];
|
|
237
|
-
d.children = g;
|
|
238
|
-
}
|
|
239
|
-
return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
|
|
240
|
-
};
|
|
241
|
-
exports.createContext = function(a) {
|
|
242
|
-
a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
243
|
-
a.Provider = { $$typeof: t, _context: a };
|
|
244
|
-
return a.Consumer = a;
|
|
245
|
-
};
|
|
246
|
-
exports.createElement = M;
|
|
247
|
-
exports.createFactory = function(a) {
|
|
248
|
-
var b = M.bind(null, a);
|
|
249
|
-
b.type = a;
|
|
250
|
-
return b;
|
|
251
|
-
};
|
|
252
|
-
exports.createRef = function() {
|
|
253
|
-
return { current: null };
|
|
254
|
-
};
|
|
255
|
-
exports.forwardRef = function(a) {
|
|
256
|
-
return { $$typeof: v, render: a };
|
|
257
|
-
};
|
|
258
|
-
exports.isValidElement = O;
|
|
259
|
-
exports.lazy = function(a) {
|
|
260
|
-
return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
|
|
261
|
-
};
|
|
262
|
-
exports.memo = function(a, b) {
|
|
263
|
-
return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
|
|
264
|
-
};
|
|
265
|
-
exports.startTransition = function(a) {
|
|
266
|
-
var b = V.transition;
|
|
267
|
-
V.transition = {};
|
|
268
|
-
try {
|
|
269
|
-
a();
|
|
270
|
-
} finally {
|
|
271
|
-
V.transition = b;
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
exports.unstable_act = function() {
|
|
275
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
276
|
-
};
|
|
277
|
-
exports.useCallback = function(a, b) {
|
|
278
|
-
return U.current.useCallback(a, b);
|
|
279
|
-
};
|
|
280
|
-
exports.useContext = function(a) {
|
|
281
|
-
return U.current.useContext(a);
|
|
282
|
-
};
|
|
283
|
-
exports.useDebugValue = function() {
|
|
284
|
-
};
|
|
285
|
-
exports.useDeferredValue = function(a) {
|
|
286
|
-
return U.current.useDeferredValue(a);
|
|
287
|
-
};
|
|
288
|
-
exports.useEffect = function(a, b) {
|
|
289
|
-
return U.current.useEffect(a, b);
|
|
290
|
-
};
|
|
291
|
-
exports.useId = function() {
|
|
292
|
-
return U.current.useId();
|
|
293
|
-
};
|
|
294
|
-
exports.useImperativeHandle = function(a, b, e) {
|
|
295
|
-
return U.current.useImperativeHandle(a, b, e);
|
|
296
|
-
};
|
|
297
|
-
exports.useInsertionEffect = function(a, b) {
|
|
298
|
-
return U.current.useInsertionEffect(a, b);
|
|
299
|
-
};
|
|
300
|
-
exports.useLayoutEffect = function(a, b) {
|
|
301
|
-
return U.current.useLayoutEffect(a, b);
|
|
302
|
-
};
|
|
303
|
-
exports.useMemo = function(a, b) {
|
|
304
|
-
return U.current.useMemo(a, b);
|
|
305
|
-
};
|
|
306
|
-
exports.useReducer = function(a, b, e) {
|
|
307
|
-
return U.current.useReducer(a, b, e);
|
|
308
|
-
};
|
|
309
|
-
exports.useRef = function(a) {
|
|
310
|
-
return U.current.useRef(a);
|
|
311
|
-
};
|
|
312
|
-
exports.useState = function(a) {
|
|
313
|
-
return U.current.useState(a);
|
|
314
|
-
};
|
|
315
|
-
exports.useSyncExternalStore = function(a, b, e) {
|
|
316
|
-
return U.current.useSyncExternalStore(a, b, e);
|
|
317
|
-
};
|
|
318
|
-
exports.useTransition = function() {
|
|
319
|
-
return U.current.useTransition();
|
|
320
|
-
};
|
|
321
|
-
exports.version = "18.2.0";
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
// node_modules/react/cjs/react.development.js
|
|
326
|
-
var require_react_development = __commonJS({
|
|
327
|
-
"node_modules/react/cjs/react.development.js"(exports, module2) {
|
|
328
|
-
"use strict";
|
|
329
|
-
if (process.env.NODE_ENV !== "production") {
|
|
330
|
-
(function() {
|
|
331
|
-
"use strict";
|
|
332
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
333
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
334
|
-
}
|
|
335
|
-
var ReactVersion = "18.2.0";
|
|
336
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
337
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
338
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
339
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
340
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
341
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
342
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
343
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
344
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
345
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
346
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
347
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
348
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
349
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
350
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
351
|
-
function getIteratorFn(maybeIterable) {
|
|
352
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
353
|
-
return null;
|
|
354
|
-
}
|
|
355
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
356
|
-
if (typeof maybeIterator === "function") {
|
|
357
|
-
return maybeIterator;
|
|
358
|
-
}
|
|
359
|
-
return null;
|
|
360
|
-
}
|
|
361
|
-
var ReactCurrentDispatcher = {
|
|
362
|
-
current: null
|
|
363
|
-
};
|
|
364
|
-
var ReactCurrentBatchConfig = {
|
|
365
|
-
transition: null
|
|
366
|
-
};
|
|
367
|
-
var ReactCurrentActQueue = {
|
|
368
|
-
current: null,
|
|
369
|
-
isBatchingLegacy: false,
|
|
370
|
-
didScheduleLegacyUpdate: false
|
|
371
|
-
};
|
|
372
|
-
var ReactCurrentOwner = {
|
|
373
|
-
current: null
|
|
374
|
-
};
|
|
375
|
-
var ReactDebugCurrentFrame = {};
|
|
376
|
-
var currentExtraStackFrame = null;
|
|
377
|
-
function setExtraStackFrame(stack) {
|
|
378
|
-
{
|
|
379
|
-
currentExtraStackFrame = stack;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
{
|
|
383
|
-
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
384
|
-
{
|
|
385
|
-
currentExtraStackFrame = stack;
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
389
|
-
ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
390
|
-
var stack = "";
|
|
391
|
-
if (currentExtraStackFrame) {
|
|
392
|
-
stack += currentExtraStackFrame;
|
|
393
|
-
}
|
|
394
|
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
395
|
-
if (impl) {
|
|
396
|
-
stack += impl() || "";
|
|
397
|
-
}
|
|
398
|
-
return stack;
|
|
399
|
-
};
|
|
400
|
-
}
|
|
401
|
-
var enableScopeAPI = false;
|
|
402
|
-
var enableCacheElement = false;
|
|
403
|
-
var enableTransitionTracing = false;
|
|
404
|
-
var enableLegacyHidden = false;
|
|
405
|
-
var enableDebugTracing = false;
|
|
406
|
-
var ReactSharedInternals = {
|
|
407
|
-
ReactCurrentDispatcher,
|
|
408
|
-
ReactCurrentBatchConfig,
|
|
409
|
-
ReactCurrentOwner
|
|
410
|
-
};
|
|
411
|
-
{
|
|
412
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
413
|
-
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
414
|
-
}
|
|
415
|
-
function warn(format) {
|
|
416
|
-
{
|
|
417
|
-
{
|
|
418
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
419
|
-
args[_key - 1] = arguments[_key];
|
|
420
|
-
}
|
|
421
|
-
printWarning("warn", format, args);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
function error(format) {
|
|
426
|
-
{
|
|
427
|
-
{
|
|
428
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
429
|
-
args[_key2 - 1] = arguments[_key2];
|
|
430
|
-
}
|
|
431
|
-
printWarning("error", format, args);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
function printWarning(level, format, args) {
|
|
436
|
-
{
|
|
437
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
438
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
439
|
-
if (stack !== "") {
|
|
440
|
-
format += "%s";
|
|
441
|
-
args = args.concat([stack]);
|
|
442
|
-
}
|
|
443
|
-
var argsWithFormat = args.map(function(item) {
|
|
444
|
-
return String(item);
|
|
445
|
-
});
|
|
446
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
447
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
451
|
-
function warnNoop(publicInstance, callerName) {
|
|
452
|
-
{
|
|
453
|
-
var _constructor = publicInstance.constructor;
|
|
454
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
455
|
-
var warningKey = componentName + "." + callerName;
|
|
456
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
|
|
460
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
var ReactNoopUpdateQueue = {
|
|
464
|
-
isMounted: function(publicInstance) {
|
|
465
|
-
return false;
|
|
466
|
-
},
|
|
467
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
468
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
469
|
-
},
|
|
470
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
471
|
-
warnNoop(publicInstance, "replaceState");
|
|
472
|
-
},
|
|
473
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
474
|
-
warnNoop(publicInstance, "setState");
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
var assign = Object.assign;
|
|
478
|
-
var emptyObject = {};
|
|
479
|
-
{
|
|
480
|
-
Object.freeze(emptyObject);
|
|
481
|
-
}
|
|
482
|
-
function Component(props, context, updater) {
|
|
483
|
-
this.props = props;
|
|
484
|
-
this.context = context;
|
|
485
|
-
this.refs = emptyObject;
|
|
486
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
487
|
-
}
|
|
488
|
-
Component.prototype.isReactComponent = {};
|
|
489
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
490
|
-
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
|
|
491
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
492
|
-
}
|
|
493
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
494
|
-
};
|
|
495
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
496
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
497
|
-
};
|
|
498
|
-
{
|
|
499
|
-
var deprecatedAPIs = {
|
|
500
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
501
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
502
|
-
};
|
|
503
|
-
var defineDeprecationWarning = function(methodName, info) {
|
|
504
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
505
|
-
get: function() {
|
|
506
|
-
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
507
|
-
return void 0;
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
};
|
|
511
|
-
for (var fnName in deprecatedAPIs) {
|
|
512
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
513
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
function ComponentDummy() {
|
|
518
|
-
}
|
|
519
|
-
ComponentDummy.prototype = Component.prototype;
|
|
520
|
-
function PureComponent(props, context, updater) {
|
|
521
|
-
this.props = props;
|
|
522
|
-
this.context = context;
|
|
523
|
-
this.refs = emptyObject;
|
|
524
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
525
|
-
}
|
|
526
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
527
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
528
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
529
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
530
|
-
function createRef() {
|
|
531
|
-
var refObject = {
|
|
532
|
-
current: null
|
|
533
|
-
};
|
|
534
|
-
{
|
|
535
|
-
Object.seal(refObject);
|
|
536
|
-
}
|
|
537
|
-
return refObject;
|
|
538
|
-
}
|
|
539
|
-
var isArrayImpl = Array.isArray;
|
|
540
|
-
function isArray(a) {
|
|
541
|
-
return isArrayImpl(a);
|
|
542
|
-
}
|
|
543
|
-
function typeName(value) {
|
|
544
|
-
{
|
|
545
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
546
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
547
|
-
return type;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
function willCoercionThrow(value) {
|
|
551
|
-
{
|
|
552
|
-
try {
|
|
553
|
-
testStringCoercion(value);
|
|
554
|
-
return false;
|
|
555
|
-
} catch (e) {
|
|
556
|
-
return true;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
function testStringCoercion(value) {
|
|
561
|
-
return "" + value;
|
|
562
|
-
}
|
|
563
|
-
function checkKeyStringCoercion(value) {
|
|
564
|
-
{
|
|
565
|
-
if (willCoercionThrow(value)) {
|
|
566
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
567
|
-
return testStringCoercion(value);
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
572
|
-
var displayName = outerType.displayName;
|
|
573
|
-
if (displayName) {
|
|
574
|
-
return displayName;
|
|
575
|
-
}
|
|
576
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
577
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
578
|
-
}
|
|
579
|
-
function getContextName(type) {
|
|
580
|
-
return type.displayName || "Context";
|
|
581
|
-
}
|
|
582
|
-
function getComponentNameFromType(type) {
|
|
583
|
-
if (type == null) {
|
|
584
|
-
return null;
|
|
585
|
-
}
|
|
586
|
-
{
|
|
587
|
-
if (typeof type.tag === "number") {
|
|
588
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
if (typeof type === "function") {
|
|
592
|
-
return type.displayName || type.name || null;
|
|
593
|
-
}
|
|
594
|
-
if (typeof type === "string") {
|
|
595
|
-
return type;
|
|
596
|
-
}
|
|
597
|
-
switch (type) {
|
|
598
|
-
case REACT_FRAGMENT_TYPE:
|
|
599
|
-
return "Fragment";
|
|
600
|
-
case REACT_PORTAL_TYPE:
|
|
601
|
-
return "Portal";
|
|
602
|
-
case REACT_PROFILER_TYPE:
|
|
603
|
-
return "Profiler";
|
|
604
|
-
case REACT_STRICT_MODE_TYPE:
|
|
605
|
-
return "StrictMode";
|
|
606
|
-
case REACT_SUSPENSE_TYPE:
|
|
607
|
-
return "Suspense";
|
|
608
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
609
|
-
return "SuspenseList";
|
|
610
|
-
}
|
|
611
|
-
if (typeof type === "object") {
|
|
612
|
-
switch (type.$$typeof) {
|
|
613
|
-
case REACT_CONTEXT_TYPE:
|
|
614
|
-
var context = type;
|
|
615
|
-
return getContextName(context) + ".Consumer";
|
|
616
|
-
case REACT_PROVIDER_TYPE:
|
|
617
|
-
var provider = type;
|
|
618
|
-
return getContextName(provider._context) + ".Provider";
|
|
619
|
-
case REACT_FORWARD_REF_TYPE:
|
|
620
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
621
|
-
case REACT_MEMO_TYPE:
|
|
622
|
-
var outerName = type.displayName || null;
|
|
623
|
-
if (outerName !== null) {
|
|
624
|
-
return outerName;
|
|
625
|
-
}
|
|
626
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
627
|
-
case REACT_LAZY_TYPE: {
|
|
628
|
-
var lazyComponent = type;
|
|
629
|
-
var payload = lazyComponent._payload;
|
|
630
|
-
var init = lazyComponent._init;
|
|
631
|
-
try {
|
|
632
|
-
return getComponentNameFromType(init(payload));
|
|
633
|
-
} catch (x) {
|
|
634
|
-
return null;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
return null;
|
|
640
|
-
}
|
|
641
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
642
|
-
var RESERVED_PROPS = {
|
|
643
|
-
key: true,
|
|
644
|
-
ref: true,
|
|
645
|
-
__self: true,
|
|
646
|
-
__source: true
|
|
647
|
-
};
|
|
648
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
649
|
-
{
|
|
650
|
-
didWarnAboutStringRefs = {};
|
|
651
|
-
}
|
|
652
|
-
function hasValidRef(config) {
|
|
653
|
-
{
|
|
654
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
655
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
656
|
-
if (getter && getter.isReactWarning) {
|
|
657
|
-
return false;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
return config.ref !== void 0;
|
|
662
|
-
}
|
|
663
|
-
function hasValidKey(config) {
|
|
664
|
-
{
|
|
665
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
666
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
667
|
-
if (getter && getter.isReactWarning) {
|
|
668
|
-
return false;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
}
|
|
672
|
-
return config.key !== void 0;
|
|
673
|
-
}
|
|
674
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
675
|
-
var warnAboutAccessingKey = function() {
|
|
676
|
-
{
|
|
677
|
-
if (!specialPropKeyWarningShown) {
|
|
678
|
-
specialPropKeyWarningShown = true;
|
|
679
|
-
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
};
|
|
683
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
684
|
-
Object.defineProperty(props, "key", {
|
|
685
|
-
get: warnAboutAccessingKey,
|
|
686
|
-
configurable: true
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
690
|
-
var warnAboutAccessingRef = function() {
|
|
691
|
-
{
|
|
692
|
-
if (!specialPropRefWarningShown) {
|
|
693
|
-
specialPropRefWarningShown = true;
|
|
694
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
699
|
-
Object.defineProperty(props, "ref", {
|
|
700
|
-
get: warnAboutAccessingRef,
|
|
701
|
-
configurable: true
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
705
|
-
{
|
|
706
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
707
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
708
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
709
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
|
|
710
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
716
|
-
var element = {
|
|
717
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
718
|
-
type,
|
|
719
|
-
key,
|
|
720
|
-
ref,
|
|
721
|
-
props,
|
|
722
|
-
_owner: owner
|
|
723
|
-
};
|
|
724
|
-
{
|
|
725
|
-
element._store = {};
|
|
726
|
-
Object.defineProperty(element._store, "validated", {
|
|
727
|
-
configurable: false,
|
|
728
|
-
enumerable: false,
|
|
729
|
-
writable: true,
|
|
730
|
-
value: false
|
|
731
|
-
});
|
|
732
|
-
Object.defineProperty(element, "_self", {
|
|
733
|
-
configurable: false,
|
|
734
|
-
enumerable: false,
|
|
735
|
-
writable: false,
|
|
736
|
-
value: self
|
|
737
|
-
});
|
|
738
|
-
Object.defineProperty(element, "_source", {
|
|
739
|
-
configurable: false,
|
|
740
|
-
enumerable: false,
|
|
741
|
-
writable: false,
|
|
742
|
-
value: source
|
|
743
|
-
});
|
|
744
|
-
if (Object.freeze) {
|
|
745
|
-
Object.freeze(element.props);
|
|
746
|
-
Object.freeze(element);
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
return element;
|
|
750
|
-
};
|
|
751
|
-
function createElement(type, config, children) {
|
|
752
|
-
var propName;
|
|
753
|
-
var props = {};
|
|
754
|
-
var key = null;
|
|
755
|
-
var ref = null;
|
|
756
|
-
var self = null;
|
|
757
|
-
var source = null;
|
|
758
|
-
if (config != null) {
|
|
759
|
-
if (hasValidRef(config)) {
|
|
760
|
-
ref = config.ref;
|
|
761
|
-
{
|
|
762
|
-
warnIfStringRefCannotBeAutoConverted(config);
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
if (hasValidKey(config)) {
|
|
766
|
-
{
|
|
767
|
-
checkKeyStringCoercion(config.key);
|
|
768
|
-
}
|
|
769
|
-
key = "" + config.key;
|
|
770
|
-
}
|
|
771
|
-
self = config.__self === void 0 ? null : config.__self;
|
|
772
|
-
source = config.__source === void 0 ? null : config.__source;
|
|
773
|
-
for (propName in config) {
|
|
774
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
775
|
-
props[propName] = config[propName];
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
var childrenLength = arguments.length - 2;
|
|
780
|
-
if (childrenLength === 1) {
|
|
781
|
-
props.children = children;
|
|
782
|
-
} else if (childrenLength > 1) {
|
|
783
|
-
var childArray = Array(childrenLength);
|
|
784
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
785
|
-
childArray[i] = arguments[i + 2];
|
|
786
|
-
}
|
|
787
|
-
{
|
|
788
|
-
if (Object.freeze) {
|
|
789
|
-
Object.freeze(childArray);
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
props.children = childArray;
|
|
793
|
-
}
|
|
794
|
-
if (type && type.defaultProps) {
|
|
795
|
-
var defaultProps = type.defaultProps;
|
|
796
|
-
for (propName in defaultProps) {
|
|
797
|
-
if (props[propName] === void 0) {
|
|
798
|
-
props[propName] = defaultProps[propName];
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
{
|
|
803
|
-
if (key || ref) {
|
|
804
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
805
|
-
if (key) {
|
|
806
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
807
|
-
}
|
|
808
|
-
if (ref) {
|
|
809
|
-
defineRefPropWarningGetter(props, displayName);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
814
|
-
}
|
|
815
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
816
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
817
|
-
return newElement;
|
|
818
|
-
}
|
|
819
|
-
function cloneElement(element, config, children) {
|
|
820
|
-
if (element === null || element === void 0) {
|
|
821
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
822
|
-
}
|
|
823
|
-
var propName;
|
|
824
|
-
var props = assign({}, element.props);
|
|
825
|
-
var key = element.key;
|
|
826
|
-
var ref = element.ref;
|
|
827
|
-
var self = element._self;
|
|
828
|
-
var source = element._source;
|
|
829
|
-
var owner = element._owner;
|
|
830
|
-
if (config != null) {
|
|
831
|
-
if (hasValidRef(config)) {
|
|
832
|
-
ref = config.ref;
|
|
833
|
-
owner = ReactCurrentOwner.current;
|
|
834
|
-
}
|
|
835
|
-
if (hasValidKey(config)) {
|
|
836
|
-
{
|
|
837
|
-
checkKeyStringCoercion(config.key);
|
|
838
|
-
}
|
|
839
|
-
key = "" + config.key;
|
|
840
|
-
}
|
|
841
|
-
var defaultProps;
|
|
842
|
-
if (element.type && element.type.defaultProps) {
|
|
843
|
-
defaultProps = element.type.defaultProps;
|
|
844
|
-
}
|
|
845
|
-
for (propName in config) {
|
|
846
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
847
|
-
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
848
|
-
props[propName] = defaultProps[propName];
|
|
849
|
-
} else {
|
|
850
|
-
props[propName] = config[propName];
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
var childrenLength = arguments.length - 2;
|
|
856
|
-
if (childrenLength === 1) {
|
|
857
|
-
props.children = children;
|
|
858
|
-
} else if (childrenLength > 1) {
|
|
859
|
-
var childArray = Array(childrenLength);
|
|
860
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
861
|
-
childArray[i] = arguments[i + 2];
|
|
862
|
-
}
|
|
863
|
-
props.children = childArray;
|
|
864
|
-
}
|
|
865
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
866
|
-
}
|
|
867
|
-
function isValidElement(object) {
|
|
868
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
869
|
-
}
|
|
870
|
-
var SEPARATOR = ".";
|
|
871
|
-
var SUBSEPARATOR = ":";
|
|
872
|
-
function escape(key) {
|
|
873
|
-
var escapeRegex = /[=:]/g;
|
|
874
|
-
var escaperLookup = {
|
|
875
|
-
"=": "=0",
|
|
876
|
-
":": "=2"
|
|
877
|
-
};
|
|
878
|
-
var escapedString = key.replace(escapeRegex, function(match) {
|
|
879
|
-
return escaperLookup[match];
|
|
880
|
-
});
|
|
881
|
-
return "$" + escapedString;
|
|
882
|
-
}
|
|
883
|
-
var didWarnAboutMaps = false;
|
|
884
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
885
|
-
function escapeUserProvidedKey(text) {
|
|
886
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
887
|
-
}
|
|
888
|
-
function getElementKey(element, index) {
|
|
889
|
-
if (typeof element === "object" && element !== null && element.key != null) {
|
|
890
|
-
{
|
|
891
|
-
checkKeyStringCoercion(element.key);
|
|
892
|
-
}
|
|
893
|
-
return escape("" + element.key);
|
|
894
|
-
}
|
|
895
|
-
return index.toString(36);
|
|
896
|
-
}
|
|
897
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
898
|
-
var type = typeof children;
|
|
899
|
-
if (type === "undefined" || type === "boolean") {
|
|
900
|
-
children = null;
|
|
901
|
-
}
|
|
902
|
-
var invokeCallback = false;
|
|
903
|
-
if (children === null) {
|
|
904
|
-
invokeCallback = true;
|
|
905
|
-
} else {
|
|
906
|
-
switch (type) {
|
|
907
|
-
case "string":
|
|
908
|
-
case "number":
|
|
909
|
-
invokeCallback = true;
|
|
910
|
-
break;
|
|
911
|
-
case "object":
|
|
912
|
-
switch (children.$$typeof) {
|
|
913
|
-
case REACT_ELEMENT_TYPE:
|
|
914
|
-
case REACT_PORTAL_TYPE:
|
|
915
|
-
invokeCallback = true;
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
if (invokeCallback) {
|
|
920
|
-
var _child = children;
|
|
921
|
-
var mappedChild = callback(_child);
|
|
922
|
-
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
923
|
-
if (isArray(mappedChild)) {
|
|
924
|
-
var escapedChildKey = "";
|
|
925
|
-
if (childKey != null) {
|
|
926
|
-
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
927
|
-
}
|
|
928
|
-
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
929
|
-
return c;
|
|
930
|
-
});
|
|
931
|
-
} else if (mappedChild != null) {
|
|
932
|
-
if (isValidElement(mappedChild)) {
|
|
933
|
-
{
|
|
934
|
-
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
935
|
-
checkKeyStringCoercion(mappedChild.key);
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
mappedChild = cloneAndReplaceKey(
|
|
939
|
-
mappedChild,
|
|
940
|
-
escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey
|
|
941
|
-
);
|
|
942
|
-
}
|
|
943
|
-
array.push(mappedChild);
|
|
944
|
-
}
|
|
945
|
-
return 1;
|
|
946
|
-
}
|
|
947
|
-
var child;
|
|
948
|
-
var nextName;
|
|
949
|
-
var subtreeCount = 0;
|
|
950
|
-
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
951
|
-
if (isArray(children)) {
|
|
952
|
-
for (var i = 0; i < children.length; i++) {
|
|
953
|
-
child = children[i];
|
|
954
|
-
nextName = nextNamePrefix + getElementKey(child, i);
|
|
955
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
956
|
-
}
|
|
957
|
-
} else {
|
|
958
|
-
var iteratorFn = getIteratorFn(children);
|
|
959
|
-
if (typeof iteratorFn === "function") {
|
|
960
|
-
var iterableChildren = children;
|
|
961
|
-
{
|
|
962
|
-
if (iteratorFn === iterableChildren.entries) {
|
|
963
|
-
if (!didWarnAboutMaps) {
|
|
964
|
-
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
965
|
-
}
|
|
966
|
-
didWarnAboutMaps = true;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
var iterator = iteratorFn.call(iterableChildren);
|
|
970
|
-
var step;
|
|
971
|
-
var ii = 0;
|
|
972
|
-
while (!(step = iterator.next()).done) {
|
|
973
|
-
child = step.value;
|
|
974
|
-
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
975
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
976
|
-
}
|
|
977
|
-
} else if (type === "object") {
|
|
978
|
-
var childrenString = String(children);
|
|
979
|
-
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
return subtreeCount;
|
|
983
|
-
}
|
|
984
|
-
function mapChildren(children, func, context) {
|
|
985
|
-
if (children == null) {
|
|
986
|
-
return children;
|
|
987
|
-
}
|
|
988
|
-
var result = [];
|
|
989
|
-
var count = 0;
|
|
990
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
991
|
-
return func.call(context, child, count++);
|
|
992
|
-
});
|
|
993
|
-
return result;
|
|
994
|
-
}
|
|
995
|
-
function countChildren(children) {
|
|
996
|
-
var n = 0;
|
|
997
|
-
mapChildren(children, function() {
|
|
998
|
-
n++;
|
|
999
|
-
});
|
|
1000
|
-
return n;
|
|
1001
|
-
}
|
|
1002
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1003
|
-
mapChildren(children, function() {
|
|
1004
|
-
forEachFunc.apply(this, arguments);
|
|
1005
|
-
}, forEachContext);
|
|
1006
|
-
}
|
|
1007
|
-
function toArray(children) {
|
|
1008
|
-
return mapChildren(children, function(child) {
|
|
1009
|
-
return child;
|
|
1010
|
-
}) || [];
|
|
1011
|
-
}
|
|
1012
|
-
function onlyChild(children) {
|
|
1013
|
-
if (!isValidElement(children)) {
|
|
1014
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1015
|
-
}
|
|
1016
|
-
return children;
|
|
1017
|
-
}
|
|
1018
|
-
function createContext(defaultValue) {
|
|
1019
|
-
var context = {
|
|
1020
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1021
|
-
_currentValue: defaultValue,
|
|
1022
|
-
_currentValue2: defaultValue,
|
|
1023
|
-
_threadCount: 0,
|
|
1024
|
-
Provider: null,
|
|
1025
|
-
Consumer: null,
|
|
1026
|
-
_defaultValue: null,
|
|
1027
|
-
_globalName: null
|
|
1028
|
-
};
|
|
1029
|
-
context.Provider = {
|
|
1030
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
1031
|
-
_context: context
|
|
1032
|
-
};
|
|
1033
|
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1034
|
-
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1035
|
-
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1036
|
-
{
|
|
1037
|
-
var Consumer = {
|
|
1038
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1039
|
-
_context: context
|
|
1040
|
-
};
|
|
1041
|
-
Object.defineProperties(Consumer, {
|
|
1042
|
-
Provider: {
|
|
1043
|
-
get: function() {
|
|
1044
|
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1045
|
-
hasWarnedAboutUsingConsumerProvider = true;
|
|
1046
|
-
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1047
|
-
}
|
|
1048
|
-
return context.Provider;
|
|
1049
|
-
},
|
|
1050
|
-
set: function(_Provider) {
|
|
1051
|
-
context.Provider = _Provider;
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
_currentValue: {
|
|
1055
|
-
get: function() {
|
|
1056
|
-
return context._currentValue;
|
|
1057
|
-
},
|
|
1058
|
-
set: function(_currentValue) {
|
|
1059
|
-
context._currentValue = _currentValue;
|
|
1060
|
-
}
|
|
1061
|
-
},
|
|
1062
|
-
_currentValue2: {
|
|
1063
|
-
get: function() {
|
|
1064
|
-
return context._currentValue2;
|
|
1065
|
-
},
|
|
1066
|
-
set: function(_currentValue2) {
|
|
1067
|
-
context._currentValue2 = _currentValue2;
|
|
1068
|
-
}
|
|
1069
|
-
},
|
|
1070
|
-
_threadCount: {
|
|
1071
|
-
get: function() {
|
|
1072
|
-
return context._threadCount;
|
|
1073
|
-
},
|
|
1074
|
-
set: function(_threadCount) {
|
|
1075
|
-
context._threadCount = _threadCount;
|
|
1076
|
-
}
|
|
1077
|
-
},
|
|
1078
|
-
Consumer: {
|
|
1079
|
-
get: function() {
|
|
1080
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1081
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1082
|
-
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1083
|
-
}
|
|
1084
|
-
return context.Consumer;
|
|
1085
|
-
}
|
|
1086
|
-
},
|
|
1087
|
-
displayName: {
|
|
1088
|
-
get: function() {
|
|
1089
|
-
return context.displayName;
|
|
1090
|
-
},
|
|
1091
|
-
set: function(displayName) {
|
|
1092
|
-
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1093
|
-
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1094
|
-
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1095
|
-
}
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
});
|
|
1099
|
-
context.Consumer = Consumer;
|
|
1100
|
-
}
|
|
1101
|
-
{
|
|
1102
|
-
context._currentRenderer = null;
|
|
1103
|
-
context._currentRenderer2 = null;
|
|
1104
|
-
}
|
|
1105
|
-
return context;
|
|
1106
|
-
}
|
|
1107
|
-
var Uninitialized = -1;
|
|
1108
|
-
var Pending = 0;
|
|
1109
|
-
var Resolved = 1;
|
|
1110
|
-
var Rejected = 2;
|
|
1111
|
-
function lazyInitializer(payload) {
|
|
1112
|
-
if (payload._status === Uninitialized) {
|
|
1113
|
-
var ctor = payload._result;
|
|
1114
|
-
var thenable = ctor();
|
|
1115
|
-
thenable.then(function(moduleObject2) {
|
|
1116
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1117
|
-
var resolved = payload;
|
|
1118
|
-
resolved._status = Resolved;
|
|
1119
|
-
resolved._result = moduleObject2;
|
|
1120
|
-
}
|
|
1121
|
-
}, function(error2) {
|
|
1122
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1123
|
-
var rejected = payload;
|
|
1124
|
-
rejected._status = Rejected;
|
|
1125
|
-
rejected._result = error2;
|
|
1126
|
-
}
|
|
1127
|
-
});
|
|
1128
|
-
if (payload._status === Uninitialized) {
|
|
1129
|
-
var pending = payload;
|
|
1130
|
-
pending._status = Pending;
|
|
1131
|
-
pending._result = thenable;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
if (payload._status === Resolved) {
|
|
1135
|
-
var moduleObject = payload._result;
|
|
1136
|
-
{
|
|
1137
|
-
if (moduleObject === void 0) {
|
|
1138
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
{
|
|
1142
|
-
if (!("default" in moduleObject)) {
|
|
1143
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
return moduleObject.default;
|
|
1147
|
-
} else {
|
|
1148
|
-
throw payload._result;
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
function lazy(ctor) {
|
|
1152
|
-
var payload = {
|
|
1153
|
-
_status: Uninitialized,
|
|
1154
|
-
_result: ctor
|
|
1155
|
-
};
|
|
1156
|
-
var lazyType = {
|
|
1157
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1158
|
-
_payload: payload,
|
|
1159
|
-
_init: lazyInitializer
|
|
1160
|
-
};
|
|
1161
|
-
{
|
|
1162
|
-
var defaultProps;
|
|
1163
|
-
var propTypes;
|
|
1164
|
-
Object.defineProperties(lazyType, {
|
|
1165
|
-
defaultProps: {
|
|
1166
|
-
configurable: true,
|
|
1167
|
-
get: function() {
|
|
1168
|
-
return defaultProps;
|
|
1169
|
-
},
|
|
1170
|
-
set: function(newDefaultProps) {
|
|
1171
|
-
error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1172
|
-
defaultProps = newDefaultProps;
|
|
1173
|
-
Object.defineProperty(lazyType, "defaultProps", {
|
|
1174
|
-
enumerable: true
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1178
|
-
propTypes: {
|
|
1179
|
-
configurable: true,
|
|
1180
|
-
get: function() {
|
|
1181
|
-
return propTypes;
|
|
1182
|
-
},
|
|
1183
|
-
set: function(newPropTypes) {
|
|
1184
|
-
error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
1185
|
-
propTypes = newPropTypes;
|
|
1186
|
-
Object.defineProperty(lazyType, "propTypes", {
|
|
1187
|
-
enumerable: true
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
});
|
|
1192
|
-
}
|
|
1193
|
-
return lazyType;
|
|
1194
|
-
}
|
|
1195
|
-
function forwardRef(render) {
|
|
1196
|
-
{
|
|
1197
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1198
|
-
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1199
|
-
} else if (typeof render !== "function") {
|
|
1200
|
-
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1201
|
-
} else {
|
|
1202
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1203
|
-
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
if (render != null) {
|
|
1207
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1208
|
-
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
var elementType = {
|
|
1213
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1214
|
-
render
|
|
1215
|
-
};
|
|
1216
|
-
{
|
|
1217
|
-
var ownName;
|
|
1218
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1219
|
-
enumerable: false,
|
|
1220
|
-
configurable: true,
|
|
1221
|
-
get: function() {
|
|
1222
|
-
return ownName;
|
|
1223
|
-
},
|
|
1224
|
-
set: function(name) {
|
|
1225
|
-
ownName = name;
|
|
1226
|
-
if (!render.name && !render.displayName) {
|
|
1227
|
-
render.displayName = name;
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
return elementType;
|
|
1233
|
-
}
|
|
1234
|
-
var REACT_MODULE_REFERENCE;
|
|
1235
|
-
{
|
|
1236
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1237
|
-
}
|
|
1238
|
-
function isValidElementType(type) {
|
|
1239
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1240
|
-
return true;
|
|
1241
|
-
}
|
|
1242
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
1243
|
-
return true;
|
|
1244
|
-
}
|
|
1245
|
-
if (typeof type === "object" && type !== null) {
|
|
1246
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1247
|
-
return true;
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
return false;
|
|
1251
|
-
}
|
|
1252
|
-
function memo(type, compare) {
|
|
1253
|
-
{
|
|
1254
|
-
if (!isValidElementType(type)) {
|
|
1255
|
-
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
var elementType = {
|
|
1259
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1260
|
-
type,
|
|
1261
|
-
compare: compare === void 0 ? null : compare
|
|
1262
|
-
};
|
|
1263
|
-
{
|
|
1264
|
-
var ownName;
|
|
1265
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1266
|
-
enumerable: false,
|
|
1267
|
-
configurable: true,
|
|
1268
|
-
get: function() {
|
|
1269
|
-
return ownName;
|
|
1270
|
-
},
|
|
1271
|
-
set: function(name) {
|
|
1272
|
-
ownName = name;
|
|
1273
|
-
if (!type.name && !type.displayName) {
|
|
1274
|
-
type.displayName = name;
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
return elementType;
|
|
1280
|
-
}
|
|
1281
|
-
function resolveDispatcher() {
|
|
1282
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1283
|
-
{
|
|
1284
|
-
if (dispatcher === null) {
|
|
1285
|
-
error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
return dispatcher;
|
|
1289
|
-
}
|
|
1290
|
-
function useContext(Context) {
|
|
1291
|
-
var dispatcher = resolveDispatcher();
|
|
1292
|
-
{
|
|
1293
|
-
if (Context._context !== void 0) {
|
|
1294
|
-
var realContext = Context._context;
|
|
1295
|
-
if (realContext.Consumer === Context) {
|
|
1296
|
-
error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
|
|
1297
|
-
} else if (realContext.Provider === Context) {
|
|
1298
|
-
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
}
|
|
1302
|
-
return dispatcher.useContext(Context);
|
|
1303
|
-
}
|
|
1304
|
-
function useState(initialState) {
|
|
1305
|
-
var dispatcher = resolveDispatcher();
|
|
1306
|
-
return dispatcher.useState(initialState);
|
|
1307
|
-
}
|
|
1308
|
-
function useReducer(reducer, initialArg, init) {
|
|
1309
|
-
var dispatcher = resolveDispatcher();
|
|
1310
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1311
|
-
}
|
|
1312
|
-
function useRef(initialValue) {
|
|
1313
|
-
var dispatcher = resolveDispatcher();
|
|
1314
|
-
return dispatcher.useRef(initialValue);
|
|
1315
|
-
}
|
|
1316
|
-
function useEffect(create, deps) {
|
|
1317
|
-
var dispatcher = resolveDispatcher();
|
|
1318
|
-
return dispatcher.useEffect(create, deps);
|
|
1319
|
-
}
|
|
1320
|
-
function useInsertionEffect(create, deps) {
|
|
1321
|
-
var dispatcher = resolveDispatcher();
|
|
1322
|
-
return dispatcher.useInsertionEffect(create, deps);
|
|
1323
|
-
}
|
|
1324
|
-
function useLayoutEffect(create, deps) {
|
|
1325
|
-
var dispatcher = resolveDispatcher();
|
|
1326
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1327
|
-
}
|
|
1328
|
-
function useCallback(callback, deps) {
|
|
1329
|
-
var dispatcher = resolveDispatcher();
|
|
1330
|
-
return dispatcher.useCallback(callback, deps);
|
|
1331
|
-
}
|
|
1332
|
-
function useMemo(create, deps) {
|
|
1333
|
-
var dispatcher = resolveDispatcher();
|
|
1334
|
-
return dispatcher.useMemo(create, deps);
|
|
1335
|
-
}
|
|
1336
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1337
|
-
var dispatcher = resolveDispatcher();
|
|
1338
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1339
|
-
}
|
|
1340
|
-
function useDebugValue(value, formatterFn) {
|
|
1341
|
-
{
|
|
1342
|
-
var dispatcher = resolveDispatcher();
|
|
1343
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1344
|
-
}
|
|
1345
|
-
}
|
|
1346
|
-
function useTransition() {
|
|
1347
|
-
var dispatcher = resolveDispatcher();
|
|
1348
|
-
return dispatcher.useTransition();
|
|
1349
|
-
}
|
|
1350
|
-
function useDeferredValue(value) {
|
|
1351
|
-
var dispatcher = resolveDispatcher();
|
|
1352
|
-
return dispatcher.useDeferredValue(value);
|
|
1353
|
-
}
|
|
1354
|
-
function useId() {
|
|
1355
|
-
var dispatcher = resolveDispatcher();
|
|
1356
|
-
return dispatcher.useId();
|
|
1357
|
-
}
|
|
1358
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
1359
|
-
var dispatcher = resolveDispatcher();
|
|
1360
|
-
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1361
|
-
}
|
|
1362
|
-
var disabledDepth = 0;
|
|
1363
|
-
var prevLog;
|
|
1364
|
-
var prevInfo;
|
|
1365
|
-
var prevWarn;
|
|
1366
|
-
var prevError;
|
|
1367
|
-
var prevGroup;
|
|
1368
|
-
var prevGroupCollapsed;
|
|
1369
|
-
var prevGroupEnd;
|
|
1370
|
-
function disabledLog() {
|
|
1371
|
-
}
|
|
1372
|
-
disabledLog.__reactDisabledLog = true;
|
|
1373
|
-
function disableLogs() {
|
|
1374
|
-
{
|
|
1375
|
-
if (disabledDepth === 0) {
|
|
1376
|
-
prevLog = console.log;
|
|
1377
|
-
prevInfo = console.info;
|
|
1378
|
-
prevWarn = console.warn;
|
|
1379
|
-
prevError = console.error;
|
|
1380
|
-
prevGroup = console.group;
|
|
1381
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1382
|
-
prevGroupEnd = console.groupEnd;
|
|
1383
|
-
var props = {
|
|
1384
|
-
configurable: true,
|
|
1385
|
-
enumerable: true,
|
|
1386
|
-
value: disabledLog,
|
|
1387
|
-
writable: true
|
|
1388
|
-
};
|
|
1389
|
-
Object.defineProperties(console, {
|
|
1390
|
-
info: props,
|
|
1391
|
-
log: props,
|
|
1392
|
-
warn: props,
|
|
1393
|
-
error: props,
|
|
1394
|
-
group: props,
|
|
1395
|
-
groupCollapsed: props,
|
|
1396
|
-
groupEnd: props
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
disabledDepth++;
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
function reenableLogs() {
|
|
1403
|
-
{
|
|
1404
|
-
disabledDepth--;
|
|
1405
|
-
if (disabledDepth === 0) {
|
|
1406
|
-
var props = {
|
|
1407
|
-
configurable: true,
|
|
1408
|
-
enumerable: true,
|
|
1409
|
-
writable: true
|
|
1410
|
-
};
|
|
1411
|
-
Object.defineProperties(console, {
|
|
1412
|
-
log: assign({}, props, {
|
|
1413
|
-
value: prevLog
|
|
1414
|
-
}),
|
|
1415
|
-
info: assign({}, props, {
|
|
1416
|
-
value: prevInfo
|
|
1417
|
-
}),
|
|
1418
|
-
warn: assign({}, props, {
|
|
1419
|
-
value: prevWarn
|
|
1420
|
-
}),
|
|
1421
|
-
error: assign({}, props, {
|
|
1422
|
-
value: prevError
|
|
1423
|
-
}),
|
|
1424
|
-
group: assign({}, props, {
|
|
1425
|
-
value: prevGroup
|
|
1426
|
-
}),
|
|
1427
|
-
groupCollapsed: assign({}, props, {
|
|
1428
|
-
value: prevGroupCollapsed
|
|
1429
|
-
}),
|
|
1430
|
-
groupEnd: assign({}, props, {
|
|
1431
|
-
value: prevGroupEnd
|
|
1432
|
-
})
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
if (disabledDepth < 0) {
|
|
1436
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1441
|
-
var prefix;
|
|
1442
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1443
|
-
{
|
|
1444
|
-
if (prefix === void 0) {
|
|
1445
|
-
try {
|
|
1446
|
-
throw Error();
|
|
1447
|
-
} catch (x) {
|
|
1448
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
1449
|
-
prefix = match && match[1] || "";
|
|
1450
|
-
}
|
|
1451
|
-
}
|
|
1452
|
-
return "\n" + prefix + name;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
var reentry = false;
|
|
1456
|
-
var componentFrameCache;
|
|
1457
|
-
{
|
|
1458
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1459
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1460
|
-
}
|
|
1461
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
1462
|
-
if (!fn || reentry) {
|
|
1463
|
-
return "";
|
|
1464
|
-
}
|
|
1465
|
-
{
|
|
1466
|
-
var frame = componentFrameCache.get(fn);
|
|
1467
|
-
if (frame !== void 0) {
|
|
1468
|
-
return frame;
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
var control;
|
|
1472
|
-
reentry = true;
|
|
1473
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1474
|
-
Error.prepareStackTrace = void 0;
|
|
1475
|
-
var previousDispatcher;
|
|
1476
|
-
{
|
|
1477
|
-
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1478
|
-
ReactCurrentDispatcher$1.current = null;
|
|
1479
|
-
disableLogs();
|
|
1480
|
-
}
|
|
1481
|
-
try {
|
|
1482
|
-
if (construct) {
|
|
1483
|
-
var Fake = function() {
|
|
1484
|
-
throw Error();
|
|
1485
|
-
};
|
|
1486
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1487
|
-
set: function() {
|
|
1488
|
-
throw Error();
|
|
1489
|
-
}
|
|
1490
|
-
});
|
|
1491
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1492
|
-
try {
|
|
1493
|
-
Reflect.construct(Fake, []);
|
|
1494
|
-
} catch (x) {
|
|
1495
|
-
control = x;
|
|
1496
|
-
}
|
|
1497
|
-
Reflect.construct(fn, [], Fake);
|
|
1498
|
-
} else {
|
|
1499
|
-
try {
|
|
1500
|
-
Fake.call();
|
|
1501
|
-
} catch (x) {
|
|
1502
|
-
control = x;
|
|
1503
|
-
}
|
|
1504
|
-
fn.call(Fake.prototype);
|
|
1505
|
-
}
|
|
1506
|
-
} else {
|
|
1507
|
-
try {
|
|
1508
|
-
throw Error();
|
|
1509
|
-
} catch (x) {
|
|
1510
|
-
control = x;
|
|
1511
|
-
}
|
|
1512
|
-
fn();
|
|
1513
|
-
}
|
|
1514
|
-
} catch (sample) {
|
|
1515
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1516
|
-
var sampleLines = sample.stack.split("\n");
|
|
1517
|
-
var controlLines = control.stack.split("\n");
|
|
1518
|
-
var s = sampleLines.length - 1;
|
|
1519
|
-
var c = controlLines.length - 1;
|
|
1520
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1521
|
-
c--;
|
|
1522
|
-
}
|
|
1523
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1524
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1525
|
-
if (s !== 1 || c !== 1) {
|
|
1526
|
-
do {
|
|
1527
|
-
s--;
|
|
1528
|
-
c--;
|
|
1529
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1530
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1531
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1532
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1533
|
-
}
|
|
1534
|
-
{
|
|
1535
|
-
if (typeof fn === "function") {
|
|
1536
|
-
componentFrameCache.set(fn, _frame);
|
|
1537
|
-
}
|
|
1538
|
-
}
|
|
1539
|
-
return _frame;
|
|
1540
|
-
}
|
|
1541
|
-
} while (s >= 1 && c >= 0);
|
|
1542
|
-
}
|
|
1543
|
-
break;
|
|
1544
|
-
}
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
} finally {
|
|
1548
|
-
reentry = false;
|
|
1549
|
-
{
|
|
1550
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1551
|
-
reenableLogs();
|
|
1552
|
-
}
|
|
1553
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1554
|
-
}
|
|
1555
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1556
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1557
|
-
{
|
|
1558
|
-
if (typeof fn === "function") {
|
|
1559
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1560
|
-
}
|
|
1561
|
-
}
|
|
1562
|
-
return syntheticFrame;
|
|
1563
|
-
}
|
|
1564
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1565
|
-
{
|
|
1566
|
-
return describeNativeComponentFrame(fn, false);
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
function shouldConstruct(Component2) {
|
|
1570
|
-
var prototype = Component2.prototype;
|
|
1571
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1572
|
-
}
|
|
1573
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1574
|
-
if (type == null) {
|
|
1575
|
-
return "";
|
|
1576
|
-
}
|
|
1577
|
-
if (typeof type === "function") {
|
|
1578
|
-
{
|
|
1579
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
if (typeof type === "string") {
|
|
1583
|
-
return describeBuiltInComponentFrame(type);
|
|
1584
|
-
}
|
|
1585
|
-
switch (type) {
|
|
1586
|
-
case REACT_SUSPENSE_TYPE:
|
|
1587
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1588
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1589
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1590
|
-
}
|
|
1591
|
-
if (typeof type === "object") {
|
|
1592
|
-
switch (type.$$typeof) {
|
|
1593
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1594
|
-
return describeFunctionComponentFrame(type.render);
|
|
1595
|
-
case REACT_MEMO_TYPE:
|
|
1596
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1597
|
-
case REACT_LAZY_TYPE: {
|
|
1598
|
-
var lazyComponent = type;
|
|
1599
|
-
var payload = lazyComponent._payload;
|
|
1600
|
-
var init = lazyComponent._init;
|
|
1601
|
-
try {
|
|
1602
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1603
|
-
} catch (x) {
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
return "";
|
|
1609
|
-
}
|
|
1610
|
-
var loggedTypeFailures = {};
|
|
1611
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1612
|
-
function setCurrentlyValidatingElement(element) {
|
|
1613
|
-
{
|
|
1614
|
-
if (element) {
|
|
1615
|
-
var owner = element._owner;
|
|
1616
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1617
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1618
|
-
} else {
|
|
1619
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1624
|
-
{
|
|
1625
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
1626
|
-
for (var typeSpecName in typeSpecs) {
|
|
1627
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1628
|
-
var error$1 = void 0;
|
|
1629
|
-
try {
|
|
1630
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1631
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1632
|
-
err.name = "Invariant Violation";
|
|
1633
|
-
throw err;
|
|
1634
|
-
}
|
|
1635
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1636
|
-
} catch (ex) {
|
|
1637
|
-
error$1 = ex;
|
|
1638
|
-
}
|
|
1639
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1640
|
-
setCurrentlyValidatingElement(element);
|
|
1641
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1642
|
-
setCurrentlyValidatingElement(null);
|
|
1643
|
-
}
|
|
1644
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1645
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1646
|
-
setCurrentlyValidatingElement(element);
|
|
1647
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1648
|
-
setCurrentlyValidatingElement(null);
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1655
|
-
{
|
|
1656
|
-
if (element) {
|
|
1657
|
-
var owner = element._owner;
|
|
1658
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1659
|
-
setExtraStackFrame(stack);
|
|
1660
|
-
} else {
|
|
1661
|
-
setExtraStackFrame(null);
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
var propTypesMisspellWarningShown;
|
|
1666
|
-
{
|
|
1667
|
-
propTypesMisspellWarningShown = false;
|
|
1668
|
-
}
|
|
1669
|
-
function getDeclarationErrorAddendum() {
|
|
1670
|
-
if (ReactCurrentOwner.current) {
|
|
1671
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1672
|
-
if (name) {
|
|
1673
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
return "";
|
|
1677
|
-
}
|
|
1678
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1679
|
-
if (source !== void 0) {
|
|
1680
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1681
|
-
var lineNumber = source.lineNumber;
|
|
1682
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1683
|
-
}
|
|
1684
|
-
return "";
|
|
1685
|
-
}
|
|
1686
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1687
|
-
if (elementProps !== null && elementProps !== void 0) {
|
|
1688
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1689
|
-
}
|
|
1690
|
-
return "";
|
|
1691
|
-
}
|
|
1692
|
-
var ownerHasKeyUseWarning = {};
|
|
1693
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1694
|
-
var info = getDeclarationErrorAddendum();
|
|
1695
|
-
if (!info) {
|
|
1696
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1697
|
-
if (parentName) {
|
|
1698
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
return info;
|
|
1702
|
-
}
|
|
1703
|
-
function validateExplicitKey(element, parentType) {
|
|
1704
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1705
|
-
return;
|
|
1706
|
-
}
|
|
1707
|
-
element._store.validated = true;
|
|
1708
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1709
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1710
|
-
return;
|
|
1711
|
-
}
|
|
1712
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1713
|
-
var childOwner = "";
|
|
1714
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1715
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1716
|
-
}
|
|
1717
|
-
{
|
|
1718
|
-
setCurrentlyValidatingElement$1(element);
|
|
1719
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1720
|
-
setCurrentlyValidatingElement$1(null);
|
|
1721
|
-
}
|
|
1722
|
-
}
|
|
1723
|
-
function validateChildKeys(node, parentType) {
|
|
1724
|
-
if (typeof node !== "object") {
|
|
1725
|
-
return;
|
|
1726
|
-
}
|
|
1727
|
-
if (isArray(node)) {
|
|
1728
|
-
for (var i = 0; i < node.length; i++) {
|
|
1729
|
-
var child = node[i];
|
|
1730
|
-
if (isValidElement(child)) {
|
|
1731
|
-
validateExplicitKey(child, parentType);
|
|
1732
|
-
}
|
|
1733
|
-
}
|
|
1734
|
-
} else if (isValidElement(node)) {
|
|
1735
|
-
if (node._store) {
|
|
1736
|
-
node._store.validated = true;
|
|
1737
|
-
}
|
|
1738
|
-
} else if (node) {
|
|
1739
|
-
var iteratorFn = getIteratorFn(node);
|
|
1740
|
-
if (typeof iteratorFn === "function") {
|
|
1741
|
-
if (iteratorFn !== node.entries) {
|
|
1742
|
-
var iterator = iteratorFn.call(node);
|
|
1743
|
-
var step;
|
|
1744
|
-
while (!(step = iterator.next()).done) {
|
|
1745
|
-
if (isValidElement(step.value)) {
|
|
1746
|
-
validateExplicitKey(step.value, parentType);
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
function validatePropTypes(element) {
|
|
1754
|
-
{
|
|
1755
|
-
var type = element.type;
|
|
1756
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
1757
|
-
return;
|
|
1758
|
-
}
|
|
1759
|
-
var propTypes;
|
|
1760
|
-
if (typeof type === "function") {
|
|
1761
|
-
propTypes = type.propTypes;
|
|
1762
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1763
|
-
propTypes = type.propTypes;
|
|
1764
|
-
} else {
|
|
1765
|
-
return;
|
|
1766
|
-
}
|
|
1767
|
-
if (propTypes) {
|
|
1768
|
-
var name = getComponentNameFromType(type);
|
|
1769
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1770
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1771
|
-
propTypesMisspellWarningShown = true;
|
|
1772
|
-
var _name = getComponentNameFromType(type);
|
|
1773
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1774
|
-
}
|
|
1775
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1776
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
function validateFragmentProps(fragment) {
|
|
1781
|
-
{
|
|
1782
|
-
var keys = Object.keys(fragment.props);
|
|
1783
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1784
|
-
var key = keys[i];
|
|
1785
|
-
if (key !== "children" && key !== "key") {
|
|
1786
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1787
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1788
|
-
setCurrentlyValidatingElement$1(null);
|
|
1789
|
-
break;
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
if (fragment.ref !== null) {
|
|
1793
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1794
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1795
|
-
setCurrentlyValidatingElement$1(null);
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
function createElementWithValidation(type, props, children) {
|
|
1800
|
-
var validType = isValidElementType(type);
|
|
1801
|
-
if (!validType) {
|
|
1802
|
-
var info = "";
|
|
1803
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1804
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
1805
|
-
}
|
|
1806
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1807
|
-
if (sourceInfo) {
|
|
1808
|
-
info += sourceInfo;
|
|
1809
|
-
} else {
|
|
1810
|
-
info += getDeclarationErrorAddendum();
|
|
1811
|
-
}
|
|
1812
|
-
var typeString;
|
|
1813
|
-
if (type === null) {
|
|
1814
|
-
typeString = "null";
|
|
1815
|
-
} else if (isArray(type)) {
|
|
1816
|
-
typeString = "array";
|
|
1817
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1818
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1819
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1820
|
-
} else {
|
|
1821
|
-
typeString = typeof type;
|
|
1822
|
-
}
|
|
1823
|
-
{
|
|
1824
|
-
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
var element = createElement.apply(this, arguments);
|
|
1828
|
-
if (element == null) {
|
|
1829
|
-
return element;
|
|
1830
|
-
}
|
|
1831
|
-
if (validType) {
|
|
1832
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1833
|
-
validateChildKeys(arguments[i], type);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
1837
|
-
validateFragmentProps(element);
|
|
1838
|
-
} else {
|
|
1839
|
-
validatePropTypes(element);
|
|
1840
|
-
}
|
|
1841
|
-
return element;
|
|
1842
|
-
}
|
|
1843
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1844
|
-
function createFactoryWithValidation(type) {
|
|
1845
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1846
|
-
validatedFactory.type = type;
|
|
1847
|
-
{
|
|
1848
|
-
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1849
|
-
didWarnAboutDeprecatedCreateFactory = true;
|
|
1850
|
-
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1851
|
-
}
|
|
1852
|
-
Object.defineProperty(validatedFactory, "type", {
|
|
1853
|
-
enumerable: false,
|
|
1854
|
-
get: function() {
|
|
1855
|
-
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1856
|
-
Object.defineProperty(this, "type", {
|
|
1857
|
-
value: type
|
|
1858
|
-
});
|
|
1859
|
-
return type;
|
|
1860
|
-
}
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
return validatedFactory;
|
|
1864
|
-
}
|
|
1865
|
-
function cloneElementWithValidation(element, props, children) {
|
|
1866
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
1867
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1868
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
1869
|
-
}
|
|
1870
|
-
validatePropTypes(newElement);
|
|
1871
|
-
return newElement;
|
|
1872
|
-
}
|
|
1873
|
-
function startTransition(scope, options) {
|
|
1874
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1875
|
-
ReactCurrentBatchConfig.transition = {};
|
|
1876
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1877
|
-
{
|
|
1878
|
-
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1879
|
-
}
|
|
1880
|
-
try {
|
|
1881
|
-
scope();
|
|
1882
|
-
} finally {
|
|
1883
|
-
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1884
|
-
{
|
|
1885
|
-
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1886
|
-
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1887
|
-
if (updatedFibersCount > 10) {
|
|
1888
|
-
warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
1889
|
-
}
|
|
1890
|
-
currentTransition._updatedFibers.clear();
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
var didWarnAboutMessageChannel = false;
|
|
1896
|
-
var enqueueTaskImpl = null;
|
|
1897
|
-
function enqueueTask(task) {
|
|
1898
|
-
if (enqueueTaskImpl === null) {
|
|
1899
|
-
try {
|
|
1900
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1901
|
-
var nodeRequire = module2 && module2[requireString];
|
|
1902
|
-
enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
|
|
1903
|
-
} catch (_err) {
|
|
1904
|
-
enqueueTaskImpl = function(callback) {
|
|
1905
|
-
{
|
|
1906
|
-
if (didWarnAboutMessageChannel === false) {
|
|
1907
|
-
didWarnAboutMessageChannel = true;
|
|
1908
|
-
if (typeof MessageChannel === "undefined") {
|
|
1909
|
-
error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
var channel = new MessageChannel();
|
|
1914
|
-
channel.port1.onmessage = callback;
|
|
1915
|
-
channel.port2.postMessage(void 0);
|
|
1916
|
-
};
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
return enqueueTaskImpl(task);
|
|
1920
|
-
}
|
|
1921
|
-
var actScopeDepth = 0;
|
|
1922
|
-
var didWarnNoAwaitAct = false;
|
|
1923
|
-
function act(callback) {
|
|
1924
|
-
{
|
|
1925
|
-
var prevActScopeDepth = actScopeDepth;
|
|
1926
|
-
actScopeDepth++;
|
|
1927
|
-
if (ReactCurrentActQueue.current === null) {
|
|
1928
|
-
ReactCurrentActQueue.current = [];
|
|
1929
|
-
}
|
|
1930
|
-
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
1931
|
-
var result;
|
|
1932
|
-
try {
|
|
1933
|
-
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
1934
|
-
result = callback();
|
|
1935
|
-
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
1936
|
-
var queue = ReactCurrentActQueue.current;
|
|
1937
|
-
if (queue !== null) {
|
|
1938
|
-
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
1939
|
-
flushActQueue(queue);
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
} catch (error2) {
|
|
1943
|
-
popActScope(prevActScopeDepth);
|
|
1944
|
-
throw error2;
|
|
1945
|
-
} finally {
|
|
1946
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
1947
|
-
}
|
|
1948
|
-
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
1949
|
-
var thenableResult = result;
|
|
1950
|
-
var wasAwaited = false;
|
|
1951
|
-
var thenable = {
|
|
1952
|
-
then: function(resolve, reject) {
|
|
1953
|
-
wasAwaited = true;
|
|
1954
|
-
thenableResult.then(function(returnValue2) {
|
|
1955
|
-
popActScope(prevActScopeDepth);
|
|
1956
|
-
if (actScopeDepth === 0) {
|
|
1957
|
-
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
1958
|
-
} else {
|
|
1959
|
-
resolve(returnValue2);
|
|
1960
|
-
}
|
|
1961
|
-
}, function(error2) {
|
|
1962
|
-
popActScope(prevActScopeDepth);
|
|
1963
|
-
reject(error2);
|
|
1964
|
-
});
|
|
1965
|
-
}
|
|
1966
|
-
};
|
|
1967
|
-
{
|
|
1968
|
-
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
1969
|
-
Promise.resolve().then(function() {
|
|
1970
|
-
}).then(function() {
|
|
1971
|
-
if (!wasAwaited) {
|
|
1972
|
-
didWarnNoAwaitAct = true;
|
|
1973
|
-
error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
|
|
1974
|
-
}
|
|
1975
|
-
});
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
return thenable;
|
|
1979
|
-
} else {
|
|
1980
|
-
var returnValue = result;
|
|
1981
|
-
popActScope(prevActScopeDepth);
|
|
1982
|
-
if (actScopeDepth === 0) {
|
|
1983
|
-
var _queue = ReactCurrentActQueue.current;
|
|
1984
|
-
if (_queue !== null) {
|
|
1985
|
-
flushActQueue(_queue);
|
|
1986
|
-
ReactCurrentActQueue.current = null;
|
|
1987
|
-
}
|
|
1988
|
-
var _thenable = {
|
|
1989
|
-
then: function(resolve, reject) {
|
|
1990
|
-
if (ReactCurrentActQueue.current === null) {
|
|
1991
|
-
ReactCurrentActQueue.current = [];
|
|
1992
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1993
|
-
} else {
|
|
1994
|
-
resolve(returnValue);
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
};
|
|
1998
|
-
return _thenable;
|
|
1999
|
-
} else {
|
|
2000
|
-
var _thenable2 = {
|
|
2001
|
-
then: function(resolve, reject) {
|
|
2002
|
-
resolve(returnValue);
|
|
2003
|
-
}
|
|
2004
|
-
};
|
|
2005
|
-
return _thenable2;
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
function popActScope(prevActScopeDepth) {
|
|
2011
|
-
{
|
|
2012
|
-
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2013
|
-
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2014
|
-
}
|
|
2015
|
-
actScopeDepth = prevActScopeDepth;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2019
|
-
{
|
|
2020
|
-
var queue = ReactCurrentActQueue.current;
|
|
2021
|
-
if (queue !== null) {
|
|
2022
|
-
try {
|
|
2023
|
-
flushActQueue(queue);
|
|
2024
|
-
enqueueTask(function() {
|
|
2025
|
-
if (queue.length === 0) {
|
|
2026
|
-
ReactCurrentActQueue.current = null;
|
|
2027
|
-
resolve(returnValue);
|
|
2028
|
-
} else {
|
|
2029
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2030
|
-
}
|
|
2031
|
-
});
|
|
2032
|
-
} catch (error2) {
|
|
2033
|
-
reject(error2);
|
|
2034
|
-
}
|
|
2035
|
-
} else {
|
|
2036
|
-
resolve(returnValue);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
var isFlushing = false;
|
|
2041
|
-
function flushActQueue(queue) {
|
|
2042
|
-
{
|
|
2043
|
-
if (!isFlushing) {
|
|
2044
|
-
isFlushing = true;
|
|
2045
|
-
var i = 0;
|
|
2046
|
-
try {
|
|
2047
|
-
for (; i < queue.length; i++) {
|
|
2048
|
-
var callback = queue[i];
|
|
2049
|
-
do {
|
|
2050
|
-
callback = callback(true);
|
|
2051
|
-
} while (callback !== null);
|
|
2052
|
-
}
|
|
2053
|
-
queue.length = 0;
|
|
2054
|
-
} catch (error2) {
|
|
2055
|
-
queue = queue.slice(i + 1);
|
|
2056
|
-
throw error2;
|
|
2057
|
-
} finally {
|
|
2058
|
-
isFlushing = false;
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
var createElement$1 = createElementWithValidation;
|
|
2064
|
-
var cloneElement$1 = cloneElementWithValidation;
|
|
2065
|
-
var createFactory = createFactoryWithValidation;
|
|
2066
|
-
var Children = {
|
|
2067
|
-
map: mapChildren,
|
|
2068
|
-
forEach: forEachChildren,
|
|
2069
|
-
count: countChildren,
|
|
2070
|
-
toArray,
|
|
2071
|
-
only: onlyChild
|
|
2072
|
-
};
|
|
2073
|
-
exports.Children = Children;
|
|
2074
|
-
exports.Component = Component;
|
|
2075
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2076
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2077
|
-
exports.PureComponent = PureComponent;
|
|
2078
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2079
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2080
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2081
|
-
exports.cloneElement = cloneElement$1;
|
|
2082
|
-
exports.createContext = createContext;
|
|
2083
|
-
exports.createElement = createElement$1;
|
|
2084
|
-
exports.createFactory = createFactory;
|
|
2085
|
-
exports.createRef = createRef;
|
|
2086
|
-
exports.forwardRef = forwardRef;
|
|
2087
|
-
exports.isValidElement = isValidElement;
|
|
2088
|
-
exports.lazy = lazy;
|
|
2089
|
-
exports.memo = memo;
|
|
2090
|
-
exports.startTransition = startTransition;
|
|
2091
|
-
exports.unstable_act = act;
|
|
2092
|
-
exports.useCallback = useCallback;
|
|
2093
|
-
exports.useContext = useContext;
|
|
2094
|
-
exports.useDebugValue = useDebugValue;
|
|
2095
|
-
exports.useDeferredValue = useDeferredValue;
|
|
2096
|
-
exports.useEffect = useEffect;
|
|
2097
|
-
exports.useId = useId;
|
|
2098
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
2099
|
-
exports.useInsertionEffect = useInsertionEffect;
|
|
2100
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
2101
|
-
exports.useMemo = useMemo;
|
|
2102
|
-
exports.useReducer = useReducer;
|
|
2103
|
-
exports.useRef = useRef;
|
|
2104
|
-
exports.useState = useState;
|
|
2105
|
-
exports.useSyncExternalStore = useSyncExternalStore;
|
|
2106
|
-
exports.useTransition = useTransition;
|
|
2107
|
-
exports.version = ReactVersion;
|
|
2108
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2109
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2110
|
-
}
|
|
2111
|
-
})();
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
});
|
|
2115
|
-
|
|
2116
|
-
// node_modules/react/index.js
|
|
2117
|
-
var require_react = __commonJS({
|
|
2118
|
-
"node_modules/react/index.js"(exports, module2) {
|
|
2119
|
-
"use strict";
|
|
2120
|
-
if (process.env.NODE_ENV === "production") {
|
|
2121
|
-
module2.exports = require_react_production_min();
|
|
2122
|
-
} else {
|
|
2123
|
-
module2.exports = require_react_development();
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
});
|
|
2127
|
-
|
|
2128
|
-
// node_modules/next/dist/shared/lib/side-effect.js
|
|
2129
|
-
var require_side_effect = __commonJS({
|
|
2130
|
-
"node_modules/next/dist/shared/lib/side-effect.js"(exports) {
|
|
2131
|
-
"use strict";
|
|
2132
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2133
|
-
value: true
|
|
2134
|
-
});
|
|
2135
|
-
exports.default = SideEffect;
|
|
2136
|
-
var _react = _interopRequireWildcard(require_react());
|
|
2137
|
-
function SideEffect(props) {
|
|
2138
|
-
const { headManager, reduceComponentsToState } = props;
|
|
2139
|
-
function emitChange() {
|
|
2140
|
-
if (headManager && headManager.mountedInstances) {
|
|
2141
|
-
const headElements = _react.Children.toArray(Array.from(headManager.mountedInstances).filter(Boolean));
|
|
2142
|
-
headManager.updateHead(reduceComponentsToState(headElements, props));
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
if (isServer) {
|
|
2146
|
-
var ref;
|
|
2147
|
-
headManager == null ? void 0 : (ref = headManager.mountedInstances) == null ? void 0 : ref.add(props.children);
|
|
2148
|
-
emitChange();
|
|
2149
|
-
}
|
|
2150
|
-
useClientOnlyLayoutEffect(() => {
|
|
2151
|
-
var ref1;
|
|
2152
|
-
headManager == null ? void 0 : (ref1 = headManager.mountedInstances) == null ? void 0 : ref1.add(props.children);
|
|
2153
|
-
return () => {
|
|
2154
|
-
var ref2;
|
|
2155
|
-
headManager == null ? void 0 : (ref2 = headManager.mountedInstances) == null ? void 0 : ref2.delete(props.children);
|
|
2156
|
-
};
|
|
2157
|
-
});
|
|
2158
|
-
useClientOnlyLayoutEffect(() => {
|
|
2159
|
-
if (headManager) {
|
|
2160
|
-
headManager._pendingUpdate = emitChange;
|
|
2161
|
-
}
|
|
2162
|
-
return () => {
|
|
2163
|
-
if (headManager) {
|
|
2164
|
-
headManager._pendingUpdate = emitChange;
|
|
2165
|
-
}
|
|
2166
|
-
};
|
|
2167
|
-
});
|
|
2168
|
-
useClientOnlyEffect(() => {
|
|
2169
|
-
if (headManager && headManager._pendingUpdate) {
|
|
2170
|
-
headManager._pendingUpdate();
|
|
2171
|
-
headManager._pendingUpdate = null;
|
|
2172
|
-
}
|
|
2173
|
-
return () => {
|
|
2174
|
-
if (headManager && headManager._pendingUpdate) {
|
|
2175
|
-
headManager._pendingUpdate();
|
|
2176
|
-
headManager._pendingUpdate = null;
|
|
2177
|
-
}
|
|
2178
|
-
};
|
|
2179
|
-
});
|
|
2180
|
-
return null;
|
|
2181
|
-
}
|
|
2182
|
-
function _getRequireWildcardCache() {
|
|
2183
|
-
if (typeof WeakMap !== "function")
|
|
2184
|
-
return null;
|
|
2185
|
-
var cache = /* @__PURE__ */ new WeakMap();
|
|
2186
|
-
_getRequireWildcardCache = function() {
|
|
2187
|
-
return cache;
|
|
2188
|
-
};
|
|
2189
|
-
return cache;
|
|
2190
|
-
}
|
|
2191
|
-
function _interopRequireWildcard(obj) {
|
|
2192
|
-
if (obj && obj.__esModule) {
|
|
2193
|
-
return obj;
|
|
2194
|
-
}
|
|
2195
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
2196
|
-
return {
|
|
2197
|
-
default: obj
|
|
2198
|
-
};
|
|
2199
|
-
}
|
|
2200
|
-
var cache = _getRequireWildcardCache();
|
|
2201
|
-
if (cache && cache.has(obj)) {
|
|
2202
|
-
return cache.get(obj);
|
|
2203
|
-
}
|
|
2204
|
-
var newObj = {};
|
|
2205
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
2206
|
-
for (var key in obj) {
|
|
2207
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2208
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
2209
|
-
if (desc && (desc.get || desc.set)) {
|
|
2210
|
-
Object.defineProperty(newObj, key, desc);
|
|
2211
|
-
} else {
|
|
2212
|
-
newObj[key] = obj[key];
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
}
|
|
2216
|
-
newObj.default = obj;
|
|
2217
|
-
if (cache) {
|
|
2218
|
-
cache.set(obj, newObj);
|
|
2219
|
-
}
|
|
2220
|
-
return newObj;
|
|
2221
|
-
}
|
|
2222
|
-
var isServer = typeof window === "undefined";
|
|
2223
|
-
var useClientOnlyLayoutEffect = isServer ? () => {
|
|
2224
|
-
} : _react.useLayoutEffect;
|
|
2225
|
-
var useClientOnlyEffect = isServer ? () => {
|
|
2226
|
-
} : _react.useEffect;
|
|
2227
|
-
}
|
|
2228
|
-
});
|
|
2229
|
-
|
|
2230
|
-
// node_modules/next/dist/shared/lib/amp-context.js
|
|
2231
|
-
var require_amp_context = __commonJS({
|
|
2232
|
-
"node_modules/next/dist/shared/lib/amp-context.js"(exports) {
|
|
2233
|
-
"use strict";
|
|
2234
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2235
|
-
value: true
|
|
2236
|
-
});
|
|
2237
|
-
exports.AmpStateContext = void 0;
|
|
2238
|
-
var _react = _interopRequireDefault(require_react());
|
|
2239
|
-
function _interopRequireDefault(obj) {
|
|
2240
|
-
return obj && obj.__esModule ? obj : {
|
|
2241
|
-
default: obj
|
|
2242
|
-
};
|
|
2243
|
-
}
|
|
2244
|
-
var AmpStateContext = _react.default.createContext({});
|
|
2245
|
-
exports.AmpStateContext = AmpStateContext;
|
|
2246
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2247
|
-
AmpStateContext.displayName = "AmpStateContext";
|
|
2248
|
-
}
|
|
2249
|
-
}
|
|
2250
|
-
});
|
|
2251
|
-
|
|
2252
|
-
// node_modules/next/dist/shared/lib/head-manager-context.js
|
|
2253
|
-
var require_head_manager_context = __commonJS({
|
|
2254
|
-
"node_modules/next/dist/shared/lib/head-manager-context.js"(exports) {
|
|
2255
|
-
"use strict";
|
|
2256
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2257
|
-
value: true
|
|
2258
|
-
});
|
|
2259
|
-
exports.HeadManagerContext = void 0;
|
|
2260
|
-
var _react = _interopRequireDefault(require_react());
|
|
2261
|
-
function _interopRequireDefault(obj) {
|
|
2262
|
-
return obj && obj.__esModule ? obj : {
|
|
2263
|
-
default: obj
|
|
2264
|
-
};
|
|
2265
|
-
}
|
|
2266
|
-
var HeadManagerContext = _react.default.createContext({});
|
|
2267
|
-
exports.HeadManagerContext = HeadManagerContext;
|
|
2268
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2269
|
-
HeadManagerContext.displayName = "HeadManagerContext";
|
|
2270
|
-
}
|
|
2271
|
-
}
|
|
2272
|
-
});
|
|
2273
|
-
|
|
2274
|
-
// node_modules/next/dist/shared/lib/amp-mode.js
|
|
2275
|
-
var require_amp_mode = __commonJS({
|
|
2276
|
-
"node_modules/next/dist/shared/lib/amp-mode.js"(exports) {
|
|
2277
|
-
"use strict";
|
|
2278
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2279
|
-
value: true
|
|
2280
|
-
});
|
|
2281
|
-
exports.isInAmpMode = isInAmpMode;
|
|
2282
|
-
function isInAmpMode({ ampFirst = false, hybrid = false, hasQuery = false } = {}) {
|
|
2283
|
-
return ampFirst || hybrid && hasQuery;
|
|
2284
|
-
}
|
|
2285
|
-
}
|
|
2286
|
-
});
|
|
2287
|
-
|
|
2288
|
-
// node_modules/next/dist/shared/lib/utils.js
|
|
2289
|
-
var require_utils = __commonJS({
|
|
2290
|
-
"node_modules/next/dist/shared/lib/utils.js"(exports) {
|
|
2291
|
-
"use strict";
|
|
2292
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2293
|
-
value: true
|
|
2294
|
-
});
|
|
2295
|
-
exports.execOnce = execOnce;
|
|
2296
|
-
exports.getLocationOrigin = getLocationOrigin;
|
|
2297
|
-
exports.getURL = getURL;
|
|
2298
|
-
exports.getDisplayName = getDisplayName;
|
|
2299
|
-
exports.isResSent = isResSent;
|
|
2300
|
-
exports.normalizeRepeatedSlashes = normalizeRepeatedSlashes;
|
|
2301
|
-
exports.loadGetInitialProps = loadGetInitialProps;
|
|
2302
|
-
exports.ST = exports.SP = exports.warnOnce = exports.isAbsoluteUrl = void 0;
|
|
2303
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2304
|
-
try {
|
|
2305
|
-
var info = gen[key](arg);
|
|
2306
|
-
var value = info.value;
|
|
2307
|
-
} catch (error) {
|
|
2308
|
-
reject(error);
|
|
2309
|
-
return;
|
|
2310
|
-
}
|
|
2311
|
-
if (info.done) {
|
|
2312
|
-
resolve(value);
|
|
2313
|
-
} else {
|
|
2314
|
-
Promise.resolve(value).then(_next, _throw);
|
|
2315
|
-
}
|
|
2316
|
-
}
|
|
2317
|
-
function _asyncToGenerator(fn) {
|
|
2318
|
-
return function() {
|
|
2319
|
-
var self = this, args = arguments;
|
|
2320
|
-
return new Promise(function(resolve, reject) {
|
|
2321
|
-
var gen = fn.apply(self, args);
|
|
2322
|
-
function _next(value) {
|
|
2323
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
2324
|
-
}
|
|
2325
|
-
function _throw(err) {
|
|
2326
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2327
|
-
}
|
|
2328
|
-
_next(void 0);
|
|
2329
|
-
});
|
|
2330
|
-
};
|
|
2331
|
-
}
|
|
2332
|
-
function execOnce(fn) {
|
|
2333
|
-
let used = false;
|
|
2334
|
-
let result;
|
|
2335
|
-
return (...args) => {
|
|
2336
|
-
if (!used) {
|
|
2337
|
-
used = true;
|
|
2338
|
-
result = fn(...args);
|
|
2339
|
-
}
|
|
2340
|
-
return result;
|
|
2341
|
-
};
|
|
2342
|
-
}
|
|
2343
|
-
var ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
2344
|
-
var isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
2345
|
-
exports.isAbsoluteUrl = isAbsoluteUrl;
|
|
2346
|
-
function getLocationOrigin() {
|
|
2347
|
-
const { protocol, hostname, port } = window.location;
|
|
2348
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}`;
|
|
2349
|
-
}
|
|
2350
|
-
function getURL() {
|
|
2351
|
-
const { href } = window.location;
|
|
2352
|
-
const origin = getLocationOrigin();
|
|
2353
|
-
return href.substring(origin.length);
|
|
2354
|
-
}
|
|
2355
|
-
function getDisplayName(Component) {
|
|
2356
|
-
return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
|
|
2357
|
-
}
|
|
2358
|
-
function isResSent(res) {
|
|
2359
|
-
return res.finished || res.headersSent;
|
|
2360
|
-
}
|
|
2361
|
-
function normalizeRepeatedSlashes(url) {
|
|
2362
|
-
const urlParts = url.split("?");
|
|
2363
|
-
const urlNoQuery = urlParts[0];
|
|
2364
|
-
return urlNoQuery.replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
|
|
2365
|
-
}
|
|
2366
|
-
function loadGetInitialProps(App2, ctx) {
|
|
2367
|
-
return _loadGetInitialProps.apply(this, arguments);
|
|
2368
|
-
}
|
|
2369
|
-
function _loadGetInitialProps() {
|
|
2370
|
-
_loadGetInitialProps = _asyncToGenerator(function* (App2, ctx) {
|
|
2371
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2372
|
-
var ref;
|
|
2373
|
-
if ((ref = App2.prototype) == null ? void 0 : ref.getInitialProps) {
|
|
2374
|
-
const message = `"${getDisplayName(App2)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
|
|
2375
|
-
throw new Error(message);
|
|
2376
|
-
}
|
|
2377
|
-
}
|
|
2378
|
-
const res = ctx.res || ctx.ctx && ctx.ctx.res;
|
|
2379
|
-
if (!App2.getInitialProps) {
|
|
2380
|
-
if (ctx.ctx && ctx.Component) {
|
|
2381
|
-
return {
|
|
2382
|
-
pageProps: yield loadGetInitialProps(ctx.Component, ctx.ctx)
|
|
2383
|
-
};
|
|
2384
|
-
}
|
|
2385
|
-
return {};
|
|
2386
|
-
}
|
|
2387
|
-
const props = yield App2.getInitialProps(ctx);
|
|
2388
|
-
if (res && isResSent(res)) {
|
|
2389
|
-
return props;
|
|
2390
|
-
}
|
|
2391
|
-
if (!props) {
|
|
2392
|
-
const message = `"${getDisplayName(App2)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
|
|
2393
|
-
throw new Error(message);
|
|
2394
|
-
}
|
|
2395
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2396
|
-
if (Object.keys(props).length === 0 && !ctx.ctx) {
|
|
2397
|
-
console.warn(`${getDisplayName(App2)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
return props;
|
|
2401
|
-
});
|
|
2402
|
-
return _loadGetInitialProps.apply(this, arguments);
|
|
2403
|
-
}
|
|
2404
|
-
var warnOnce = (_) => {
|
|
2405
|
-
};
|
|
2406
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2407
|
-
const warnings = /* @__PURE__ */ new Set();
|
|
2408
|
-
exports.warnOnce = warnOnce = (msg) => {
|
|
2409
|
-
if (!warnings.has(msg)) {
|
|
2410
|
-
console.warn(msg);
|
|
2411
|
-
}
|
|
2412
|
-
warnings.add(msg);
|
|
2413
|
-
};
|
|
2414
|
-
}
|
|
2415
|
-
var SP = typeof performance !== "undefined";
|
|
2416
|
-
exports.SP = SP;
|
|
2417
|
-
var ST = SP && [
|
|
2418
|
-
"mark",
|
|
2419
|
-
"measure",
|
|
2420
|
-
"getEntriesByName"
|
|
2421
|
-
].every((method) => typeof performance[method] === "function");
|
|
2422
|
-
exports.ST = ST;
|
|
2423
|
-
var DecodeError = class extends Error {
|
|
2424
|
-
};
|
|
2425
|
-
exports.DecodeError = DecodeError;
|
|
2426
|
-
var NormalizeError = class extends Error {
|
|
2427
|
-
};
|
|
2428
|
-
exports.NormalizeError = NormalizeError;
|
|
2429
|
-
var PageNotFoundError = class extends Error {
|
|
2430
|
-
constructor(page) {
|
|
2431
|
-
super();
|
|
2432
|
-
this.code = "ENOENT";
|
|
2433
|
-
this.message = `Cannot find module for page: ${page}`;
|
|
2434
|
-
}
|
|
2435
|
-
};
|
|
2436
|
-
exports.PageNotFoundError = PageNotFoundError;
|
|
2437
|
-
var MissingStaticPage = class extends Error {
|
|
2438
|
-
constructor(page, message) {
|
|
2439
|
-
super();
|
|
2440
|
-
this.message = `Failed to load static file for page: ${page} ${message}`;
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
exports.MissingStaticPage = MissingStaticPage;
|
|
2444
|
-
var MiddlewareNotFoundError = class extends Error {
|
|
2445
|
-
constructor() {
|
|
2446
|
-
super();
|
|
2447
|
-
this.code = "ENOENT";
|
|
2448
|
-
this.message = `Cannot find the middleware module`;
|
|
2449
|
-
}
|
|
2450
|
-
};
|
|
2451
|
-
exports.MiddlewareNotFoundError = MiddlewareNotFoundError;
|
|
2452
|
-
exports.warnOnce = warnOnce;
|
|
2453
|
-
}
|
|
2454
|
-
});
|
|
2455
|
-
|
|
2456
|
-
// node_modules/next/dist/shared/lib/head.js
|
|
2457
|
-
var require_head = __commonJS({
|
|
2458
|
-
"node_modules/next/dist/shared/lib/head.js"(exports, module2) {
|
|
2459
|
-
"use strict";
|
|
2460
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2461
|
-
value: true
|
|
2462
|
-
});
|
|
2463
|
-
exports.defaultHead = defaultHead;
|
|
2464
|
-
exports.default = void 0;
|
|
2465
|
-
var _react = _interopRequireWildcard(require_react());
|
|
2466
|
-
var _sideEffect = _interopRequireDefault(require_side_effect());
|
|
2467
|
-
var _ampContext = require_amp_context();
|
|
2468
|
-
var _headManagerContext = require_head_manager_context();
|
|
2469
|
-
var _ampMode = require_amp_mode();
|
|
2470
|
-
var _utils = require_utils();
|
|
2471
|
-
function _extends() {
|
|
2472
|
-
_extends = Object.assign || function(target) {
|
|
2473
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2474
|
-
var source = arguments[i];
|
|
2475
|
-
for (var key in source) {
|
|
2476
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2477
|
-
target[key] = source[key];
|
|
2478
|
-
}
|
|
2479
|
-
}
|
|
2480
|
-
}
|
|
2481
|
-
return target;
|
|
2482
|
-
};
|
|
2483
|
-
return _extends.apply(this, arguments);
|
|
2484
|
-
}
|
|
2485
|
-
function _interopRequireDefault(obj) {
|
|
2486
|
-
return obj && obj.__esModule ? obj : {
|
|
2487
|
-
default: obj
|
|
2488
|
-
};
|
|
2489
|
-
}
|
|
2490
|
-
function _getRequireWildcardCache() {
|
|
2491
|
-
if (typeof WeakMap !== "function")
|
|
2492
|
-
return null;
|
|
2493
|
-
var cache = /* @__PURE__ */ new WeakMap();
|
|
2494
|
-
_getRequireWildcardCache = function() {
|
|
2495
|
-
return cache;
|
|
2496
|
-
};
|
|
2497
|
-
return cache;
|
|
2498
|
-
}
|
|
2499
|
-
function _interopRequireWildcard(obj) {
|
|
2500
|
-
if (obj && obj.__esModule) {
|
|
2501
|
-
return obj;
|
|
2502
|
-
}
|
|
2503
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
2504
|
-
return {
|
|
2505
|
-
default: obj
|
|
2506
|
-
};
|
|
2507
|
-
}
|
|
2508
|
-
var cache = _getRequireWildcardCache();
|
|
2509
|
-
if (cache && cache.has(obj)) {
|
|
2510
|
-
return cache.get(obj);
|
|
2511
|
-
}
|
|
2512
|
-
var newObj = {};
|
|
2513
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
2514
|
-
for (var key in obj) {
|
|
2515
|
-
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2516
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
2517
|
-
if (desc && (desc.get || desc.set)) {
|
|
2518
|
-
Object.defineProperty(newObj, key, desc);
|
|
2519
|
-
} else {
|
|
2520
|
-
newObj[key] = obj[key];
|
|
2521
|
-
}
|
|
2522
|
-
}
|
|
2523
|
-
}
|
|
2524
|
-
newObj.default = obj;
|
|
2525
|
-
if (cache) {
|
|
2526
|
-
cache.set(obj, newObj);
|
|
2527
|
-
}
|
|
2528
|
-
return newObj;
|
|
2529
|
-
}
|
|
2530
|
-
function defaultHead(inAmpMode = false) {
|
|
2531
|
-
const head = [
|
|
2532
|
-
/* @__PURE__ */ _react.default.createElement("meta", {
|
|
2533
|
-
charSet: "utf-8"
|
|
2534
|
-
})
|
|
2535
|
-
];
|
|
2536
|
-
if (!inAmpMode) {
|
|
2537
|
-
head.push(/* @__PURE__ */ _react.default.createElement("meta", {
|
|
2538
|
-
name: "viewport",
|
|
2539
|
-
content: "width=device-width"
|
|
2540
|
-
}));
|
|
2541
|
-
}
|
|
2542
|
-
return head;
|
|
2543
|
-
}
|
|
2544
|
-
function onlyReactElement(list, child) {
|
|
2545
|
-
if (typeof child === "string" || typeof child === "number") {
|
|
2546
|
-
return list;
|
|
2547
|
-
}
|
|
2548
|
-
if (child.type === _react.default.Fragment) {
|
|
2549
|
-
return list.concat(_react.default.Children.toArray(child.props.children).reduce((fragmentList, fragmentChild) => {
|
|
2550
|
-
if (typeof fragmentChild === "string" || typeof fragmentChild === "number") {
|
|
2551
|
-
return fragmentList;
|
|
2552
|
-
}
|
|
2553
|
-
return fragmentList.concat(fragmentChild);
|
|
2554
|
-
}, []));
|
|
2555
|
-
}
|
|
2556
|
-
return list.concat(child);
|
|
2557
|
-
}
|
|
2558
|
-
var METATYPES = [
|
|
2559
|
-
"name",
|
|
2560
|
-
"httpEquiv",
|
|
2561
|
-
"charSet",
|
|
2562
|
-
"itemProp"
|
|
2563
|
-
];
|
|
2564
|
-
function unique() {
|
|
2565
|
-
const keys = /* @__PURE__ */ new Set();
|
|
2566
|
-
const tags = /* @__PURE__ */ new Set();
|
|
2567
|
-
const metaTypes = /* @__PURE__ */ new Set();
|
|
2568
|
-
const metaCategories = {};
|
|
2569
|
-
return (h) => {
|
|
2570
|
-
let isUnique = true;
|
|
2571
|
-
let hasKey = false;
|
|
2572
|
-
if (h.key && typeof h.key !== "number" && h.key.indexOf("$") > 0) {
|
|
2573
|
-
hasKey = true;
|
|
2574
|
-
const key = h.key.slice(h.key.indexOf("$") + 1);
|
|
2575
|
-
if (keys.has(key)) {
|
|
2576
|
-
isUnique = false;
|
|
2577
|
-
} else {
|
|
2578
|
-
keys.add(key);
|
|
2579
|
-
}
|
|
2580
|
-
}
|
|
2581
|
-
switch (h.type) {
|
|
2582
|
-
case "title":
|
|
2583
|
-
case "base":
|
|
2584
|
-
if (tags.has(h.type)) {
|
|
2585
|
-
isUnique = false;
|
|
2586
|
-
} else {
|
|
2587
|
-
tags.add(h.type);
|
|
2588
|
-
}
|
|
2589
|
-
break;
|
|
2590
|
-
case "meta":
|
|
2591
|
-
for (let i = 0, len = METATYPES.length; i < len; i++) {
|
|
2592
|
-
const metatype = METATYPES[i];
|
|
2593
|
-
if (!h.props.hasOwnProperty(metatype))
|
|
2594
|
-
continue;
|
|
2595
|
-
if (metatype === "charSet") {
|
|
2596
|
-
if (metaTypes.has(metatype)) {
|
|
2597
|
-
isUnique = false;
|
|
2598
|
-
} else {
|
|
2599
|
-
metaTypes.add(metatype);
|
|
2600
|
-
}
|
|
2601
|
-
} else {
|
|
2602
|
-
const category = h.props[metatype];
|
|
2603
|
-
const categories = metaCategories[metatype] || /* @__PURE__ */ new Set();
|
|
2604
|
-
if ((metatype !== "name" || !hasKey) && categories.has(category)) {
|
|
2605
|
-
isUnique = false;
|
|
2606
|
-
} else {
|
|
2607
|
-
categories.add(category);
|
|
2608
|
-
metaCategories[metatype] = categories;
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
}
|
|
2612
|
-
break;
|
|
2613
|
-
}
|
|
2614
|
-
return isUnique;
|
|
2615
|
-
};
|
|
2616
|
-
}
|
|
2617
|
-
function reduceComponents(headChildrenElements, props) {
|
|
2618
|
-
return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead(props.inAmpMode).reverse()).filter(unique()).reverse().map((c, i) => {
|
|
2619
|
-
const key = c.key || i;
|
|
2620
|
-
if (process.env.NODE_ENV !== "development" && process.env.__NEXT_OPTIMIZE_FONTS && !props.inAmpMode) {
|
|
2621
|
-
if (c.type === "link" && c.props["href"] && [
|
|
2622
|
-
"https://fonts.googleapis.com/css",
|
|
2623
|
-
"https://use.typekit.net/"
|
|
2624
|
-
].some((url) => c.props["href"].startsWith(url))) {
|
|
2625
|
-
const newProps = _extends({}, c.props || {});
|
|
2626
|
-
newProps["data-href"] = newProps["href"];
|
|
2627
|
-
newProps["href"] = void 0;
|
|
2628
|
-
newProps["data-optimized-fonts"] = true;
|
|
2629
|
-
return /* @__PURE__ */ _react.default.cloneElement(c, newProps);
|
|
2630
|
-
}
|
|
2631
|
-
}
|
|
2632
|
-
if (process.env.NODE_ENV === "development" && process.env.__NEXT_REACT_ROOT) {
|
|
2633
|
-
if (c.type === "script" && c.props["type"] !== "application/ld+json") {
|
|
2634
|
-
const srcMessage = c.props["src"] ? `<script> tag with src="${c.props["src"]}"` : `inline <script>`;
|
|
2635
|
-
(0, _utils).warnOnce(`Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead.
|
|
2636
|
-
See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
|
|
2637
|
-
} else if (c.type === "link" && c.props["rel"] === "stylesheet") {
|
|
2638
|
-
(0, _utils).warnOnce(`Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="${c.props["href"]}"). Use Document instead.
|
|
2639
|
-
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
return /* @__PURE__ */ _react.default.cloneElement(c, {
|
|
2643
|
-
key
|
|
2644
|
-
});
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
function Head2({ children }) {
|
|
2648
|
-
const ampState = (0, _react).useContext(_ampContext.AmpStateContext);
|
|
2649
|
-
const headManager = (0, _react).useContext(_headManagerContext.HeadManagerContext);
|
|
2650
|
-
return /* @__PURE__ */ _react.default.createElement(_sideEffect.default, {
|
|
2651
|
-
reduceComponentsToState: reduceComponents,
|
|
2652
|
-
headManager,
|
|
2653
|
-
inAmpMode: (0, _ampMode).isInAmpMode(ampState)
|
|
2654
|
-
}, children);
|
|
2655
|
-
}
|
|
2656
|
-
var _default = Head2;
|
|
2657
|
-
exports.default = _default;
|
|
2658
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
2659
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
2660
|
-
Object.assign(exports.default, exports);
|
|
2661
|
-
module2.exports = exports.default;
|
|
2662
|
-
}
|
|
2663
|
-
}
|
|
2664
|
-
});
|
|
2665
|
-
|
|
2666
|
-
// node_modules/next/head.js
|
|
2667
|
-
var require_head2 = __commonJS({
|
|
2668
|
-
"node_modules/next/head.js"(exports, module2) {
|
|
2669
|
-
module2.exports = require_head();
|
|
2670
|
-
}
|
|
2671
|
-
});
|
|
2672
|
-
|
|
2673
|
-
// node_modules/react/cjs/react-jsx-runtime.production.min.js
|
|
2674
|
-
var require_react_jsx_runtime_production_min = __commonJS({
|
|
2675
|
-
"node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
|
|
2676
|
-
"use strict";
|
|
2677
|
-
var f = require_react();
|
|
2678
|
-
var k = Symbol.for("react.element");
|
|
2679
|
-
var l = Symbol.for("react.fragment");
|
|
2680
|
-
var m = Object.prototype.hasOwnProperty;
|
|
2681
|
-
var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
2682
|
-
var p = { key: true, ref: true, __self: true, __source: true };
|
|
2683
|
-
function q(c, a, g) {
|
|
2684
|
-
var b, d = {}, e = null, h = null;
|
|
2685
|
-
void 0 !== g && (e = "" + g);
|
|
2686
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
2687
|
-
void 0 !== a.ref && (h = a.ref);
|
|
2688
|
-
for (b in a)
|
|
2689
|
-
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
2690
|
-
if (c && c.defaultProps)
|
|
2691
|
-
for (b in a = c.defaultProps, a)
|
|
2692
|
-
void 0 === d[b] && (d[b] = a[b]);
|
|
2693
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
2694
|
-
}
|
|
2695
|
-
exports.Fragment = l;
|
|
2696
|
-
exports.jsx = q;
|
|
2697
|
-
exports.jsxs = q;
|
|
2698
|
-
}
|
|
2699
|
-
});
|
|
2700
|
-
|
|
2701
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2702
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
2703
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
2704
|
-
"use strict";
|
|
2705
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2706
|
-
(function() {
|
|
2707
|
-
"use strict";
|
|
2708
|
-
var React = require_react();
|
|
2709
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2710
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2711
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2712
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2713
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2714
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2715
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2716
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2717
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
2718
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
2719
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
2720
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
2721
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
2722
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2723
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2724
|
-
function getIteratorFn(maybeIterable) {
|
|
2725
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
2726
|
-
return null;
|
|
2727
|
-
}
|
|
2728
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2729
|
-
if (typeof maybeIterator === "function") {
|
|
2730
|
-
return maybeIterator;
|
|
2731
|
-
}
|
|
2732
|
-
return null;
|
|
2733
|
-
}
|
|
2734
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2735
|
-
function error(format) {
|
|
2736
|
-
{
|
|
2737
|
-
{
|
|
2738
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2739
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2740
|
-
}
|
|
2741
|
-
printWarning("error", format, args);
|
|
2742
|
-
}
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
function printWarning(level, format, args) {
|
|
2746
|
-
{
|
|
2747
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2748
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2749
|
-
if (stack !== "") {
|
|
2750
|
-
format += "%s";
|
|
2751
|
-
args = args.concat([stack]);
|
|
2752
|
-
}
|
|
2753
|
-
var argsWithFormat = args.map(function(item) {
|
|
2754
|
-
return String(item);
|
|
2755
|
-
});
|
|
2756
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
2757
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2758
|
-
}
|
|
2759
|
-
}
|
|
2760
|
-
var enableScopeAPI = false;
|
|
2761
|
-
var enableCacheElement = false;
|
|
2762
|
-
var enableTransitionTracing = false;
|
|
2763
|
-
var enableLegacyHidden = false;
|
|
2764
|
-
var enableDebugTracing = false;
|
|
2765
|
-
var REACT_MODULE_REFERENCE;
|
|
2766
|
-
{
|
|
2767
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2768
|
-
}
|
|
2769
|
-
function isValidElementType(type) {
|
|
2770
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
2771
|
-
return true;
|
|
2772
|
-
}
|
|
2773
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
2774
|
-
return true;
|
|
2775
|
-
}
|
|
2776
|
-
if (typeof type === "object" && type !== null) {
|
|
2777
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2778
|
-
return true;
|
|
2779
|
-
}
|
|
2780
|
-
}
|
|
2781
|
-
return false;
|
|
2782
|
-
}
|
|
2783
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2784
|
-
var displayName = outerType.displayName;
|
|
2785
|
-
if (displayName) {
|
|
2786
|
-
return displayName;
|
|
2787
|
-
}
|
|
2788
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2789
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2790
|
-
}
|
|
2791
|
-
function getContextName(type) {
|
|
2792
|
-
return type.displayName || "Context";
|
|
2793
|
-
}
|
|
2794
|
-
function getComponentNameFromType(type) {
|
|
2795
|
-
if (type == null) {
|
|
2796
|
-
return null;
|
|
2797
|
-
}
|
|
2798
|
-
{
|
|
2799
|
-
if (typeof type.tag === "number") {
|
|
2800
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
2801
|
-
}
|
|
2802
|
-
}
|
|
2803
|
-
if (typeof type === "function") {
|
|
2804
|
-
return type.displayName || type.name || null;
|
|
2805
|
-
}
|
|
2806
|
-
if (typeof type === "string") {
|
|
2807
|
-
return type;
|
|
2808
|
-
}
|
|
2809
|
-
switch (type) {
|
|
2810
|
-
case REACT_FRAGMENT_TYPE:
|
|
2811
|
-
return "Fragment";
|
|
2812
|
-
case REACT_PORTAL_TYPE:
|
|
2813
|
-
return "Portal";
|
|
2814
|
-
case REACT_PROFILER_TYPE:
|
|
2815
|
-
return "Profiler";
|
|
2816
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2817
|
-
return "StrictMode";
|
|
2818
|
-
case REACT_SUSPENSE_TYPE:
|
|
2819
|
-
return "Suspense";
|
|
2820
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2821
|
-
return "SuspenseList";
|
|
2822
|
-
}
|
|
2823
|
-
if (typeof type === "object") {
|
|
2824
|
-
switch (type.$$typeof) {
|
|
2825
|
-
case REACT_CONTEXT_TYPE:
|
|
2826
|
-
var context = type;
|
|
2827
|
-
return getContextName(context) + ".Consumer";
|
|
2828
|
-
case REACT_PROVIDER_TYPE:
|
|
2829
|
-
var provider = type;
|
|
2830
|
-
return getContextName(provider._context) + ".Provider";
|
|
2831
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2832
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
2833
|
-
case REACT_MEMO_TYPE:
|
|
2834
|
-
var outerName = type.displayName || null;
|
|
2835
|
-
if (outerName !== null) {
|
|
2836
|
-
return outerName;
|
|
2837
|
-
}
|
|
2838
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
2839
|
-
case REACT_LAZY_TYPE: {
|
|
2840
|
-
var lazyComponent = type;
|
|
2841
|
-
var payload = lazyComponent._payload;
|
|
2842
|
-
var init = lazyComponent._init;
|
|
2843
|
-
try {
|
|
2844
|
-
return getComponentNameFromType(init(payload));
|
|
2845
|
-
} catch (x) {
|
|
2846
|
-
return null;
|
|
2847
|
-
}
|
|
2848
|
-
}
|
|
2849
|
-
}
|
|
2850
|
-
}
|
|
2851
|
-
return null;
|
|
2852
|
-
}
|
|
2853
|
-
var assign = Object.assign;
|
|
2854
|
-
var disabledDepth = 0;
|
|
2855
|
-
var prevLog;
|
|
2856
|
-
var prevInfo;
|
|
2857
|
-
var prevWarn;
|
|
2858
|
-
var prevError;
|
|
2859
|
-
var prevGroup;
|
|
2860
|
-
var prevGroupCollapsed;
|
|
2861
|
-
var prevGroupEnd;
|
|
2862
|
-
function disabledLog() {
|
|
2863
|
-
}
|
|
2864
|
-
disabledLog.__reactDisabledLog = true;
|
|
2865
|
-
function disableLogs() {
|
|
2866
|
-
{
|
|
2867
|
-
if (disabledDepth === 0) {
|
|
2868
|
-
prevLog = console.log;
|
|
2869
|
-
prevInfo = console.info;
|
|
2870
|
-
prevWarn = console.warn;
|
|
2871
|
-
prevError = console.error;
|
|
2872
|
-
prevGroup = console.group;
|
|
2873
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
2874
|
-
prevGroupEnd = console.groupEnd;
|
|
2875
|
-
var props = {
|
|
2876
|
-
configurable: true,
|
|
2877
|
-
enumerable: true,
|
|
2878
|
-
value: disabledLog,
|
|
2879
|
-
writable: true
|
|
2880
|
-
};
|
|
2881
|
-
Object.defineProperties(console, {
|
|
2882
|
-
info: props,
|
|
2883
|
-
log: props,
|
|
2884
|
-
warn: props,
|
|
2885
|
-
error: props,
|
|
2886
|
-
group: props,
|
|
2887
|
-
groupCollapsed: props,
|
|
2888
|
-
groupEnd: props
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
disabledDepth++;
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
function reenableLogs() {
|
|
2895
|
-
{
|
|
2896
|
-
disabledDepth--;
|
|
2897
|
-
if (disabledDepth === 0) {
|
|
2898
|
-
var props = {
|
|
2899
|
-
configurable: true,
|
|
2900
|
-
enumerable: true,
|
|
2901
|
-
writable: true
|
|
2902
|
-
};
|
|
2903
|
-
Object.defineProperties(console, {
|
|
2904
|
-
log: assign({}, props, {
|
|
2905
|
-
value: prevLog
|
|
2906
|
-
}),
|
|
2907
|
-
info: assign({}, props, {
|
|
2908
|
-
value: prevInfo
|
|
2909
|
-
}),
|
|
2910
|
-
warn: assign({}, props, {
|
|
2911
|
-
value: prevWarn
|
|
2912
|
-
}),
|
|
2913
|
-
error: assign({}, props, {
|
|
2914
|
-
value: prevError
|
|
2915
|
-
}),
|
|
2916
|
-
group: assign({}, props, {
|
|
2917
|
-
value: prevGroup
|
|
2918
|
-
}),
|
|
2919
|
-
groupCollapsed: assign({}, props, {
|
|
2920
|
-
value: prevGroupCollapsed
|
|
2921
|
-
}),
|
|
2922
|
-
groupEnd: assign({}, props, {
|
|
2923
|
-
value: prevGroupEnd
|
|
2924
|
-
})
|
|
2925
|
-
});
|
|
2926
|
-
}
|
|
2927
|
-
if (disabledDepth < 0) {
|
|
2928
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
}
|
|
2932
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2933
|
-
var prefix;
|
|
2934
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2935
|
-
{
|
|
2936
|
-
if (prefix === void 0) {
|
|
2937
|
-
try {
|
|
2938
|
-
throw Error();
|
|
2939
|
-
} catch (x) {
|
|
2940
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
2941
|
-
prefix = match && match[1] || "";
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
return "\n" + prefix + name;
|
|
2945
|
-
}
|
|
2946
|
-
}
|
|
2947
|
-
var reentry = false;
|
|
2948
|
-
var componentFrameCache;
|
|
2949
|
-
{
|
|
2950
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2951
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
2952
|
-
}
|
|
2953
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
2954
|
-
if (!fn || reentry) {
|
|
2955
|
-
return "";
|
|
2956
|
-
}
|
|
2957
|
-
{
|
|
2958
|
-
var frame = componentFrameCache.get(fn);
|
|
2959
|
-
if (frame !== void 0) {
|
|
2960
|
-
return frame;
|
|
2961
|
-
}
|
|
2962
|
-
}
|
|
2963
|
-
var control;
|
|
2964
|
-
reentry = true;
|
|
2965
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2966
|
-
Error.prepareStackTrace = void 0;
|
|
2967
|
-
var previousDispatcher;
|
|
2968
|
-
{
|
|
2969
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
2970
|
-
ReactCurrentDispatcher.current = null;
|
|
2971
|
-
disableLogs();
|
|
2972
|
-
}
|
|
2973
|
-
try {
|
|
2974
|
-
if (construct) {
|
|
2975
|
-
var Fake = function() {
|
|
2976
|
-
throw Error();
|
|
2977
|
-
};
|
|
2978
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
2979
|
-
set: function() {
|
|
2980
|
-
throw Error();
|
|
2981
|
-
}
|
|
2982
|
-
});
|
|
2983
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2984
|
-
try {
|
|
2985
|
-
Reflect.construct(Fake, []);
|
|
2986
|
-
} catch (x) {
|
|
2987
|
-
control = x;
|
|
2988
|
-
}
|
|
2989
|
-
Reflect.construct(fn, [], Fake);
|
|
2990
|
-
} else {
|
|
2991
|
-
try {
|
|
2992
|
-
Fake.call();
|
|
2993
|
-
} catch (x) {
|
|
2994
|
-
control = x;
|
|
2995
|
-
}
|
|
2996
|
-
fn.call(Fake.prototype);
|
|
2997
|
-
}
|
|
2998
|
-
} else {
|
|
2999
|
-
try {
|
|
3000
|
-
throw Error();
|
|
3001
|
-
} catch (x) {
|
|
3002
|
-
control = x;
|
|
3003
|
-
}
|
|
3004
|
-
fn();
|
|
3005
|
-
}
|
|
3006
|
-
} catch (sample) {
|
|
3007
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
3008
|
-
var sampleLines = sample.stack.split("\n");
|
|
3009
|
-
var controlLines = control.stack.split("\n");
|
|
3010
|
-
var s = sampleLines.length - 1;
|
|
3011
|
-
var c = controlLines.length - 1;
|
|
3012
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
3013
|
-
c--;
|
|
3014
|
-
}
|
|
3015
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
3016
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
3017
|
-
if (s !== 1 || c !== 1) {
|
|
3018
|
-
do {
|
|
3019
|
-
s--;
|
|
3020
|
-
c--;
|
|
3021
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
3022
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
3023
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
3024
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
3025
|
-
}
|
|
3026
|
-
{
|
|
3027
|
-
if (typeof fn === "function") {
|
|
3028
|
-
componentFrameCache.set(fn, _frame);
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
return _frame;
|
|
3032
|
-
}
|
|
3033
|
-
} while (s >= 1 && c >= 0);
|
|
3034
|
-
}
|
|
3035
|
-
break;
|
|
3036
|
-
}
|
|
3037
|
-
}
|
|
3038
|
-
}
|
|
3039
|
-
} finally {
|
|
3040
|
-
reentry = false;
|
|
3041
|
-
{
|
|
3042
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
3043
|
-
reenableLogs();
|
|
3044
|
-
}
|
|
3045
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
3046
|
-
}
|
|
3047
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
3048
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
3049
|
-
{
|
|
3050
|
-
if (typeof fn === "function") {
|
|
3051
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
3052
|
-
}
|
|
3053
|
-
}
|
|
3054
|
-
return syntheticFrame;
|
|
3055
|
-
}
|
|
3056
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
3057
|
-
{
|
|
3058
|
-
return describeNativeComponentFrame(fn, false);
|
|
3059
|
-
}
|
|
3060
|
-
}
|
|
3061
|
-
function shouldConstruct(Component) {
|
|
3062
|
-
var prototype = Component.prototype;
|
|
3063
|
-
return !!(prototype && prototype.isReactComponent);
|
|
3064
|
-
}
|
|
3065
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
3066
|
-
if (type == null) {
|
|
3067
|
-
return "";
|
|
3068
|
-
}
|
|
3069
|
-
if (typeof type === "function") {
|
|
3070
|
-
{
|
|
3071
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
3072
|
-
}
|
|
3073
|
-
}
|
|
3074
|
-
if (typeof type === "string") {
|
|
3075
|
-
return describeBuiltInComponentFrame(type);
|
|
3076
|
-
}
|
|
3077
|
-
switch (type) {
|
|
3078
|
-
case REACT_SUSPENSE_TYPE:
|
|
3079
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
3080
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
3081
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
3082
|
-
}
|
|
3083
|
-
if (typeof type === "object") {
|
|
3084
|
-
switch (type.$$typeof) {
|
|
3085
|
-
case REACT_FORWARD_REF_TYPE:
|
|
3086
|
-
return describeFunctionComponentFrame(type.render);
|
|
3087
|
-
case REACT_MEMO_TYPE:
|
|
3088
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
3089
|
-
case REACT_LAZY_TYPE: {
|
|
3090
|
-
var lazyComponent = type;
|
|
3091
|
-
var payload = lazyComponent._payload;
|
|
3092
|
-
var init = lazyComponent._init;
|
|
3093
|
-
try {
|
|
3094
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
3095
|
-
} catch (x) {
|
|
3096
|
-
}
|
|
3097
|
-
}
|
|
3098
|
-
}
|
|
3099
|
-
}
|
|
3100
|
-
return "";
|
|
3101
|
-
}
|
|
3102
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3103
|
-
var loggedTypeFailures = {};
|
|
3104
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3105
|
-
function setCurrentlyValidatingElement(element) {
|
|
3106
|
-
{
|
|
3107
|
-
if (element) {
|
|
3108
|
-
var owner = element._owner;
|
|
3109
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
3110
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
3111
|
-
} else {
|
|
3112
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
3113
|
-
}
|
|
3114
|
-
}
|
|
3115
|
-
}
|
|
3116
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
3117
|
-
{
|
|
3118
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
3119
|
-
for (var typeSpecName in typeSpecs) {
|
|
3120
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
3121
|
-
var error$1 = void 0;
|
|
3122
|
-
try {
|
|
3123
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
3124
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
3125
|
-
err.name = "Invariant Violation";
|
|
3126
|
-
throw err;
|
|
3127
|
-
}
|
|
3128
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
3129
|
-
} catch (ex) {
|
|
3130
|
-
error$1 = ex;
|
|
3131
|
-
}
|
|
3132
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
3133
|
-
setCurrentlyValidatingElement(element);
|
|
3134
|
-
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
3135
|
-
setCurrentlyValidatingElement(null);
|
|
3136
|
-
}
|
|
3137
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
3138
|
-
loggedTypeFailures[error$1.message] = true;
|
|
3139
|
-
setCurrentlyValidatingElement(element);
|
|
3140
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
3141
|
-
setCurrentlyValidatingElement(null);
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
var isArrayImpl = Array.isArray;
|
|
3148
|
-
function isArray(a) {
|
|
3149
|
-
return isArrayImpl(a);
|
|
3150
|
-
}
|
|
3151
|
-
function typeName(value) {
|
|
3152
|
-
{
|
|
3153
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
3154
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
3155
|
-
return type;
|
|
3156
|
-
}
|
|
3157
|
-
}
|
|
3158
|
-
function willCoercionThrow(value) {
|
|
3159
|
-
{
|
|
3160
|
-
try {
|
|
3161
|
-
testStringCoercion(value);
|
|
3162
|
-
return false;
|
|
3163
|
-
} catch (e) {
|
|
3164
|
-
return true;
|
|
3165
|
-
}
|
|
3166
|
-
}
|
|
3167
|
-
}
|
|
3168
|
-
function testStringCoercion(value) {
|
|
3169
|
-
return "" + value;
|
|
3170
|
-
}
|
|
3171
|
-
function checkKeyStringCoercion(value) {
|
|
3172
|
-
{
|
|
3173
|
-
if (willCoercionThrow(value)) {
|
|
3174
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
3175
|
-
return testStringCoercion(value);
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
}
|
|
3179
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
3180
|
-
var RESERVED_PROPS = {
|
|
3181
|
-
key: true,
|
|
3182
|
-
ref: true,
|
|
3183
|
-
__self: true,
|
|
3184
|
-
__source: true
|
|
3185
|
-
};
|
|
3186
|
-
var specialPropKeyWarningShown;
|
|
3187
|
-
var specialPropRefWarningShown;
|
|
3188
|
-
var didWarnAboutStringRefs;
|
|
3189
|
-
{
|
|
3190
|
-
didWarnAboutStringRefs = {};
|
|
3191
|
-
}
|
|
3192
|
-
function hasValidRef(config) {
|
|
3193
|
-
{
|
|
3194
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
3195
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
3196
|
-
if (getter && getter.isReactWarning) {
|
|
3197
|
-
return false;
|
|
3198
|
-
}
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
return config.ref !== void 0;
|
|
3202
|
-
}
|
|
3203
|
-
function hasValidKey(config) {
|
|
3204
|
-
{
|
|
3205
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
3206
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
3207
|
-
if (getter && getter.isReactWarning) {
|
|
3208
|
-
return false;
|
|
3209
|
-
}
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
return config.key !== void 0;
|
|
3213
|
-
}
|
|
3214
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
3215
|
-
{
|
|
3216
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
3217
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
3218
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
3219
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
3220
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
3221
|
-
}
|
|
3222
|
-
}
|
|
3223
|
-
}
|
|
3224
|
-
}
|
|
3225
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
3226
|
-
{
|
|
3227
|
-
var warnAboutAccessingKey = function() {
|
|
3228
|
-
if (!specialPropKeyWarningShown) {
|
|
3229
|
-
specialPropKeyWarningShown = true;
|
|
3230
|
-
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
3231
|
-
}
|
|
3232
|
-
};
|
|
3233
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
3234
|
-
Object.defineProperty(props, "key", {
|
|
3235
|
-
get: warnAboutAccessingKey,
|
|
3236
|
-
configurable: true
|
|
3237
|
-
});
|
|
3238
|
-
}
|
|
3239
|
-
}
|
|
3240
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
3241
|
-
{
|
|
3242
|
-
var warnAboutAccessingRef = function() {
|
|
3243
|
-
if (!specialPropRefWarningShown) {
|
|
3244
|
-
specialPropRefWarningShown = true;
|
|
3245
|
-
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
3246
|
-
}
|
|
3247
|
-
};
|
|
3248
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
3249
|
-
Object.defineProperty(props, "ref", {
|
|
3250
|
-
get: warnAboutAccessingRef,
|
|
3251
|
-
configurable: true
|
|
3252
|
-
});
|
|
3253
|
-
}
|
|
3254
|
-
}
|
|
3255
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
3256
|
-
var element = {
|
|
3257
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
3258
|
-
type,
|
|
3259
|
-
key,
|
|
3260
|
-
ref,
|
|
3261
|
-
props,
|
|
3262
|
-
_owner: owner
|
|
3263
|
-
};
|
|
3264
|
-
{
|
|
3265
|
-
element._store = {};
|
|
3266
|
-
Object.defineProperty(element._store, "validated", {
|
|
3267
|
-
configurable: false,
|
|
3268
|
-
enumerable: false,
|
|
3269
|
-
writable: true,
|
|
3270
|
-
value: false
|
|
3271
|
-
});
|
|
3272
|
-
Object.defineProperty(element, "_self", {
|
|
3273
|
-
configurable: false,
|
|
3274
|
-
enumerable: false,
|
|
3275
|
-
writable: false,
|
|
3276
|
-
value: self
|
|
3277
|
-
});
|
|
3278
|
-
Object.defineProperty(element, "_source", {
|
|
3279
|
-
configurable: false,
|
|
3280
|
-
enumerable: false,
|
|
3281
|
-
writable: false,
|
|
3282
|
-
value: source
|
|
3283
|
-
});
|
|
3284
|
-
if (Object.freeze) {
|
|
3285
|
-
Object.freeze(element.props);
|
|
3286
|
-
Object.freeze(element);
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
return element;
|
|
3290
|
-
};
|
|
3291
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
3292
|
-
{
|
|
3293
|
-
var propName;
|
|
3294
|
-
var props = {};
|
|
3295
|
-
var key = null;
|
|
3296
|
-
var ref = null;
|
|
3297
|
-
if (maybeKey !== void 0) {
|
|
3298
|
-
{
|
|
3299
|
-
checkKeyStringCoercion(maybeKey);
|
|
3300
|
-
}
|
|
3301
|
-
key = "" + maybeKey;
|
|
3302
|
-
}
|
|
3303
|
-
if (hasValidKey(config)) {
|
|
3304
|
-
{
|
|
3305
|
-
checkKeyStringCoercion(config.key);
|
|
3306
|
-
}
|
|
3307
|
-
key = "" + config.key;
|
|
3308
|
-
}
|
|
3309
|
-
if (hasValidRef(config)) {
|
|
3310
|
-
ref = config.ref;
|
|
3311
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
3312
|
-
}
|
|
3313
|
-
for (propName in config) {
|
|
3314
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
3315
|
-
props[propName] = config[propName];
|
|
3316
|
-
}
|
|
3317
|
-
}
|
|
3318
|
-
if (type && type.defaultProps) {
|
|
3319
|
-
var defaultProps = type.defaultProps;
|
|
3320
|
-
for (propName in defaultProps) {
|
|
3321
|
-
if (props[propName] === void 0) {
|
|
3322
|
-
props[propName] = defaultProps[propName];
|
|
3323
|
-
}
|
|
3324
|
-
}
|
|
3325
|
-
}
|
|
3326
|
-
if (key || ref) {
|
|
3327
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
3328
|
-
if (key) {
|
|
3329
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
3330
|
-
}
|
|
3331
|
-
if (ref) {
|
|
3332
|
-
defineRefPropWarningGetter(props, displayName);
|
|
3333
|
-
}
|
|
3334
|
-
}
|
|
3335
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
3339
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
3340
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
3341
|
-
{
|
|
3342
|
-
if (element) {
|
|
3343
|
-
var owner = element._owner;
|
|
3344
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
3345
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
3346
|
-
} else {
|
|
3347
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
3348
|
-
}
|
|
3349
|
-
}
|
|
3350
|
-
}
|
|
3351
|
-
var propTypesMisspellWarningShown;
|
|
3352
|
-
{
|
|
3353
|
-
propTypesMisspellWarningShown = false;
|
|
3354
|
-
}
|
|
3355
|
-
function isValidElement(object) {
|
|
3356
|
-
{
|
|
3357
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3358
|
-
}
|
|
3359
|
-
}
|
|
3360
|
-
function getDeclarationErrorAddendum() {
|
|
3361
|
-
{
|
|
3362
|
-
if (ReactCurrentOwner$1.current) {
|
|
3363
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
3364
|
-
if (name) {
|
|
3365
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
3366
|
-
}
|
|
3367
|
-
}
|
|
3368
|
-
return "";
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
function getSourceInfoErrorAddendum(source) {
|
|
3372
|
-
{
|
|
3373
|
-
if (source !== void 0) {
|
|
3374
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
3375
|
-
var lineNumber = source.lineNumber;
|
|
3376
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
3377
|
-
}
|
|
3378
|
-
return "";
|
|
3379
|
-
}
|
|
3380
|
-
}
|
|
3381
|
-
var ownerHasKeyUseWarning = {};
|
|
3382
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
3383
|
-
{
|
|
3384
|
-
var info = getDeclarationErrorAddendum();
|
|
3385
|
-
if (!info) {
|
|
3386
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
3387
|
-
if (parentName) {
|
|
3388
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
3389
|
-
}
|
|
3390
|
-
}
|
|
3391
|
-
return info;
|
|
3392
|
-
}
|
|
3393
|
-
}
|
|
3394
|
-
function validateExplicitKey(element, parentType) {
|
|
3395
|
-
{
|
|
3396
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
3397
|
-
return;
|
|
3398
|
-
}
|
|
3399
|
-
element._store.validated = true;
|
|
3400
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
3401
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
3402
|
-
return;
|
|
3403
|
-
}
|
|
3404
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
3405
|
-
var childOwner = "";
|
|
3406
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
3407
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
3408
|
-
}
|
|
3409
|
-
setCurrentlyValidatingElement$1(element);
|
|
3410
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
3411
|
-
setCurrentlyValidatingElement$1(null);
|
|
3412
|
-
}
|
|
3413
|
-
}
|
|
3414
|
-
function validateChildKeys(node, parentType) {
|
|
3415
|
-
{
|
|
3416
|
-
if (typeof node !== "object") {
|
|
3417
|
-
return;
|
|
3418
|
-
}
|
|
3419
|
-
if (isArray(node)) {
|
|
3420
|
-
for (var i = 0; i < node.length; i++) {
|
|
3421
|
-
var child = node[i];
|
|
3422
|
-
if (isValidElement(child)) {
|
|
3423
|
-
validateExplicitKey(child, parentType);
|
|
3424
|
-
}
|
|
3425
|
-
}
|
|
3426
|
-
} else if (isValidElement(node)) {
|
|
3427
|
-
if (node._store) {
|
|
3428
|
-
node._store.validated = true;
|
|
3429
|
-
}
|
|
3430
|
-
} else if (node) {
|
|
3431
|
-
var iteratorFn = getIteratorFn(node);
|
|
3432
|
-
if (typeof iteratorFn === "function") {
|
|
3433
|
-
if (iteratorFn !== node.entries) {
|
|
3434
|
-
var iterator = iteratorFn.call(node);
|
|
3435
|
-
var step;
|
|
3436
|
-
while (!(step = iterator.next()).done) {
|
|
3437
|
-
if (isValidElement(step.value)) {
|
|
3438
|
-
validateExplicitKey(step.value, parentType);
|
|
3439
|
-
}
|
|
3440
|
-
}
|
|
3441
|
-
}
|
|
3442
|
-
}
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
}
|
|
3446
|
-
function validatePropTypes(element) {
|
|
3447
|
-
{
|
|
3448
|
-
var type = element.type;
|
|
3449
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
3450
|
-
return;
|
|
3451
|
-
}
|
|
3452
|
-
var propTypes;
|
|
3453
|
-
if (typeof type === "function") {
|
|
3454
|
-
propTypes = type.propTypes;
|
|
3455
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3456
|
-
propTypes = type.propTypes;
|
|
3457
|
-
} else {
|
|
3458
|
-
return;
|
|
3459
|
-
}
|
|
3460
|
-
if (propTypes) {
|
|
3461
|
-
var name = getComponentNameFromType(type);
|
|
3462
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
3463
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
3464
|
-
propTypesMisspellWarningShown = true;
|
|
3465
|
-
var _name = getComponentNameFromType(type);
|
|
3466
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
3467
|
-
}
|
|
3468
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
3469
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3470
|
-
}
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
|
-
function validateFragmentProps(fragment) {
|
|
3474
|
-
{
|
|
3475
|
-
var keys = Object.keys(fragment.props);
|
|
3476
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3477
|
-
var key = keys[i];
|
|
3478
|
-
if (key !== "children" && key !== "key") {
|
|
3479
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3480
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
3481
|
-
setCurrentlyValidatingElement$1(null);
|
|
3482
|
-
break;
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
if (fragment.ref !== null) {
|
|
3486
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3487
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
3488
|
-
setCurrentlyValidatingElement$1(null);
|
|
3489
|
-
}
|
|
3490
|
-
}
|
|
3491
|
-
}
|
|
3492
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
3493
|
-
{
|
|
3494
|
-
var validType = isValidElementType(type);
|
|
3495
|
-
if (!validType) {
|
|
3496
|
-
var info = "";
|
|
3497
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3498
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
3499
|
-
}
|
|
3500
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
3501
|
-
if (sourceInfo) {
|
|
3502
|
-
info += sourceInfo;
|
|
3503
|
-
} else {
|
|
3504
|
-
info += getDeclarationErrorAddendum();
|
|
3505
|
-
}
|
|
3506
|
-
var typeString;
|
|
3507
|
-
if (type === null) {
|
|
3508
|
-
typeString = "null";
|
|
3509
|
-
} else if (isArray(type)) {
|
|
3510
|
-
typeString = "array";
|
|
3511
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3512
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
3513
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
3514
|
-
} else {
|
|
3515
|
-
typeString = typeof type;
|
|
3516
|
-
}
|
|
3517
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
3518
|
-
}
|
|
3519
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
3520
|
-
if (element == null) {
|
|
3521
|
-
return element;
|
|
3522
|
-
}
|
|
3523
|
-
if (validType) {
|
|
3524
|
-
var children = props.children;
|
|
3525
|
-
if (children !== void 0) {
|
|
3526
|
-
if (isStaticChildren) {
|
|
3527
|
-
if (isArray(children)) {
|
|
3528
|
-
for (var i = 0; i < children.length; i++) {
|
|
3529
|
-
validateChildKeys(children[i], type);
|
|
3530
|
-
}
|
|
3531
|
-
if (Object.freeze) {
|
|
3532
|
-
Object.freeze(children);
|
|
3533
|
-
}
|
|
3534
|
-
} else {
|
|
3535
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3536
|
-
}
|
|
3537
|
-
} else {
|
|
3538
|
-
validateChildKeys(children, type);
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3541
|
-
}
|
|
3542
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
3543
|
-
validateFragmentProps(element);
|
|
3544
|
-
} else {
|
|
3545
|
-
validatePropTypes(element);
|
|
3546
|
-
}
|
|
3547
|
-
return element;
|
|
3548
|
-
}
|
|
3549
|
-
}
|
|
3550
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
3551
|
-
{
|
|
3552
|
-
return jsxWithValidation(type, props, key, true);
|
|
3553
|
-
}
|
|
3554
|
-
}
|
|
3555
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
3556
|
-
{
|
|
3557
|
-
return jsxWithValidation(type, props, key, false);
|
|
3558
|
-
}
|
|
3559
|
-
}
|
|
3560
|
-
var jsx2 = jsxWithValidationDynamic;
|
|
3561
|
-
var jsxs2 = jsxWithValidationStatic;
|
|
3562
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
3563
|
-
exports.jsx = jsx2;
|
|
3564
|
-
exports.jsxs = jsxs2;
|
|
3565
|
-
})();
|
|
3566
|
-
}
|
|
3567
|
-
}
|
|
3568
|
-
});
|
|
3569
|
-
|
|
3570
|
-
// node_modules/react/jsx-runtime.js
|
|
3571
|
-
var require_jsx_runtime = __commonJS({
|
|
3572
|
-
"node_modules/react/jsx-runtime.js"(exports, module2) {
|
|
3573
|
-
"use strict";
|
|
3574
|
-
if (process.env.NODE_ENV === "production") {
|
|
3575
|
-
module2.exports = require_react_jsx_runtime_production_min();
|
|
3576
|
-
} else {
|
|
3577
|
-
module2.exports = require_react_jsx_runtime_development();
|
|
3578
|
-
}
|
|
3579
|
-
}
|
|
3580
|
-
});
|
|
3581
|
-
|
|
3582
|
-
// src/pages/_app.tsx
|
|
3583
|
-
var app_exports = {};
|
|
3584
|
-
__export(app_exports, {
|
|
3585
|
-
App: () => App,
|
|
3586
|
-
default: () => app_default
|
|
3587
|
-
});
|
|
3588
|
-
module.exports = __toCommonJS(app_exports);
|
|
3589
|
-
var import_head = __toESM(require_head2());
|
|
3590
|
-
var import_jsx_runtime = __toESM(require_jsx_runtime());
|
|
3591
|
-
var App = ({ Component }) => {
|
|
3592
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
3593
|
-
children: [
|
|
3594
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_head.default, {
|
|
3595
|
-
children: [
|
|
3596
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", {
|
|
3597
|
-
rel: "preconnect",
|
|
3598
|
-
href: "https://fonts.googleapis.com"
|
|
3599
|
-
}),
|
|
3600
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", {
|
|
3601
|
-
rel: "preconnect",
|
|
3602
|
-
href: "https://fonts.gstatic.com",
|
|
3603
|
-
crossOrigin: "anonymous"
|
|
3604
|
-
}),
|
|
3605
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", {
|
|
3606
|
-
href: "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap",
|
|
3607
|
-
rel: "stylesheet"
|
|
3608
|
-
})
|
|
3609
|
-
]
|
|
3610
|
-
}),
|
|
3611
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, {})
|
|
3612
|
-
]
|
|
3613
|
-
});
|
|
3614
|
-
};
|
|
3615
|
-
var app_default = App;
|
|
3616
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
3617
|
-
0 && (module.exports = {
|
|
3618
|
-
App
|
|
3619
|
-
});
|
|
3620
|
-
/**
|
|
3621
|
-
* @license React
|
|
3622
|
-
* react-jsx-runtime.development.js
|
|
3623
|
-
*
|
|
3624
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3625
|
-
*
|
|
3626
|
-
* This source code is licensed under the MIT license found in the
|
|
3627
|
-
* LICENSE file in the root directory of this source tree.
|
|
3628
|
-
*/
|
|
3629
|
-
/**
|
|
3630
|
-
* @license React
|
|
3631
|
-
* react-jsx-runtime.production.min.js
|
|
3632
|
-
*
|
|
3633
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3634
|
-
*
|
|
3635
|
-
* This source code is licensed under the MIT license found in the
|
|
3636
|
-
* LICENSE file in the root directory of this source tree.
|
|
3637
|
-
*/
|
|
3638
|
-
/**
|
|
3639
|
-
* @license React
|
|
3640
|
-
* react.development.js
|
|
3641
|
-
*
|
|
3642
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3643
|
-
*
|
|
3644
|
-
* This source code is licensed under the MIT license found in the
|
|
3645
|
-
* LICENSE file in the root directory of this source tree.
|
|
3646
|
-
*/
|
|
3647
|
-
/**
|
|
3648
|
-
* @license React
|
|
3649
|
-
* react.production.min.js
|
|
3650
|
-
*
|
|
3651
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3652
|
-
*
|
|
3653
|
-
* This source code is licensed under the MIT license found in the
|
|
3654
|
-
* LICENSE file in the root directory of this source tree.
|
|
3655
|
-
*/
|
|
3656
|
-
//# sourceMappingURL=_app.js.map
|