@tokemak/constants 0.0.3 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +36 -1
- package/dist/index.js +112 -1794
- package/dist/index.mjs +384 -0
- package/package.json +17 -5
- package/dist/index.cjs +0 -2178
package/dist/index.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
11
6
|
var __export = (target, all) => {
|
|
12
7
|
for (var name in all)
|
|
13
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -20,1752 +15,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
15
|
}
|
|
21
16
|
return to;
|
|
22
17
|
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
-
mod
|
|
30
|
-
));
|
|
31
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
19
|
|
|
33
|
-
// ../../node_modules/react/cjs/react-jsx-runtime.production.js
|
|
34
|
-
var require_react_jsx_runtime_production = __commonJS({
|
|
35
|
-
"../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
36
|
-
"use strict";
|
|
37
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
38
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
39
|
-
function jsxProd(type, config, maybeKey) {
|
|
40
|
-
var key = null;
|
|
41
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
42
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
43
|
-
if ("key" in config) {
|
|
44
|
-
maybeKey = {};
|
|
45
|
-
for (var propName in config)
|
|
46
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
47
|
-
} else
|
|
48
|
-
maybeKey = config;
|
|
49
|
-
config = maybeKey.ref;
|
|
50
|
-
return {
|
|
51
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
52
|
-
type,
|
|
53
|
-
key,
|
|
54
|
-
ref: void 0 !== config ? config : null,
|
|
55
|
-
props: maybeKey
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
59
|
-
exports.jsx = jsxProd;
|
|
60
|
-
exports.jsxs = jsxProd;
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
// ../../node_modules/react/cjs/react.production.js
|
|
65
|
-
var require_react_production = __commonJS({
|
|
66
|
-
"../../node_modules/react/cjs/react.production.js"(exports) {
|
|
67
|
-
"use strict";
|
|
68
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
69
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
70
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
71
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
72
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
73
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
74
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
75
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
76
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
77
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
78
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
79
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
80
|
-
function getIteratorFn(maybeIterable) {
|
|
81
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
82
|
-
return null;
|
|
83
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
84
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
85
|
-
}
|
|
86
|
-
var ReactNoopUpdateQueue = {
|
|
87
|
-
isMounted: function() {
|
|
88
|
-
return false;
|
|
89
|
-
},
|
|
90
|
-
enqueueForceUpdate: function() {
|
|
91
|
-
},
|
|
92
|
-
enqueueReplaceState: function() {
|
|
93
|
-
},
|
|
94
|
-
enqueueSetState: function() {
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
var assign = Object.assign;
|
|
98
|
-
var emptyObject = {};
|
|
99
|
-
function Component(props, context, updater) {
|
|
100
|
-
this.props = props;
|
|
101
|
-
this.context = context;
|
|
102
|
-
this.refs = emptyObject;
|
|
103
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
104
|
-
}
|
|
105
|
-
Component.prototype.isReactComponent = {};
|
|
106
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
107
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
108
|
-
throw Error(
|
|
109
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
110
|
-
);
|
|
111
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
112
|
-
};
|
|
113
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
114
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
115
|
-
};
|
|
116
|
-
function ComponentDummy() {
|
|
117
|
-
}
|
|
118
|
-
ComponentDummy.prototype = Component.prototype;
|
|
119
|
-
function PureComponent(props, context, updater) {
|
|
120
|
-
this.props = props;
|
|
121
|
-
this.context = context;
|
|
122
|
-
this.refs = emptyObject;
|
|
123
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
124
|
-
}
|
|
125
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
126
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
127
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
128
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
129
|
-
var isArrayImpl = Array.isArray;
|
|
130
|
-
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
131
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
132
|
-
function ReactElement(type, key, self, source, owner, props) {
|
|
133
|
-
self = props.ref;
|
|
134
|
-
return {
|
|
135
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
136
|
-
type,
|
|
137
|
-
key,
|
|
138
|
-
ref: void 0 !== self ? self : null,
|
|
139
|
-
props
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
143
|
-
return ReactElement(
|
|
144
|
-
oldElement.type,
|
|
145
|
-
newKey,
|
|
146
|
-
void 0,
|
|
147
|
-
void 0,
|
|
148
|
-
void 0,
|
|
149
|
-
oldElement.props
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
function isValidElement(object) {
|
|
153
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
154
|
-
}
|
|
155
|
-
function escape(key) {
|
|
156
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
157
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
158
|
-
return escaperLookup[match];
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
162
|
-
function getElementKey(element, index) {
|
|
163
|
-
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
164
|
-
}
|
|
165
|
-
function noop$1() {
|
|
166
|
-
}
|
|
167
|
-
function resolveThenable(thenable) {
|
|
168
|
-
switch (thenable.status) {
|
|
169
|
-
case "fulfilled":
|
|
170
|
-
return thenable.value;
|
|
171
|
-
case "rejected":
|
|
172
|
-
throw thenable.reason;
|
|
173
|
-
default:
|
|
174
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
175
|
-
function(fulfilledValue) {
|
|
176
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
177
|
-
},
|
|
178
|
-
function(error) {
|
|
179
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
180
|
-
}
|
|
181
|
-
)), thenable.status) {
|
|
182
|
-
case "fulfilled":
|
|
183
|
-
return thenable.value;
|
|
184
|
-
case "rejected":
|
|
185
|
-
throw thenable.reason;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
throw thenable;
|
|
189
|
-
}
|
|
190
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
191
|
-
var type = typeof children;
|
|
192
|
-
if ("undefined" === type || "boolean" === type)
|
|
193
|
-
children = null;
|
|
194
|
-
var invokeCallback = false;
|
|
195
|
-
if (null === children)
|
|
196
|
-
invokeCallback = true;
|
|
197
|
-
else
|
|
198
|
-
switch (type) {
|
|
199
|
-
case "bigint":
|
|
200
|
-
case "string":
|
|
201
|
-
case "number":
|
|
202
|
-
invokeCallback = true;
|
|
203
|
-
break;
|
|
204
|
-
case "object":
|
|
205
|
-
switch (children.$$typeof) {
|
|
206
|
-
case REACT_ELEMENT_TYPE:
|
|
207
|
-
case REACT_PORTAL_TYPE:
|
|
208
|
-
invokeCallback = true;
|
|
209
|
-
break;
|
|
210
|
-
case REACT_LAZY_TYPE:
|
|
211
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
212
|
-
invokeCallback(children._payload),
|
|
213
|
-
array,
|
|
214
|
-
escapedPrefix,
|
|
215
|
-
nameSoFar,
|
|
216
|
-
callback
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
if (invokeCallback)
|
|
221
|
-
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
222
|
-
return c;
|
|
223
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
224
|
-
callback,
|
|
225
|
-
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
226
|
-
userProvidedKeyEscapeRegex,
|
|
227
|
-
"$&/"
|
|
228
|
-
) + "/") + invokeCallback
|
|
229
|
-
)), array.push(callback)), 1;
|
|
230
|
-
invokeCallback = 0;
|
|
231
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
232
|
-
if (isArrayImpl(children))
|
|
233
|
-
for (var i = 0; i < children.length; i++)
|
|
234
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
235
|
-
nameSoFar,
|
|
236
|
-
array,
|
|
237
|
-
escapedPrefix,
|
|
238
|
-
type,
|
|
239
|
-
callback
|
|
240
|
-
);
|
|
241
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
242
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
243
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
244
|
-
nameSoFar,
|
|
245
|
-
array,
|
|
246
|
-
escapedPrefix,
|
|
247
|
-
type,
|
|
248
|
-
callback
|
|
249
|
-
);
|
|
250
|
-
else if ("object" === type) {
|
|
251
|
-
if ("function" === typeof children.then)
|
|
252
|
-
return mapIntoArray(
|
|
253
|
-
resolveThenable(children),
|
|
254
|
-
array,
|
|
255
|
-
escapedPrefix,
|
|
256
|
-
nameSoFar,
|
|
257
|
-
callback
|
|
258
|
-
);
|
|
259
|
-
array = String(children);
|
|
260
|
-
throw Error(
|
|
261
|
-
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
return invokeCallback;
|
|
265
|
-
}
|
|
266
|
-
function mapChildren(children, func, context) {
|
|
267
|
-
if (null == children)
|
|
268
|
-
return children;
|
|
269
|
-
var result = [], count = 0;
|
|
270
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
271
|
-
return func.call(context, child, count++);
|
|
272
|
-
});
|
|
273
|
-
return result;
|
|
274
|
-
}
|
|
275
|
-
function lazyInitializer(payload) {
|
|
276
|
-
if (-1 === payload._status) {
|
|
277
|
-
var ctor = payload._result;
|
|
278
|
-
ctor = ctor();
|
|
279
|
-
ctor.then(
|
|
280
|
-
function(moduleObject) {
|
|
281
|
-
if (0 === payload._status || -1 === payload._status)
|
|
282
|
-
payload._status = 1, payload._result = moduleObject;
|
|
283
|
-
},
|
|
284
|
-
function(error) {
|
|
285
|
-
if (0 === payload._status || -1 === payload._status)
|
|
286
|
-
payload._status = 2, payload._result = error;
|
|
287
|
-
}
|
|
288
|
-
);
|
|
289
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
290
|
-
}
|
|
291
|
-
if (1 === payload._status)
|
|
292
|
-
return payload._result.default;
|
|
293
|
-
throw payload._result;
|
|
294
|
-
}
|
|
295
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
296
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
297
|
-
var event = new window.ErrorEvent("error", {
|
|
298
|
-
bubbles: true,
|
|
299
|
-
cancelable: true,
|
|
300
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
301
|
-
error
|
|
302
|
-
});
|
|
303
|
-
if (!window.dispatchEvent(event))
|
|
304
|
-
return;
|
|
305
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
306
|
-
process.emit("uncaughtException", error);
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
console.error(error);
|
|
310
|
-
};
|
|
311
|
-
function noop() {
|
|
312
|
-
}
|
|
313
|
-
exports.Children = {
|
|
314
|
-
map: mapChildren,
|
|
315
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
316
|
-
mapChildren(
|
|
317
|
-
children,
|
|
318
|
-
function() {
|
|
319
|
-
forEachFunc.apply(this, arguments);
|
|
320
|
-
},
|
|
321
|
-
forEachContext
|
|
322
|
-
);
|
|
323
|
-
},
|
|
324
|
-
count: function(children) {
|
|
325
|
-
var n = 0;
|
|
326
|
-
mapChildren(children, function() {
|
|
327
|
-
n++;
|
|
328
|
-
});
|
|
329
|
-
return n;
|
|
330
|
-
},
|
|
331
|
-
toArray: function(children) {
|
|
332
|
-
return mapChildren(children, function(child) {
|
|
333
|
-
return child;
|
|
334
|
-
}) || [];
|
|
335
|
-
},
|
|
336
|
-
only: function(children) {
|
|
337
|
-
if (!isValidElement(children))
|
|
338
|
-
throw Error(
|
|
339
|
-
"React.Children.only expected to receive a single React element child."
|
|
340
|
-
);
|
|
341
|
-
return children;
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
exports.Component = Component;
|
|
345
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
346
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
347
|
-
exports.PureComponent = PureComponent;
|
|
348
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
349
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
350
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
351
|
-
exports.__COMPILER_RUNTIME = {
|
|
352
|
-
__proto__: null,
|
|
353
|
-
c: function(size) {
|
|
354
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
exports.cache = function(fn) {
|
|
358
|
-
return function() {
|
|
359
|
-
return fn.apply(null, arguments);
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
exports.cloneElement = function(element, config, children) {
|
|
363
|
-
if (null === element || void 0 === element)
|
|
364
|
-
throw Error(
|
|
365
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
366
|
-
);
|
|
367
|
-
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
368
|
-
if (null != config)
|
|
369
|
-
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
370
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
371
|
-
var propName = arguments.length - 2;
|
|
372
|
-
if (1 === propName)
|
|
373
|
-
props.children = children;
|
|
374
|
-
else if (1 < propName) {
|
|
375
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
376
|
-
childArray[i] = arguments[i + 2];
|
|
377
|
-
props.children = childArray;
|
|
378
|
-
}
|
|
379
|
-
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
380
|
-
};
|
|
381
|
-
exports.createContext = function(defaultValue) {
|
|
382
|
-
defaultValue = {
|
|
383
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
384
|
-
_currentValue: defaultValue,
|
|
385
|
-
_currentValue2: defaultValue,
|
|
386
|
-
_threadCount: 0,
|
|
387
|
-
Provider: null,
|
|
388
|
-
Consumer: null
|
|
389
|
-
};
|
|
390
|
-
defaultValue.Provider = defaultValue;
|
|
391
|
-
defaultValue.Consumer = {
|
|
392
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
393
|
-
_context: defaultValue
|
|
394
|
-
};
|
|
395
|
-
return defaultValue;
|
|
396
|
-
};
|
|
397
|
-
exports.createElement = function(type, config, children) {
|
|
398
|
-
var propName, props = {}, key = null;
|
|
399
|
-
if (null != config)
|
|
400
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
401
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
402
|
-
var childrenLength = arguments.length - 2;
|
|
403
|
-
if (1 === childrenLength)
|
|
404
|
-
props.children = children;
|
|
405
|
-
else if (1 < childrenLength) {
|
|
406
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
407
|
-
childArray[i] = arguments[i + 2];
|
|
408
|
-
props.children = childArray;
|
|
409
|
-
}
|
|
410
|
-
if (type && type.defaultProps)
|
|
411
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
412
|
-
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
413
|
-
return ReactElement(type, key, void 0, void 0, null, props);
|
|
414
|
-
};
|
|
415
|
-
exports.createRef = function() {
|
|
416
|
-
return { current: null };
|
|
417
|
-
};
|
|
418
|
-
exports.forwardRef = function(render) {
|
|
419
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
420
|
-
};
|
|
421
|
-
exports.isValidElement = isValidElement;
|
|
422
|
-
exports.lazy = function(ctor) {
|
|
423
|
-
return {
|
|
424
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
425
|
-
_payload: { _status: -1, _result: ctor },
|
|
426
|
-
_init: lazyInitializer
|
|
427
|
-
};
|
|
428
|
-
};
|
|
429
|
-
exports.memo = function(type, compare) {
|
|
430
|
-
return {
|
|
431
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
432
|
-
type,
|
|
433
|
-
compare: void 0 === compare ? null : compare
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
exports.startTransition = function(scope) {
|
|
437
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
438
|
-
ReactSharedInternals.T = currentTransition;
|
|
439
|
-
try {
|
|
440
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
441
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
442
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
443
|
-
} catch (error) {
|
|
444
|
-
reportGlobalError(error);
|
|
445
|
-
} finally {
|
|
446
|
-
ReactSharedInternals.T = prevTransition;
|
|
447
|
-
}
|
|
448
|
-
};
|
|
449
|
-
exports.unstable_useCacheRefresh = function() {
|
|
450
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
451
|
-
};
|
|
452
|
-
exports.use = function(usable) {
|
|
453
|
-
return ReactSharedInternals.H.use(usable);
|
|
454
|
-
};
|
|
455
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
456
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
457
|
-
};
|
|
458
|
-
exports.useCallback = function(callback, deps) {
|
|
459
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
460
|
-
};
|
|
461
|
-
exports.useContext = function(Context) {
|
|
462
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
463
|
-
};
|
|
464
|
-
exports.useDebugValue = function() {
|
|
465
|
-
};
|
|
466
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
467
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
468
|
-
};
|
|
469
|
-
exports.useEffect = function(create, createDeps, update) {
|
|
470
|
-
var dispatcher = ReactSharedInternals.H;
|
|
471
|
-
if ("function" === typeof update)
|
|
472
|
-
throw Error(
|
|
473
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
474
|
-
);
|
|
475
|
-
return dispatcher.useEffect(create, createDeps);
|
|
476
|
-
};
|
|
477
|
-
exports.useId = function() {
|
|
478
|
-
return ReactSharedInternals.H.useId();
|
|
479
|
-
};
|
|
480
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
481
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
482
|
-
};
|
|
483
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
484
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
485
|
-
};
|
|
486
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
487
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
488
|
-
};
|
|
489
|
-
exports.useMemo = function(create, deps) {
|
|
490
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
491
|
-
};
|
|
492
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
493
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
494
|
-
};
|
|
495
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
496
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
497
|
-
};
|
|
498
|
-
exports.useRef = function(initialValue) {
|
|
499
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
500
|
-
};
|
|
501
|
-
exports.useState = function(initialState) {
|
|
502
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
503
|
-
};
|
|
504
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
505
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
506
|
-
subscribe,
|
|
507
|
-
getSnapshot,
|
|
508
|
-
getServerSnapshot
|
|
509
|
-
);
|
|
510
|
-
};
|
|
511
|
-
exports.useTransition = function() {
|
|
512
|
-
return ReactSharedInternals.H.useTransition();
|
|
513
|
-
};
|
|
514
|
-
exports.version = "19.1.0";
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
|
|
518
|
-
// ../../node_modules/react/cjs/react.development.js
|
|
519
|
-
var require_react_development = __commonJS({
|
|
520
|
-
"../../node_modules/react/cjs/react.development.js"(exports, module2) {
|
|
521
|
-
"use strict";
|
|
522
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
523
|
-
function defineDeprecationWarning(methodName, info) {
|
|
524
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
525
|
-
get: function() {
|
|
526
|
-
console.warn(
|
|
527
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
528
|
-
info[0],
|
|
529
|
-
info[1]
|
|
530
|
-
);
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
}
|
|
534
|
-
function getIteratorFn(maybeIterable) {
|
|
535
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
536
|
-
return null;
|
|
537
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
538
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
539
|
-
}
|
|
540
|
-
function warnNoop(publicInstance, callerName) {
|
|
541
|
-
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
542
|
-
var warningKey = publicInstance + "." + callerName;
|
|
543
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
544
|
-
"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.",
|
|
545
|
-
callerName,
|
|
546
|
-
publicInstance
|
|
547
|
-
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
548
|
-
}
|
|
549
|
-
function Component(props, context, updater) {
|
|
550
|
-
this.props = props;
|
|
551
|
-
this.context = context;
|
|
552
|
-
this.refs = emptyObject;
|
|
553
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
554
|
-
}
|
|
555
|
-
function ComponentDummy() {
|
|
556
|
-
}
|
|
557
|
-
function PureComponent(props, context, updater) {
|
|
558
|
-
this.props = props;
|
|
559
|
-
this.context = context;
|
|
560
|
-
this.refs = emptyObject;
|
|
561
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
562
|
-
}
|
|
563
|
-
function testStringCoercion(value) {
|
|
564
|
-
return "" + value;
|
|
565
|
-
}
|
|
566
|
-
function checkKeyStringCoercion(value) {
|
|
567
|
-
try {
|
|
568
|
-
testStringCoercion(value);
|
|
569
|
-
var JSCompiler_inline_result = false;
|
|
570
|
-
} catch (e) {
|
|
571
|
-
JSCompiler_inline_result = true;
|
|
572
|
-
}
|
|
573
|
-
if (JSCompiler_inline_result) {
|
|
574
|
-
JSCompiler_inline_result = console;
|
|
575
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
576
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
577
|
-
JSCompiler_temp_const.call(
|
|
578
|
-
JSCompiler_inline_result,
|
|
579
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
580
|
-
JSCompiler_inline_result$jscomp$0
|
|
581
|
-
);
|
|
582
|
-
return testStringCoercion(value);
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
function getComponentNameFromType(type) {
|
|
586
|
-
if (null == type)
|
|
587
|
-
return null;
|
|
588
|
-
if ("function" === typeof type)
|
|
589
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
590
|
-
if ("string" === typeof type)
|
|
591
|
-
return type;
|
|
592
|
-
switch (type) {
|
|
593
|
-
case REACT_FRAGMENT_TYPE:
|
|
594
|
-
return "Fragment";
|
|
595
|
-
case REACT_PROFILER_TYPE:
|
|
596
|
-
return "Profiler";
|
|
597
|
-
case REACT_STRICT_MODE_TYPE:
|
|
598
|
-
return "StrictMode";
|
|
599
|
-
case REACT_SUSPENSE_TYPE:
|
|
600
|
-
return "Suspense";
|
|
601
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
602
|
-
return "SuspenseList";
|
|
603
|
-
case REACT_ACTIVITY_TYPE:
|
|
604
|
-
return "Activity";
|
|
605
|
-
}
|
|
606
|
-
if ("object" === typeof type)
|
|
607
|
-
switch ("number" === typeof type.tag && console.error(
|
|
608
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
609
|
-
), type.$$typeof) {
|
|
610
|
-
case REACT_PORTAL_TYPE:
|
|
611
|
-
return "Portal";
|
|
612
|
-
case REACT_CONTEXT_TYPE:
|
|
613
|
-
return (type.displayName || "Context") + ".Provider";
|
|
614
|
-
case REACT_CONSUMER_TYPE:
|
|
615
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
616
|
-
case REACT_FORWARD_REF_TYPE:
|
|
617
|
-
var innerType = type.render;
|
|
618
|
-
type = type.displayName;
|
|
619
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
620
|
-
return type;
|
|
621
|
-
case REACT_MEMO_TYPE:
|
|
622
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
623
|
-
case REACT_LAZY_TYPE:
|
|
624
|
-
innerType = type._payload;
|
|
625
|
-
type = type._init;
|
|
626
|
-
try {
|
|
627
|
-
return getComponentNameFromType(type(innerType));
|
|
628
|
-
} catch (x) {
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
return null;
|
|
632
|
-
}
|
|
633
|
-
function getTaskName(type) {
|
|
634
|
-
if (type === REACT_FRAGMENT_TYPE)
|
|
635
|
-
return "<>";
|
|
636
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
637
|
-
return "<...>";
|
|
638
|
-
try {
|
|
639
|
-
var name = getComponentNameFromType(type);
|
|
640
|
-
return name ? "<" + name + ">" : "<...>";
|
|
641
|
-
} catch (x) {
|
|
642
|
-
return "<...>";
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
function getOwner() {
|
|
646
|
-
var dispatcher = ReactSharedInternals.A;
|
|
647
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
648
|
-
}
|
|
649
|
-
function UnknownOwner() {
|
|
650
|
-
return Error("react-stack-top-frame");
|
|
651
|
-
}
|
|
652
|
-
function hasValidKey(config) {
|
|
653
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
654
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
655
|
-
if (getter && getter.isReactWarning)
|
|
656
|
-
return false;
|
|
657
|
-
}
|
|
658
|
-
return void 0 !== config.key;
|
|
659
|
-
}
|
|
660
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
661
|
-
function warnAboutAccessingKey() {
|
|
662
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
663
|
-
"%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://react.dev/link/special-props)",
|
|
664
|
-
displayName
|
|
665
|
-
));
|
|
666
|
-
}
|
|
667
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
668
|
-
Object.defineProperty(props, "key", {
|
|
669
|
-
get: warnAboutAccessingKey,
|
|
670
|
-
configurable: true
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
674
|
-
var componentName = getComponentNameFromType(this.type);
|
|
675
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
676
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
677
|
-
));
|
|
678
|
-
componentName = this.props.ref;
|
|
679
|
-
return void 0 !== componentName ? componentName : null;
|
|
680
|
-
}
|
|
681
|
-
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
682
|
-
self = props.ref;
|
|
683
|
-
type = {
|
|
684
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
685
|
-
type,
|
|
686
|
-
key,
|
|
687
|
-
props,
|
|
688
|
-
_owner: owner
|
|
689
|
-
};
|
|
690
|
-
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
691
|
-
enumerable: false,
|
|
692
|
-
get: elementRefGetterWithDeprecationWarning
|
|
693
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
694
|
-
type._store = {};
|
|
695
|
-
Object.defineProperty(type._store, "validated", {
|
|
696
|
-
configurable: false,
|
|
697
|
-
enumerable: false,
|
|
698
|
-
writable: true,
|
|
699
|
-
value: 0
|
|
700
|
-
});
|
|
701
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
702
|
-
configurable: false,
|
|
703
|
-
enumerable: false,
|
|
704
|
-
writable: true,
|
|
705
|
-
value: null
|
|
706
|
-
});
|
|
707
|
-
Object.defineProperty(type, "_debugStack", {
|
|
708
|
-
configurable: false,
|
|
709
|
-
enumerable: false,
|
|
710
|
-
writable: true,
|
|
711
|
-
value: debugStack
|
|
712
|
-
});
|
|
713
|
-
Object.defineProperty(type, "_debugTask", {
|
|
714
|
-
configurable: false,
|
|
715
|
-
enumerable: false,
|
|
716
|
-
writable: true,
|
|
717
|
-
value: debugTask
|
|
718
|
-
});
|
|
719
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
720
|
-
return type;
|
|
721
|
-
}
|
|
722
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
723
|
-
newKey = ReactElement(
|
|
724
|
-
oldElement.type,
|
|
725
|
-
newKey,
|
|
726
|
-
void 0,
|
|
727
|
-
void 0,
|
|
728
|
-
oldElement._owner,
|
|
729
|
-
oldElement.props,
|
|
730
|
-
oldElement._debugStack,
|
|
731
|
-
oldElement._debugTask
|
|
732
|
-
);
|
|
733
|
-
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
734
|
-
return newKey;
|
|
735
|
-
}
|
|
736
|
-
function isValidElement(object) {
|
|
737
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
738
|
-
}
|
|
739
|
-
function escape(key) {
|
|
740
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
741
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
742
|
-
return escaperLookup[match];
|
|
743
|
-
});
|
|
744
|
-
}
|
|
745
|
-
function getElementKey(element, index) {
|
|
746
|
-
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
747
|
-
}
|
|
748
|
-
function noop$1() {
|
|
749
|
-
}
|
|
750
|
-
function resolveThenable(thenable) {
|
|
751
|
-
switch (thenable.status) {
|
|
752
|
-
case "fulfilled":
|
|
753
|
-
return thenable.value;
|
|
754
|
-
case "rejected":
|
|
755
|
-
throw thenable.reason;
|
|
756
|
-
default:
|
|
757
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
758
|
-
function(fulfilledValue) {
|
|
759
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
760
|
-
},
|
|
761
|
-
function(error) {
|
|
762
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
763
|
-
}
|
|
764
|
-
)), thenable.status) {
|
|
765
|
-
case "fulfilled":
|
|
766
|
-
return thenable.value;
|
|
767
|
-
case "rejected":
|
|
768
|
-
throw thenable.reason;
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
throw thenable;
|
|
772
|
-
}
|
|
773
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
774
|
-
var type = typeof children;
|
|
775
|
-
if ("undefined" === type || "boolean" === type)
|
|
776
|
-
children = null;
|
|
777
|
-
var invokeCallback = false;
|
|
778
|
-
if (null === children)
|
|
779
|
-
invokeCallback = true;
|
|
780
|
-
else
|
|
781
|
-
switch (type) {
|
|
782
|
-
case "bigint":
|
|
783
|
-
case "string":
|
|
784
|
-
case "number":
|
|
785
|
-
invokeCallback = true;
|
|
786
|
-
break;
|
|
787
|
-
case "object":
|
|
788
|
-
switch (children.$$typeof) {
|
|
789
|
-
case REACT_ELEMENT_TYPE:
|
|
790
|
-
case REACT_PORTAL_TYPE:
|
|
791
|
-
invokeCallback = true;
|
|
792
|
-
break;
|
|
793
|
-
case REACT_LAZY_TYPE:
|
|
794
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
795
|
-
invokeCallback(children._payload),
|
|
796
|
-
array,
|
|
797
|
-
escapedPrefix,
|
|
798
|
-
nameSoFar,
|
|
799
|
-
callback
|
|
800
|
-
);
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
if (invokeCallback) {
|
|
804
|
-
invokeCallback = children;
|
|
805
|
-
callback = callback(invokeCallback);
|
|
806
|
-
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
807
|
-
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
808
|
-
return c;
|
|
809
|
-
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
810
|
-
callback,
|
|
811
|
-
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
812
|
-
userProvidedKeyEscapeRegex,
|
|
813
|
-
"$&/"
|
|
814
|
-
) + "/") + childKey
|
|
815
|
-
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
816
|
-
return 1;
|
|
817
|
-
}
|
|
818
|
-
invokeCallback = 0;
|
|
819
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
820
|
-
if (isArrayImpl(children))
|
|
821
|
-
for (var i = 0; i < children.length; i++)
|
|
822
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
823
|
-
nameSoFar,
|
|
824
|
-
array,
|
|
825
|
-
escapedPrefix,
|
|
826
|
-
type,
|
|
827
|
-
callback
|
|
828
|
-
);
|
|
829
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
830
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
831
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
832
|
-
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
833
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
834
|
-
nameSoFar,
|
|
835
|
-
array,
|
|
836
|
-
escapedPrefix,
|
|
837
|
-
type,
|
|
838
|
-
callback
|
|
839
|
-
);
|
|
840
|
-
else if ("object" === type) {
|
|
841
|
-
if ("function" === typeof children.then)
|
|
842
|
-
return mapIntoArray(
|
|
843
|
-
resolveThenable(children),
|
|
844
|
-
array,
|
|
845
|
-
escapedPrefix,
|
|
846
|
-
nameSoFar,
|
|
847
|
-
callback
|
|
848
|
-
);
|
|
849
|
-
array = String(children);
|
|
850
|
-
throw Error(
|
|
851
|
-
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
852
|
-
);
|
|
853
|
-
}
|
|
854
|
-
return invokeCallback;
|
|
855
|
-
}
|
|
856
|
-
function mapChildren(children, func, context) {
|
|
857
|
-
if (null == children)
|
|
858
|
-
return children;
|
|
859
|
-
var result = [], count = 0;
|
|
860
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
861
|
-
return func.call(context, child, count++);
|
|
862
|
-
});
|
|
863
|
-
return result;
|
|
864
|
-
}
|
|
865
|
-
function lazyInitializer(payload) {
|
|
866
|
-
if (-1 === payload._status) {
|
|
867
|
-
var ctor = payload._result;
|
|
868
|
-
ctor = ctor();
|
|
869
|
-
ctor.then(
|
|
870
|
-
function(moduleObject) {
|
|
871
|
-
if (0 === payload._status || -1 === payload._status)
|
|
872
|
-
payload._status = 1, payload._result = moduleObject;
|
|
873
|
-
},
|
|
874
|
-
function(error) {
|
|
875
|
-
if (0 === payload._status || -1 === payload._status)
|
|
876
|
-
payload._status = 2, payload._result = error;
|
|
877
|
-
}
|
|
878
|
-
);
|
|
879
|
-
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
880
|
-
}
|
|
881
|
-
if (1 === payload._status)
|
|
882
|
-
return ctor = payload._result, void 0 === ctor && console.error(
|
|
883
|
-
"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?",
|
|
884
|
-
ctor
|
|
885
|
-
), "default" in ctor || console.error(
|
|
886
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
887
|
-
ctor
|
|
888
|
-
), ctor.default;
|
|
889
|
-
throw payload._result;
|
|
890
|
-
}
|
|
891
|
-
function resolveDispatcher() {
|
|
892
|
-
var dispatcher = ReactSharedInternals.H;
|
|
893
|
-
null === dispatcher && console.error(
|
|
894
|
-
"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://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
895
|
-
);
|
|
896
|
-
return dispatcher;
|
|
897
|
-
}
|
|
898
|
-
function noop() {
|
|
899
|
-
}
|
|
900
|
-
function enqueueTask(task) {
|
|
901
|
-
if (null === enqueueTaskImpl)
|
|
902
|
-
try {
|
|
903
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
904
|
-
enqueueTaskImpl = (module2 && module2[requireString]).call(
|
|
905
|
-
module2,
|
|
906
|
-
"timers"
|
|
907
|
-
).setImmediate;
|
|
908
|
-
} catch (_err) {
|
|
909
|
-
enqueueTaskImpl = function(callback) {
|
|
910
|
-
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
911
|
-
"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."
|
|
912
|
-
));
|
|
913
|
-
var channel = new MessageChannel();
|
|
914
|
-
channel.port1.onmessage = callback;
|
|
915
|
-
channel.port2.postMessage(void 0);
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
return enqueueTaskImpl(task);
|
|
919
|
-
}
|
|
920
|
-
function aggregateErrors(errors) {
|
|
921
|
-
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
922
|
-
}
|
|
923
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
924
|
-
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
925
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
926
|
-
);
|
|
927
|
-
actScopeDepth = prevActScopeDepth;
|
|
928
|
-
}
|
|
929
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
930
|
-
var queue = ReactSharedInternals.actQueue;
|
|
931
|
-
if (null !== queue)
|
|
932
|
-
if (0 !== queue.length)
|
|
933
|
-
try {
|
|
934
|
-
flushActQueue(queue);
|
|
935
|
-
enqueueTask(function() {
|
|
936
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
937
|
-
});
|
|
938
|
-
return;
|
|
939
|
-
} catch (error) {
|
|
940
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
941
|
-
}
|
|
942
|
-
else
|
|
943
|
-
ReactSharedInternals.actQueue = null;
|
|
944
|
-
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
945
|
-
}
|
|
946
|
-
function flushActQueue(queue) {
|
|
947
|
-
if (!isFlushing) {
|
|
948
|
-
isFlushing = true;
|
|
949
|
-
var i = 0;
|
|
950
|
-
try {
|
|
951
|
-
for (; i < queue.length; i++) {
|
|
952
|
-
var callback = queue[i];
|
|
953
|
-
do {
|
|
954
|
-
ReactSharedInternals.didUsePromise = false;
|
|
955
|
-
var continuation = callback(false);
|
|
956
|
-
if (null !== continuation) {
|
|
957
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
958
|
-
queue[i] = callback;
|
|
959
|
-
queue.splice(0, i);
|
|
960
|
-
return;
|
|
961
|
-
}
|
|
962
|
-
callback = continuation;
|
|
963
|
-
} else
|
|
964
|
-
break;
|
|
965
|
-
} while (1);
|
|
966
|
-
}
|
|
967
|
-
queue.length = 0;
|
|
968
|
-
} catch (error) {
|
|
969
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
970
|
-
} finally {
|
|
971
|
-
isFlushing = false;
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
976
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
977
|
-
Symbol.for("react.provider");
|
|
978
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
979
|
-
isMounted: function() {
|
|
980
|
-
return false;
|
|
981
|
-
},
|
|
982
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
983
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
984
|
-
},
|
|
985
|
-
enqueueReplaceState: function(publicInstance) {
|
|
986
|
-
warnNoop(publicInstance, "replaceState");
|
|
987
|
-
},
|
|
988
|
-
enqueueSetState: function(publicInstance) {
|
|
989
|
-
warnNoop(publicInstance, "setState");
|
|
990
|
-
}
|
|
991
|
-
}, assign = Object.assign, emptyObject = {};
|
|
992
|
-
Object.freeze(emptyObject);
|
|
993
|
-
Component.prototype.isReactComponent = {};
|
|
994
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
995
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
996
|
-
throw Error(
|
|
997
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
998
|
-
);
|
|
999
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1000
|
-
};
|
|
1001
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
1002
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1003
|
-
};
|
|
1004
|
-
var deprecatedAPIs = {
|
|
1005
|
-
isMounted: [
|
|
1006
|
-
"isMounted",
|
|
1007
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
1008
|
-
],
|
|
1009
|
-
replaceState: [
|
|
1010
|
-
"replaceState",
|
|
1011
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
1012
|
-
]
|
|
1013
|
-
}, fnName;
|
|
1014
|
-
for (fnName in deprecatedAPIs)
|
|
1015
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1016
|
-
ComponentDummy.prototype = Component.prototype;
|
|
1017
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
1018
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
1019
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
1020
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
1021
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
1022
|
-
H: null,
|
|
1023
|
-
A: null,
|
|
1024
|
-
T: null,
|
|
1025
|
-
S: null,
|
|
1026
|
-
V: null,
|
|
1027
|
-
actQueue: null,
|
|
1028
|
-
isBatchingLegacy: false,
|
|
1029
|
-
didScheduleLegacyUpdate: false,
|
|
1030
|
-
didUsePromise: false,
|
|
1031
|
-
thrownErrors: [],
|
|
1032
|
-
getCurrentStack: null,
|
|
1033
|
-
recentlyCreatedOwnerStacks: 0
|
|
1034
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1035
|
-
return null;
|
|
1036
|
-
};
|
|
1037
|
-
deprecatedAPIs = {
|
|
1038
|
-
"react-stack-bottom-frame": function(callStackForError) {
|
|
1039
|
-
return callStackForError();
|
|
1040
|
-
}
|
|
1041
|
-
};
|
|
1042
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1043
|
-
var didWarnAboutElementRef = {};
|
|
1044
|
-
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
1045
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1046
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1047
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1048
|
-
var event = new window.ErrorEvent("error", {
|
|
1049
|
-
bubbles: true,
|
|
1050
|
-
cancelable: true,
|
|
1051
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1052
|
-
error
|
|
1053
|
-
});
|
|
1054
|
-
if (!window.dispatchEvent(event))
|
|
1055
|
-
return;
|
|
1056
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1057
|
-
process.emit("uncaughtException", error);
|
|
1058
|
-
return;
|
|
1059
|
-
}
|
|
1060
|
-
console.error(error);
|
|
1061
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1062
|
-
queueMicrotask(function() {
|
|
1063
|
-
return queueMicrotask(callback);
|
|
1064
|
-
});
|
|
1065
|
-
} : enqueueTask;
|
|
1066
|
-
deprecatedAPIs = Object.freeze({
|
|
1067
|
-
__proto__: null,
|
|
1068
|
-
c: function(size) {
|
|
1069
|
-
return resolveDispatcher().useMemoCache(size);
|
|
1070
|
-
}
|
|
1071
|
-
});
|
|
1072
|
-
exports.Children = {
|
|
1073
|
-
map: mapChildren,
|
|
1074
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
1075
|
-
mapChildren(
|
|
1076
|
-
children,
|
|
1077
|
-
function() {
|
|
1078
|
-
forEachFunc.apply(this, arguments);
|
|
1079
|
-
},
|
|
1080
|
-
forEachContext
|
|
1081
|
-
);
|
|
1082
|
-
},
|
|
1083
|
-
count: function(children) {
|
|
1084
|
-
var n = 0;
|
|
1085
|
-
mapChildren(children, function() {
|
|
1086
|
-
n++;
|
|
1087
|
-
});
|
|
1088
|
-
return n;
|
|
1089
|
-
},
|
|
1090
|
-
toArray: function(children) {
|
|
1091
|
-
return mapChildren(children, function(child) {
|
|
1092
|
-
return child;
|
|
1093
|
-
}) || [];
|
|
1094
|
-
},
|
|
1095
|
-
only: function(children) {
|
|
1096
|
-
if (!isValidElement(children))
|
|
1097
|
-
throw Error(
|
|
1098
|
-
"React.Children.only expected to receive a single React element child."
|
|
1099
|
-
);
|
|
1100
|
-
return children;
|
|
1101
|
-
}
|
|
1102
|
-
};
|
|
1103
|
-
exports.Component = Component;
|
|
1104
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1105
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1106
|
-
exports.PureComponent = PureComponent;
|
|
1107
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1108
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1109
|
-
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1110
|
-
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1111
|
-
exports.act = function(callback) {
|
|
1112
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1113
|
-
actScopeDepth++;
|
|
1114
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1115
|
-
try {
|
|
1116
|
-
var result = callback();
|
|
1117
|
-
} catch (error) {
|
|
1118
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1119
|
-
}
|
|
1120
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1121
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1122
|
-
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1123
|
-
var thenable = result;
|
|
1124
|
-
queueSeveralMicrotasks(function() {
|
|
1125
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1126
|
-
"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 () => ...);"
|
|
1127
|
-
));
|
|
1128
|
-
});
|
|
1129
|
-
return {
|
|
1130
|
-
then: function(resolve, reject) {
|
|
1131
|
-
didAwaitActCall = true;
|
|
1132
|
-
thenable.then(
|
|
1133
|
-
function(returnValue) {
|
|
1134
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1135
|
-
if (0 === prevActScopeDepth) {
|
|
1136
|
-
try {
|
|
1137
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
1138
|
-
return recursivelyFlushAsyncActWork(
|
|
1139
|
-
returnValue,
|
|
1140
|
-
resolve,
|
|
1141
|
-
reject
|
|
1142
|
-
);
|
|
1143
|
-
});
|
|
1144
|
-
} catch (error$0) {
|
|
1145
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1146
|
-
}
|
|
1147
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1148
|
-
var _thrownError = aggregateErrors(
|
|
1149
|
-
ReactSharedInternals.thrownErrors
|
|
1150
|
-
);
|
|
1151
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
1152
|
-
reject(_thrownError);
|
|
1153
|
-
}
|
|
1154
|
-
} else
|
|
1155
|
-
resolve(returnValue);
|
|
1156
|
-
},
|
|
1157
|
-
function(error) {
|
|
1158
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1159
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1160
|
-
ReactSharedInternals.thrownErrors
|
|
1161
|
-
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1162
|
-
}
|
|
1163
|
-
);
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
}
|
|
1167
|
-
var returnValue$jscomp$0 = result;
|
|
1168
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1169
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1170
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1171
|
-
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1172
|
-
));
|
|
1173
|
-
}), ReactSharedInternals.actQueue = null);
|
|
1174
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1175
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1176
|
-
return {
|
|
1177
|
-
then: function(resolve, reject) {
|
|
1178
|
-
didAwaitActCall = true;
|
|
1179
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1180
|
-
return recursivelyFlushAsyncActWork(
|
|
1181
|
-
returnValue$jscomp$0,
|
|
1182
|
-
resolve,
|
|
1183
|
-
reject
|
|
1184
|
-
);
|
|
1185
|
-
})) : resolve(returnValue$jscomp$0);
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
};
|
|
1189
|
-
exports.cache = function(fn) {
|
|
1190
|
-
return function() {
|
|
1191
|
-
return fn.apply(null, arguments);
|
|
1192
|
-
};
|
|
1193
|
-
};
|
|
1194
|
-
exports.captureOwnerStack = function() {
|
|
1195
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1196
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1197
|
-
};
|
|
1198
|
-
exports.cloneElement = function(element, config, children) {
|
|
1199
|
-
if (null === element || void 0 === element)
|
|
1200
|
-
throw Error(
|
|
1201
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
1202
|
-
);
|
|
1203
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1204
|
-
if (null != config) {
|
|
1205
|
-
var JSCompiler_inline_result;
|
|
1206
|
-
a: {
|
|
1207
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1208
|
-
config,
|
|
1209
|
-
"ref"
|
|
1210
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1211
|
-
JSCompiler_inline_result = false;
|
|
1212
|
-
break a;
|
|
1213
|
-
}
|
|
1214
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1215
|
-
}
|
|
1216
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1217
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1218
|
-
for (propName in config)
|
|
1219
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1220
|
-
}
|
|
1221
|
-
var propName = arguments.length - 2;
|
|
1222
|
-
if (1 === propName)
|
|
1223
|
-
props.children = children;
|
|
1224
|
-
else if (1 < propName) {
|
|
1225
|
-
JSCompiler_inline_result = Array(propName);
|
|
1226
|
-
for (var i = 0; i < propName; i++)
|
|
1227
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1228
|
-
props.children = JSCompiler_inline_result;
|
|
1229
|
-
}
|
|
1230
|
-
props = ReactElement(
|
|
1231
|
-
element.type,
|
|
1232
|
-
key,
|
|
1233
|
-
void 0,
|
|
1234
|
-
void 0,
|
|
1235
|
-
owner,
|
|
1236
|
-
props,
|
|
1237
|
-
element._debugStack,
|
|
1238
|
-
element._debugTask
|
|
1239
|
-
);
|
|
1240
|
-
for (key = 2; key < arguments.length; key++)
|
|
1241
|
-
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1242
|
-
return props;
|
|
1243
|
-
};
|
|
1244
|
-
exports.createContext = function(defaultValue) {
|
|
1245
|
-
defaultValue = {
|
|
1246
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1247
|
-
_currentValue: defaultValue,
|
|
1248
|
-
_currentValue2: defaultValue,
|
|
1249
|
-
_threadCount: 0,
|
|
1250
|
-
Provider: null,
|
|
1251
|
-
Consumer: null
|
|
1252
|
-
};
|
|
1253
|
-
defaultValue.Provider = defaultValue;
|
|
1254
|
-
defaultValue.Consumer = {
|
|
1255
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1256
|
-
_context: defaultValue
|
|
1257
|
-
};
|
|
1258
|
-
defaultValue._currentRenderer = null;
|
|
1259
|
-
defaultValue._currentRenderer2 = null;
|
|
1260
|
-
return defaultValue;
|
|
1261
|
-
};
|
|
1262
|
-
exports.createElement = function(type, config, children) {
|
|
1263
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1264
|
-
var node = arguments[i];
|
|
1265
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1266
|
-
}
|
|
1267
|
-
i = {};
|
|
1268
|
-
node = null;
|
|
1269
|
-
if (null != config)
|
|
1270
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1271
|
-
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1272
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
1273
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1274
|
-
var childrenLength = arguments.length - 2;
|
|
1275
|
-
if (1 === childrenLength)
|
|
1276
|
-
i.children = children;
|
|
1277
|
-
else if (1 < childrenLength) {
|
|
1278
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1279
|
-
childArray[_i] = arguments[_i + 2];
|
|
1280
|
-
Object.freeze && Object.freeze(childArray);
|
|
1281
|
-
i.children = childArray;
|
|
1282
|
-
}
|
|
1283
|
-
if (type && type.defaultProps)
|
|
1284
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1285
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1286
|
-
node && defineKeyPropWarningGetter(
|
|
1287
|
-
i,
|
|
1288
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1289
|
-
);
|
|
1290
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1291
|
-
return ReactElement(
|
|
1292
|
-
type,
|
|
1293
|
-
node,
|
|
1294
|
-
void 0,
|
|
1295
|
-
void 0,
|
|
1296
|
-
getOwner(),
|
|
1297
|
-
i,
|
|
1298
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1299
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1300
|
-
);
|
|
1301
|
-
};
|
|
1302
|
-
exports.createRef = function() {
|
|
1303
|
-
var refObject = { current: null };
|
|
1304
|
-
Object.seal(refObject);
|
|
1305
|
-
return refObject;
|
|
1306
|
-
};
|
|
1307
|
-
exports.forwardRef = function(render) {
|
|
1308
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1309
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1310
|
-
) : "function" !== typeof render ? console.error(
|
|
1311
|
-
"forwardRef requires a render function but was given %s.",
|
|
1312
|
-
null === render ? "null" : typeof render
|
|
1313
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1314
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1315
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1316
|
-
);
|
|
1317
|
-
null != render && null != render.defaultProps && console.error(
|
|
1318
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1319
|
-
);
|
|
1320
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1321
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1322
|
-
enumerable: false,
|
|
1323
|
-
configurable: true,
|
|
1324
|
-
get: function() {
|
|
1325
|
-
return ownName;
|
|
1326
|
-
},
|
|
1327
|
-
set: function(name) {
|
|
1328
|
-
ownName = name;
|
|
1329
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1330
|
-
}
|
|
1331
|
-
});
|
|
1332
|
-
return elementType;
|
|
1333
|
-
};
|
|
1334
|
-
exports.isValidElement = isValidElement;
|
|
1335
|
-
exports.lazy = function(ctor) {
|
|
1336
|
-
return {
|
|
1337
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1338
|
-
_payload: { _status: -1, _result: ctor },
|
|
1339
|
-
_init: lazyInitializer
|
|
1340
|
-
};
|
|
1341
|
-
};
|
|
1342
|
-
exports.memo = function(type, compare) {
|
|
1343
|
-
null == type && console.error(
|
|
1344
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1345
|
-
null === type ? "null" : typeof type
|
|
1346
|
-
);
|
|
1347
|
-
compare = {
|
|
1348
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1349
|
-
type,
|
|
1350
|
-
compare: void 0 === compare ? null : compare
|
|
1351
|
-
};
|
|
1352
|
-
var ownName;
|
|
1353
|
-
Object.defineProperty(compare, "displayName", {
|
|
1354
|
-
enumerable: false,
|
|
1355
|
-
configurable: true,
|
|
1356
|
-
get: function() {
|
|
1357
|
-
return ownName;
|
|
1358
|
-
},
|
|
1359
|
-
set: function(name) {
|
|
1360
|
-
ownName = name;
|
|
1361
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1362
|
-
}
|
|
1363
|
-
});
|
|
1364
|
-
return compare;
|
|
1365
|
-
};
|
|
1366
|
-
exports.startTransition = function(scope) {
|
|
1367
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1368
|
-
ReactSharedInternals.T = currentTransition;
|
|
1369
|
-
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1370
|
-
try {
|
|
1371
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1372
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1373
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1374
|
-
} catch (error) {
|
|
1375
|
-
reportGlobalError(error);
|
|
1376
|
-
} finally {
|
|
1377
|
-
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1378
|
-
"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."
|
|
1379
|
-
)), ReactSharedInternals.T = prevTransition;
|
|
1380
|
-
}
|
|
1381
|
-
};
|
|
1382
|
-
exports.unstable_useCacheRefresh = function() {
|
|
1383
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1384
|
-
};
|
|
1385
|
-
exports.use = function(usable) {
|
|
1386
|
-
return resolveDispatcher().use(usable);
|
|
1387
|
-
};
|
|
1388
|
-
exports.useActionState = function(action, initialState, permalink) {
|
|
1389
|
-
return resolveDispatcher().useActionState(
|
|
1390
|
-
action,
|
|
1391
|
-
initialState,
|
|
1392
|
-
permalink
|
|
1393
|
-
);
|
|
1394
|
-
};
|
|
1395
|
-
exports.useCallback = function(callback, deps) {
|
|
1396
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1397
|
-
};
|
|
1398
|
-
exports.useContext = function(Context) {
|
|
1399
|
-
var dispatcher = resolveDispatcher();
|
|
1400
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1401
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1402
|
-
);
|
|
1403
|
-
return dispatcher.useContext(Context);
|
|
1404
|
-
};
|
|
1405
|
-
exports.useDebugValue = function(value, formatterFn) {
|
|
1406
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1407
|
-
};
|
|
1408
|
-
exports.useDeferredValue = function(value, initialValue) {
|
|
1409
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1410
|
-
};
|
|
1411
|
-
exports.useEffect = function(create, createDeps, update) {
|
|
1412
|
-
null == create && console.warn(
|
|
1413
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1414
|
-
);
|
|
1415
|
-
var dispatcher = resolveDispatcher();
|
|
1416
|
-
if ("function" === typeof update)
|
|
1417
|
-
throw Error(
|
|
1418
|
-
"useEffect CRUD overload is not enabled in this build of React."
|
|
1419
|
-
);
|
|
1420
|
-
return dispatcher.useEffect(create, createDeps);
|
|
1421
|
-
};
|
|
1422
|
-
exports.useId = function() {
|
|
1423
|
-
return resolveDispatcher().useId();
|
|
1424
|
-
};
|
|
1425
|
-
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1426
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1427
|
-
};
|
|
1428
|
-
exports.useInsertionEffect = function(create, deps) {
|
|
1429
|
-
null == create && console.warn(
|
|
1430
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1431
|
-
);
|
|
1432
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1433
|
-
};
|
|
1434
|
-
exports.useLayoutEffect = function(create, deps) {
|
|
1435
|
-
null == create && console.warn(
|
|
1436
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1437
|
-
);
|
|
1438
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1439
|
-
};
|
|
1440
|
-
exports.useMemo = function(create, deps) {
|
|
1441
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1442
|
-
};
|
|
1443
|
-
exports.useOptimistic = function(passthrough, reducer) {
|
|
1444
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1445
|
-
};
|
|
1446
|
-
exports.useReducer = function(reducer, initialArg, init) {
|
|
1447
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1448
|
-
};
|
|
1449
|
-
exports.useRef = function(initialValue) {
|
|
1450
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1451
|
-
};
|
|
1452
|
-
exports.useState = function(initialState) {
|
|
1453
|
-
return resolveDispatcher().useState(initialState);
|
|
1454
|
-
};
|
|
1455
|
-
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1456
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1457
|
-
subscribe,
|
|
1458
|
-
getSnapshot,
|
|
1459
|
-
getServerSnapshot
|
|
1460
|
-
);
|
|
1461
|
-
};
|
|
1462
|
-
exports.useTransition = function() {
|
|
1463
|
-
return resolveDispatcher().useTransition();
|
|
1464
|
-
};
|
|
1465
|
-
exports.version = "19.1.0";
|
|
1466
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1467
|
-
}();
|
|
1468
|
-
}
|
|
1469
|
-
});
|
|
1470
|
-
|
|
1471
|
-
// ../../node_modules/react/index.js
|
|
1472
|
-
var require_react = __commonJS({
|
|
1473
|
-
"../../node_modules/react/index.js"(exports, module2) {
|
|
1474
|
-
"use strict";
|
|
1475
|
-
if (process.env.NODE_ENV === "production") {
|
|
1476
|
-
module2.exports = require_react_production();
|
|
1477
|
-
} else {
|
|
1478
|
-
module2.exports = require_react_development();
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
});
|
|
1482
|
-
|
|
1483
|
-
// ../../node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1484
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
1485
|
-
"../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
1486
|
-
"use strict";
|
|
1487
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
1488
|
-
function getComponentNameFromType(type) {
|
|
1489
|
-
if (null == type)
|
|
1490
|
-
return null;
|
|
1491
|
-
if ("function" === typeof type)
|
|
1492
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1493
|
-
if ("string" === typeof type)
|
|
1494
|
-
return type;
|
|
1495
|
-
switch (type) {
|
|
1496
|
-
case REACT_FRAGMENT_TYPE:
|
|
1497
|
-
return "Fragment";
|
|
1498
|
-
case REACT_PROFILER_TYPE:
|
|
1499
|
-
return "Profiler";
|
|
1500
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1501
|
-
return "StrictMode";
|
|
1502
|
-
case REACT_SUSPENSE_TYPE:
|
|
1503
|
-
return "Suspense";
|
|
1504
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1505
|
-
return "SuspenseList";
|
|
1506
|
-
case REACT_ACTIVITY_TYPE:
|
|
1507
|
-
return "Activity";
|
|
1508
|
-
}
|
|
1509
|
-
if ("object" === typeof type)
|
|
1510
|
-
switch ("number" === typeof type.tag && console.error(
|
|
1511
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1512
|
-
), type.$$typeof) {
|
|
1513
|
-
case REACT_PORTAL_TYPE:
|
|
1514
|
-
return "Portal";
|
|
1515
|
-
case REACT_CONTEXT_TYPE:
|
|
1516
|
-
return (type.displayName || "Context") + ".Provider";
|
|
1517
|
-
case REACT_CONSUMER_TYPE:
|
|
1518
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1519
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1520
|
-
var innerType = type.render;
|
|
1521
|
-
type = type.displayName;
|
|
1522
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1523
|
-
return type;
|
|
1524
|
-
case REACT_MEMO_TYPE:
|
|
1525
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1526
|
-
case REACT_LAZY_TYPE:
|
|
1527
|
-
innerType = type._payload;
|
|
1528
|
-
type = type._init;
|
|
1529
|
-
try {
|
|
1530
|
-
return getComponentNameFromType(type(innerType));
|
|
1531
|
-
} catch (x) {
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
return null;
|
|
1535
|
-
}
|
|
1536
|
-
function testStringCoercion(value) {
|
|
1537
|
-
return "" + value;
|
|
1538
|
-
}
|
|
1539
|
-
function checkKeyStringCoercion(value) {
|
|
1540
|
-
try {
|
|
1541
|
-
testStringCoercion(value);
|
|
1542
|
-
var JSCompiler_inline_result = false;
|
|
1543
|
-
} catch (e) {
|
|
1544
|
-
JSCompiler_inline_result = true;
|
|
1545
|
-
}
|
|
1546
|
-
if (JSCompiler_inline_result) {
|
|
1547
|
-
JSCompiler_inline_result = console;
|
|
1548
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1549
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1550
|
-
JSCompiler_temp_const.call(
|
|
1551
|
-
JSCompiler_inline_result,
|
|
1552
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1553
|
-
JSCompiler_inline_result$jscomp$0
|
|
1554
|
-
);
|
|
1555
|
-
return testStringCoercion(value);
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
function getTaskName(type) {
|
|
1559
|
-
if (type === REACT_FRAGMENT_TYPE)
|
|
1560
|
-
return "<>";
|
|
1561
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1562
|
-
return "<...>";
|
|
1563
|
-
try {
|
|
1564
|
-
var name = getComponentNameFromType(type);
|
|
1565
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1566
|
-
} catch (x) {
|
|
1567
|
-
return "<...>";
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
function getOwner() {
|
|
1571
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1572
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1573
|
-
}
|
|
1574
|
-
function UnknownOwner() {
|
|
1575
|
-
return Error("react-stack-top-frame");
|
|
1576
|
-
}
|
|
1577
|
-
function hasValidKey(config) {
|
|
1578
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1579
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1580
|
-
if (getter && getter.isReactWarning)
|
|
1581
|
-
return false;
|
|
1582
|
-
}
|
|
1583
|
-
return void 0 !== config.key;
|
|
1584
|
-
}
|
|
1585
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1586
|
-
function warnAboutAccessingKey() {
|
|
1587
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1588
|
-
"%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://react.dev/link/special-props)",
|
|
1589
|
-
displayName
|
|
1590
|
-
));
|
|
1591
|
-
}
|
|
1592
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1593
|
-
Object.defineProperty(props, "key", {
|
|
1594
|
-
get: warnAboutAccessingKey,
|
|
1595
|
-
configurable: true
|
|
1596
|
-
});
|
|
1597
|
-
}
|
|
1598
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1599
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1600
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1601
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1602
|
-
));
|
|
1603
|
-
componentName = this.props.ref;
|
|
1604
|
-
return void 0 !== componentName ? componentName : null;
|
|
1605
|
-
}
|
|
1606
|
-
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
1607
|
-
self = props.ref;
|
|
1608
|
-
type = {
|
|
1609
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1610
|
-
type,
|
|
1611
|
-
key,
|
|
1612
|
-
props,
|
|
1613
|
-
_owner: owner
|
|
1614
|
-
};
|
|
1615
|
-
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
1616
|
-
enumerable: false,
|
|
1617
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1618
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1619
|
-
type._store = {};
|
|
1620
|
-
Object.defineProperty(type._store, "validated", {
|
|
1621
|
-
configurable: false,
|
|
1622
|
-
enumerable: false,
|
|
1623
|
-
writable: true,
|
|
1624
|
-
value: 0
|
|
1625
|
-
});
|
|
1626
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1627
|
-
configurable: false,
|
|
1628
|
-
enumerable: false,
|
|
1629
|
-
writable: true,
|
|
1630
|
-
value: null
|
|
1631
|
-
});
|
|
1632
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1633
|
-
configurable: false,
|
|
1634
|
-
enumerable: false,
|
|
1635
|
-
writable: true,
|
|
1636
|
-
value: debugStack
|
|
1637
|
-
});
|
|
1638
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1639
|
-
configurable: false,
|
|
1640
|
-
enumerable: false,
|
|
1641
|
-
writable: true,
|
|
1642
|
-
value: debugTask
|
|
1643
|
-
});
|
|
1644
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1645
|
-
return type;
|
|
1646
|
-
}
|
|
1647
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
1648
|
-
var children = config.children;
|
|
1649
|
-
if (void 0 !== children)
|
|
1650
|
-
if (isStaticChildren)
|
|
1651
|
-
if (isArrayImpl(children)) {
|
|
1652
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1653
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1654
|
-
Object.freeze && Object.freeze(children);
|
|
1655
|
-
} else
|
|
1656
|
-
console.error(
|
|
1657
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1658
|
-
);
|
|
1659
|
-
else
|
|
1660
|
-
validateChildKeys(children);
|
|
1661
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1662
|
-
children = getComponentNameFromType(type);
|
|
1663
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1664
|
-
return "key" !== k;
|
|
1665
|
-
});
|
|
1666
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1667
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1668
|
-
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
1669
|
-
isStaticChildren,
|
|
1670
|
-
children,
|
|
1671
|
-
keys,
|
|
1672
|
-
children
|
|
1673
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1674
|
-
}
|
|
1675
|
-
children = null;
|
|
1676
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1677
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1678
|
-
if ("key" in config) {
|
|
1679
|
-
maybeKey = {};
|
|
1680
|
-
for (var propName in config)
|
|
1681
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1682
|
-
} else
|
|
1683
|
-
maybeKey = config;
|
|
1684
|
-
children && defineKeyPropWarningGetter(
|
|
1685
|
-
maybeKey,
|
|
1686
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1687
|
-
);
|
|
1688
|
-
return ReactElement(
|
|
1689
|
-
type,
|
|
1690
|
-
children,
|
|
1691
|
-
self,
|
|
1692
|
-
source,
|
|
1693
|
-
getOwner(),
|
|
1694
|
-
maybeKey,
|
|
1695
|
-
debugStack,
|
|
1696
|
-
debugTask
|
|
1697
|
-
);
|
|
1698
|
-
}
|
|
1699
|
-
function validateChildKeys(node) {
|
|
1700
|
-
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
1701
|
-
}
|
|
1702
|
-
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1703
|
-
Symbol.for("react.provider");
|
|
1704
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1705
|
-
return null;
|
|
1706
|
-
};
|
|
1707
|
-
React = {
|
|
1708
|
-
"react-stack-bottom-frame": function(callStackForError) {
|
|
1709
|
-
return callStackForError();
|
|
1710
|
-
}
|
|
1711
|
-
};
|
|
1712
|
-
var specialPropKeyWarningShown;
|
|
1713
|
-
var didWarnAboutElementRef = {};
|
|
1714
|
-
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
1715
|
-
React,
|
|
1716
|
-
UnknownOwner
|
|
1717
|
-
)();
|
|
1718
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1719
|
-
var didWarnAboutKeySpread = {};
|
|
1720
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1721
|
-
exports.jsx = function(type, config, maybeKey, source, self) {
|
|
1722
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1723
|
-
return jsxDEVImpl(
|
|
1724
|
-
type,
|
|
1725
|
-
config,
|
|
1726
|
-
maybeKey,
|
|
1727
|
-
false,
|
|
1728
|
-
source,
|
|
1729
|
-
self,
|
|
1730
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1731
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1732
|
-
);
|
|
1733
|
-
};
|
|
1734
|
-
exports.jsxs = function(type, config, maybeKey, source, self) {
|
|
1735
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1736
|
-
return jsxDEVImpl(
|
|
1737
|
-
type,
|
|
1738
|
-
config,
|
|
1739
|
-
maybeKey,
|
|
1740
|
-
true,
|
|
1741
|
-
source,
|
|
1742
|
-
self,
|
|
1743
|
-
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1744
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1745
|
-
);
|
|
1746
|
-
};
|
|
1747
|
-
}();
|
|
1748
|
-
}
|
|
1749
|
-
});
|
|
1750
|
-
|
|
1751
|
-
// ../../node_modules/react/jsx-runtime.js
|
|
1752
|
-
var require_jsx_runtime = __commonJS({
|
|
1753
|
-
"../../node_modules/react/jsx-runtime.js"(exports, module2) {
|
|
1754
|
-
"use strict";
|
|
1755
|
-
if (process.env.NODE_ENV === "production") {
|
|
1756
|
-
module2.exports = require_react_jsx_runtime_production();
|
|
1757
|
-
} else {
|
|
1758
|
-
module2.exports = require_react_jsx_runtime_development();
|
|
1759
|
-
}
|
|
1760
|
-
}
|
|
1761
|
-
});
|
|
1762
|
-
|
|
1763
20
|
// src/index.ts
|
|
1764
|
-
var
|
|
1765
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
1766
23
|
ACCTOKE_DOCS_LINK: () => ACCTOKE_DOCS_LINK,
|
|
1767
24
|
ANNOUNCEMENT_LINK: () => ANNOUNCEMENT_LINK,
|
|
1768
25
|
AUDITS_LINK: () => AUDITS_LINK,
|
|
26
|
+
AUTOPOOLS_APR_URL: () => AUTOPOOLS_APR_URL,
|
|
27
|
+
AUTO_UNI_V4_POOL_URL: () => AUTO_UNI_V4_POOL_URL,
|
|
1769
28
|
BASESCAN_LINK: () => BASESCAN_LINK,
|
|
1770
29
|
BASE_GAS_COSTS_FALLBACK: () => BASE_GAS_COSTS_FALLBACK,
|
|
1771
30
|
BLOG_WEBSITE_LINK: () => BLOG_WEBSITE_LINK,
|
|
@@ -1779,23 +38,40 @@ __export(src_exports, {
|
|
|
1779
38
|
CURVE_API_URL: () => CURVE_API_URL,
|
|
1780
39
|
CURVE_LP_LINK: () => CURVE_LP_LINK,
|
|
1781
40
|
CURVE_POOL_LINK: () => CURVE_POOL_LINK,
|
|
41
|
+
DAYS_PER_YEAR: () => DAYS_PER_YEAR,
|
|
42
|
+
DEAD_ADDRESS: () => DEAD_ADDRESS,
|
|
43
|
+
DEFILLAMA_YIELDS_API: () => DEFILLAMA_YIELDS_API,
|
|
1782
44
|
DISCORD_LINK: () => DISCORD_LINK,
|
|
45
|
+
DYNAMIC_SWAP_DEFAULT_SLIPPAGE_BPS: () => DYNAMIC_SWAP_DEFAULT_SLIPPAGE_BPS,
|
|
1783
46
|
ETHERSCAN_LINK: () => ETHERSCAN_LINK,
|
|
47
|
+
ETH_AUTO_FEE_TIER: () => ETH_AUTO_FEE_TIER,
|
|
48
|
+
ETH_AUTO_V4_POOL_ID: () => ETH_AUTO_V4_POOL_ID,
|
|
1784
49
|
GITBOOK_LINK_V1: () => GITBOOK_LINK_V1,
|
|
1785
50
|
GITBOOK_LINK_V2: () => GITBOOK_LINK_V2,
|
|
1786
51
|
GITHUB_LINK: () => GITHUB_LINK,
|
|
1787
52
|
GOVERNANCE_LINK: () => GOVERNANCE_LINK,
|
|
53
|
+
GRAPH_API_KEY: () => GRAPH_API_KEY,
|
|
1788
54
|
HALBORN_LINK: () => HALBORN_LINK,
|
|
1789
55
|
HEXENS_LINK: () => HEXENS_LINK,
|
|
1790
56
|
IMMUNEFI_LINK: () => IMMUNEFI_LINK,
|
|
1791
57
|
INCH_SWAP_LINK: () => INCH_SWAP_LINK,
|
|
58
|
+
LEGACY_APP_LINK: () => LEGACY_APP_LINK,
|
|
59
|
+
LIQUIDATION_PROBE_AMOUNT: () => LIQUIDATION_PROBE_AMOUNT,
|
|
1792
60
|
LLAMASWAP_LINK: () => LLAMASWAP_LINK,
|
|
1793
61
|
LOCK_FAQS: () => LOCK_FAQS,
|
|
1794
62
|
MAX_STOKE_MONTHS: () => MAX_STOKE_MONTHS,
|
|
1795
63
|
MEDIUM_LINK: () => MEDIUM_LINK,
|
|
64
|
+
MERKL_CREATOR_ADDRESS: () => MERKL_CREATOR_ADDRESS,
|
|
65
|
+
MERKL_OPPORTUNITY_ID: () => MERKL_OPPORTUNITY_ID,
|
|
1796
66
|
MIN_STOKE_MONTHS: () => MIN_STOKE_MONTHS,
|
|
67
|
+
NEW_AUTOPOOL_THRESHOLD_DAYS: () => NEW_AUTOPOOL_THRESHOLD_DAYS,
|
|
1797
68
|
RADIO_LINK: () => RADIO_LINK,
|
|
69
|
+
SAUTO_ANNOUNCEMENT_LINK: () => SAUTO_ANNOUNCEMENT_LINK,
|
|
70
|
+
SAUTO_LOCK_CYCLE_RENEWAL: () => SAUTO_LOCK_CYCLE_RENEWAL,
|
|
71
|
+
SAUTO_PINNED_LOCK_CYCLE: () => SAUTO_PINNED_LOCK_CYCLE,
|
|
72
|
+
SAUTO_PINNED_LOCK_CYCLE_DATE: () => SAUTO_PINNED_LOCK_CYCLE_DATE,
|
|
1798
73
|
SHERLOCK_LINK: () => SHERLOCK_LINK,
|
|
74
|
+
SIMULATION_PLACEHOLDER_ADDRESS: () => SIMULATION_PLACEHOLDER_ADDRESS,
|
|
1799
75
|
SPLASH_WEBSITE_LINK: () => SPLASH_WEBSITE_LINK,
|
|
1800
76
|
SUPPORTED_CHAINS: () => SUPPORTED_CHAINS,
|
|
1801
77
|
SUPPORTED_DEV_CHAINS: () => SUPPORTED_DEV_CHAINS,
|
|
@@ -1824,18 +100,30 @@ __export(src_exports, {
|
|
|
1824
100
|
TOKEMAK_SWAP_PRICING_URL: () => TOKEMAK_SWAP_PRICING_URL,
|
|
1825
101
|
TOKEMAK_SWAP_QUOTE_URL: () => TOKEMAK_SWAP_QUOTE_URL,
|
|
1826
102
|
TOKEMERCH_LINK: () => TOKEMERCH_LINK,
|
|
103
|
+
TOKENS_BASE_LINK: () => TOKENS_BASE_LINK,
|
|
1827
104
|
TOKE_CURVE_POOL_ID: () => TOKE_CURVE_POOL_ID,
|
|
1828
105
|
TOOLTIPS: () => TOOLTIPS,
|
|
1829
106
|
TWITTER_LINK: () => TWITTER_LINK,
|
|
107
|
+
UNISWAP_V4_POOL_MANAGER: () => UNISWAP_V4_POOL_MANAGER,
|
|
108
|
+
UNISWAP_V4_POSITION_MANAGER: () => UNISWAP_V4_POSITION_MANAGER,
|
|
109
|
+
UNISWAP_V4_STATE_VIEW: () => UNISWAP_V4_STATE_VIEW,
|
|
110
|
+
UNI_V4_POOL_ID: () => UNI_V4_POOL_ID,
|
|
1830
111
|
V1_APP_LINK: () => V1_APP_LINK,
|
|
1831
112
|
V1_SPLASH_LINK: () => V1_SPLASH_LINK,
|
|
1832
113
|
V2_ANNOUNCEMENT_ARTICLE_LINK: () => V2_ANNOUNCEMENT_ARTICLE_LINK,
|
|
1833
114
|
V2_APP_LINK: () => V2_APP_LINK,
|
|
1834
115
|
V2_MARKETPLACE_LINK: () => V2_MARKETPLACE_LINK,
|
|
1835
116
|
V2_TOUR_LINK: () => V2_TOUR_LINK,
|
|
117
|
+
ZERO_ADDRESS: () => ZERO_ADDRESS,
|
|
1836
118
|
layerzeroScan: () => layerzeroScan
|
|
1837
119
|
});
|
|
1838
|
-
module.exports = __toCommonJS(
|
|
120
|
+
module.exports = __toCommonJS(index_exports);
|
|
121
|
+
|
|
122
|
+
// src/autopools.ts
|
|
123
|
+
var NEW_AUTOPOOL_THRESHOLD_DAYS = 45;
|
|
124
|
+
var DAYS_PER_YEAR = 365;
|
|
125
|
+
var DEAD_ADDRESS = "0x000000000000000000000000000000000000dead";
|
|
126
|
+
var ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
|
|
1839
127
|
|
|
1840
128
|
// src/baseGasCosts.ts
|
|
1841
129
|
var BASE_GAS_COSTS_FALLBACK = {
|
|
@@ -1895,6 +183,7 @@ var TLDR_DASHBOARD_LINK = "https://docs.tokemak.xyz/autopilot/autopilot-tl-dr/da
|
|
|
1895
183
|
var SPLASH_WEBSITE_LINK = "https://www.tokemak.xyz/";
|
|
1896
184
|
var V1_SPLASH_LINK = "https://v1.tokemak.xyz/";
|
|
1897
185
|
var V1_APP_LINK = "https://v1.tokemak.xyz/";
|
|
186
|
+
var LEGACY_APP_LINK = "https://legacy.auto.finance";
|
|
1898
187
|
var V2_APP_LINK = "https://app.auto.finance/";
|
|
1899
188
|
var V2_MARKETPLACE_LINK = "https://marketplace.tokemak.xyz/";
|
|
1900
189
|
var BLOG_WEBSITE_LINK = "https://blog.tokemak.xyz/";
|
|
@@ -1902,6 +191,7 @@ var TERMS_OF_SERVICE_LINK = "https://app.auto.finance/terms";
|
|
|
1902
191
|
var TALLY_LINK = "tally.so";
|
|
1903
192
|
var V2_ANNOUNCEMENT_ARTICLE_LINK = `${BLOG_WEBSITE_LINK}post/autopilot-guarded-launch-announcement`;
|
|
1904
193
|
var ACCTOKE_DOCS_LINK = "https://docs.tokemak.xyz/toke/acctoke";
|
|
194
|
+
var SAUTO_ANNOUNCEMENT_LINK = `${BLOG_WEBSITE_LINK}post/toke-to-auto-migration-is-now-live`;
|
|
1905
195
|
var V2_TOUR_LINK = "https://www.figma.com/proto/XXveJKkpeZSBpKwCY1yKWD/Diagrams-and-Explainers?page-id=308%3A144&type=design&node-id=310-3938&viewport=895%2C546%2C0.04&scaling=min-zoom&starting-point-node-id=310%3A2153";
|
|
1906
196
|
var HALBORN_LINK = "https://www.halborn.com/";
|
|
1907
197
|
var IMMUNEFI_LINK = "https://immunefi.com/";
|
|
@@ -1920,6 +210,7 @@ var CURVE_LP_LINK = "https://curve.finance/#/ethereum/pools/factory-crypto-55/de
|
|
|
1920
210
|
var CONVEX_STAKE_LINK = "https://curve.convexfinance.com/stake/ethereum/99";
|
|
1921
211
|
var CONVEX_CLAIM_LINK = "https://curve.convexfinance.com/claim";
|
|
1922
212
|
var ANNOUNCEMENT_LINK = "https://blog.tokemak.xyz/post/auto-finance";
|
|
213
|
+
var TOKENS_BASE_LINK = "https://auto.finance/tokens";
|
|
1923
214
|
|
|
1924
215
|
// src/tokemak.ts
|
|
1925
216
|
var TOKEMAK_PROD_REWARDS_URL = "https://auto-rewards-prod-bucket-pool-stats-api-tokemakxyz.s3.amazonaws.com/current.json";
|
|
@@ -1931,9 +222,10 @@ var TOKEMAK_PRICES_STAGING_URL = "https://swaps-pricing.tokemaklabs.com/prices";
|
|
|
1931
222
|
var TOKEMAK_SWAP_QUOTE_URL = "https://swaps-pricing.tokemaklabs.com/swap-quote-v2";
|
|
1932
223
|
var TOKEMAK_GENSTRAT_APRS_API_URL = "https://genstrat-aprs.tokemaklabs.com/api/aprs";
|
|
1933
224
|
var TOKEMAK_DYNAMIC_SWAP_ROUTES_URL = "https://dynamic-swap-routes.tokemaklabs.com";
|
|
225
|
+
var AUTOPOOLS_APR_URL = "https://autopools-api.tokemaklabs.com/api";
|
|
1934
226
|
|
|
1935
227
|
// src/faqs.tsx
|
|
1936
|
-
var import_jsx_runtime =
|
|
228
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
1937
229
|
var LOCK_FAQS = [
|
|
1938
230
|
{
|
|
1939
231
|
question: "What is autoETH?",
|
|
@@ -2021,7 +313,8 @@ var SUPPORTED_TOKE_CHAINS = [
|
|
|
2021
313
|
import_tokenlist.BASE_NETWORK,
|
|
2022
314
|
import_tokenlist.SONIC_NETWORK,
|
|
2023
315
|
import_tokenlist.ARBITRUM_NETWORK,
|
|
2024
|
-
import_tokenlist.PLASMA_NETWORK
|
|
316
|
+
import_tokenlist.PLASMA_NETWORK,
|
|
317
|
+
import_tokenlist.LINEA_NETWORK
|
|
2025
318
|
];
|
|
2026
319
|
|
|
2027
320
|
// src/stoke.ts
|
|
@@ -2056,11 +349,59 @@ var SUPPORTED_DEV_CHAINS = import_config.SUPPORTED_DEV_NETWORKS_IDS.map(
|
|
|
2056
349
|
var SUPPORTED_CHAINS = Array.from(
|
|
2057
350
|
/* @__PURE__ */ new Set([...SUPPORTED_PROD_CHAINS, ...SUPPORTED_DEV_CHAINS])
|
|
2058
351
|
);
|
|
352
|
+
|
|
353
|
+
// src/uniswap.ts
|
|
354
|
+
var UNI_V4_POOL_ID = "0xc41ab7da3d68aee076df71ef0f7a4665abdb8d5a9bc72c17ac86b61fadb89846";
|
|
355
|
+
var MERKL_CREATOR_ADDRESS = "0x123cC4AFA59160C6328C0152cf333343F510e5A3";
|
|
356
|
+
var AUTO_UNI_V4_POOL_URL = "https://app.uniswap.org/explore/pools/ethereum/0xc41ab7da3d68aee076df71ef0f7a4665abdb8d5a9bc72c17ac86b61fadb89846";
|
|
357
|
+
var ETH_AUTO_FEE_TIER = 3e3;
|
|
358
|
+
var MERKL_OPPORTUNITY_ID = "2837890339901340771";
|
|
359
|
+
var UNISWAP_V4_POOL_MANAGER = {
|
|
360
|
+
1: "0x000000000004444c5dc75cB358380D2e3dE08A90",
|
|
361
|
+
// Mainnet
|
|
362
|
+
8453: "0x000000000004444c5dc75cB358380D2e3dE08A90",
|
|
363
|
+
// Base
|
|
364
|
+
42161: "0x000000000004444c5dc75cB358380D2e3dE08A90"
|
|
365
|
+
// Arbitrum
|
|
366
|
+
};
|
|
367
|
+
var UNISWAP_V4_STATE_VIEW = {
|
|
368
|
+
1: "0x7ffe42c4a5deea5b0fec41c94c136cf115597227",
|
|
369
|
+
// Mainnet
|
|
370
|
+
8453: "0x7ffe42c4a5deea5b0fec41c94c136cf115597227",
|
|
371
|
+
// Base (verify this)
|
|
372
|
+
42161: "0x7ffe42c4a5deea5b0fec41c94c136cf115597227"
|
|
373
|
+
// Arbitrum (verify this)
|
|
374
|
+
};
|
|
375
|
+
var UNISWAP_V4_POSITION_MANAGER = {
|
|
376
|
+
1: "0xbD216513d74C8cf14cf4747E6AaA6420FF64ee9e",
|
|
377
|
+
// Mainnet
|
|
378
|
+
8453: "0xbD216513d74C8cf14cf4747E6AaA6420FF64ee9e",
|
|
379
|
+
// Base
|
|
380
|
+
42161: "0xbD216513d74C8cf14cf4747E6AaA6420FF64ee9e"
|
|
381
|
+
// Arbitrum
|
|
382
|
+
};
|
|
383
|
+
var ETH_AUTO_V4_POOL_ID = "0xc41ab7da3d68aee076df71ef0f7a4665abdb8d5a9bc72c17ac86b61fadb89846";
|
|
384
|
+
var DEFILLAMA_YIELDS_API = "https://yields.llama.fi/pools";
|
|
385
|
+
var GRAPH_API_KEY = "fb6d69844db4795507676c9b6d495b14";
|
|
386
|
+
|
|
387
|
+
// src/sauto.ts
|
|
388
|
+
var SAUTO_PINNED_LOCK_CYCLE = 4241;
|
|
389
|
+
var SAUTO_PINNED_LOCK_CYCLE_DATE = Date.parse(
|
|
390
|
+
"3 Feb 2026 20:30:00 GMT"
|
|
391
|
+
);
|
|
392
|
+
var SAUTO_LOCK_CYCLE_RENEWAL = "Tuesdays at 20:30:00 GMT";
|
|
393
|
+
|
|
394
|
+
// src/swaps.ts
|
|
395
|
+
var LIQUIDATION_PROBE_AMOUNT = 100n;
|
|
396
|
+
var DYNAMIC_SWAP_DEFAULT_SLIPPAGE_BPS = 2e3;
|
|
397
|
+
var SIMULATION_PLACEHOLDER_ADDRESS = "0x8b4334d4812c530574bd4f2763fcd22de94a969b";
|
|
2059
398
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2060
399
|
0 && (module.exports = {
|
|
2061
400
|
ACCTOKE_DOCS_LINK,
|
|
2062
401
|
ANNOUNCEMENT_LINK,
|
|
2063
402
|
AUDITS_LINK,
|
|
403
|
+
AUTOPOOLS_APR_URL,
|
|
404
|
+
AUTO_UNI_V4_POOL_URL,
|
|
2064
405
|
BASESCAN_LINK,
|
|
2065
406
|
BASE_GAS_COSTS_FALLBACK,
|
|
2066
407
|
BLOG_WEBSITE_LINK,
|
|
@@ -2074,23 +415,40 @@ var SUPPORTED_CHAINS = Array.from(
|
|
|
2074
415
|
CURVE_API_URL,
|
|
2075
416
|
CURVE_LP_LINK,
|
|
2076
417
|
CURVE_POOL_LINK,
|
|
418
|
+
DAYS_PER_YEAR,
|
|
419
|
+
DEAD_ADDRESS,
|
|
420
|
+
DEFILLAMA_YIELDS_API,
|
|
2077
421
|
DISCORD_LINK,
|
|
422
|
+
DYNAMIC_SWAP_DEFAULT_SLIPPAGE_BPS,
|
|
2078
423
|
ETHERSCAN_LINK,
|
|
424
|
+
ETH_AUTO_FEE_TIER,
|
|
425
|
+
ETH_AUTO_V4_POOL_ID,
|
|
2079
426
|
GITBOOK_LINK_V1,
|
|
2080
427
|
GITBOOK_LINK_V2,
|
|
2081
428
|
GITHUB_LINK,
|
|
2082
429
|
GOVERNANCE_LINK,
|
|
430
|
+
GRAPH_API_KEY,
|
|
2083
431
|
HALBORN_LINK,
|
|
2084
432
|
HEXENS_LINK,
|
|
2085
433
|
IMMUNEFI_LINK,
|
|
2086
434
|
INCH_SWAP_LINK,
|
|
435
|
+
LEGACY_APP_LINK,
|
|
436
|
+
LIQUIDATION_PROBE_AMOUNT,
|
|
2087
437
|
LLAMASWAP_LINK,
|
|
2088
438
|
LOCK_FAQS,
|
|
2089
439
|
MAX_STOKE_MONTHS,
|
|
2090
440
|
MEDIUM_LINK,
|
|
441
|
+
MERKL_CREATOR_ADDRESS,
|
|
442
|
+
MERKL_OPPORTUNITY_ID,
|
|
2091
443
|
MIN_STOKE_MONTHS,
|
|
444
|
+
NEW_AUTOPOOL_THRESHOLD_DAYS,
|
|
2092
445
|
RADIO_LINK,
|
|
446
|
+
SAUTO_ANNOUNCEMENT_LINK,
|
|
447
|
+
SAUTO_LOCK_CYCLE_RENEWAL,
|
|
448
|
+
SAUTO_PINNED_LOCK_CYCLE,
|
|
449
|
+
SAUTO_PINNED_LOCK_CYCLE_DATE,
|
|
2093
450
|
SHERLOCK_LINK,
|
|
451
|
+
SIMULATION_PLACEHOLDER_ADDRESS,
|
|
2094
452
|
SPLASH_WEBSITE_LINK,
|
|
2095
453
|
SUPPORTED_CHAINS,
|
|
2096
454
|
SUPPORTED_DEV_CHAINS,
|
|
@@ -2119,60 +477,20 @@ var SUPPORTED_CHAINS = Array.from(
|
|
|
2119
477
|
TOKEMAK_SWAP_PRICING_URL,
|
|
2120
478
|
TOKEMAK_SWAP_QUOTE_URL,
|
|
2121
479
|
TOKEMERCH_LINK,
|
|
480
|
+
TOKENS_BASE_LINK,
|
|
2122
481
|
TOKE_CURVE_POOL_ID,
|
|
2123
482
|
TOOLTIPS,
|
|
2124
483
|
TWITTER_LINK,
|
|
484
|
+
UNISWAP_V4_POOL_MANAGER,
|
|
485
|
+
UNISWAP_V4_POSITION_MANAGER,
|
|
486
|
+
UNISWAP_V4_STATE_VIEW,
|
|
487
|
+
UNI_V4_POOL_ID,
|
|
2125
488
|
V1_APP_LINK,
|
|
2126
489
|
V1_SPLASH_LINK,
|
|
2127
490
|
V2_ANNOUNCEMENT_ARTICLE_LINK,
|
|
2128
491
|
V2_APP_LINK,
|
|
2129
492
|
V2_MARKETPLACE_LINK,
|
|
2130
493
|
V2_TOUR_LINK,
|
|
494
|
+
ZERO_ADDRESS,
|
|
2131
495
|
layerzeroScan
|
|
2132
496
|
});
|
|
2133
|
-
/*! Bundled license information:
|
|
2134
|
-
|
|
2135
|
-
react/cjs/react-jsx-runtime.production.js:
|
|
2136
|
-
(**
|
|
2137
|
-
* @license React
|
|
2138
|
-
* react-jsx-runtime.production.js
|
|
2139
|
-
*
|
|
2140
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2141
|
-
*
|
|
2142
|
-
* This source code is licensed under the MIT license found in the
|
|
2143
|
-
* LICENSE file in the root directory of this source tree.
|
|
2144
|
-
*)
|
|
2145
|
-
|
|
2146
|
-
react/cjs/react.production.js:
|
|
2147
|
-
(**
|
|
2148
|
-
* @license React
|
|
2149
|
-
* react.production.js
|
|
2150
|
-
*
|
|
2151
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2152
|
-
*
|
|
2153
|
-
* This source code is licensed under the MIT license found in the
|
|
2154
|
-
* LICENSE file in the root directory of this source tree.
|
|
2155
|
-
*)
|
|
2156
|
-
|
|
2157
|
-
react/cjs/react.development.js:
|
|
2158
|
-
(**
|
|
2159
|
-
* @license React
|
|
2160
|
-
* react.development.js
|
|
2161
|
-
*
|
|
2162
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2163
|
-
*
|
|
2164
|
-
* This source code is licensed under the MIT license found in the
|
|
2165
|
-
* LICENSE file in the root directory of this source tree.
|
|
2166
|
-
*)
|
|
2167
|
-
|
|
2168
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
2169
|
-
(**
|
|
2170
|
-
* @license React
|
|
2171
|
-
* react-jsx-runtime.development.js
|
|
2172
|
-
*
|
|
2173
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2174
|
-
*
|
|
2175
|
-
* This source code is licensed under the MIT license found in the
|
|
2176
|
-
* LICENSE file in the root directory of this source tree.
|
|
2177
|
-
*)
|
|
2178
|
-
*/
|