@fctc/interface-logic 1.0.4 → 1.0.6

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.js CHANGED
@@ -5,3095 +5,27 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __getProtoOf = Object.getPrototypeOf;
7
7
  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
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from))
18
- if (!__hasOwnProp.call(to, key) && key !== except)
19
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
- }
21
- return to;
22
- };
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
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
-
33
- // node_modules/react/cjs/react.production.min.js
34
- var require_react_production_min = __commonJS({
35
- "node_modules/react/cjs/react.production.min.js"(exports2) {
36
- "use strict";
37
- var l = Symbol.for("react.element");
38
- var n = Symbol.for("react.portal");
39
- var p = Symbol.for("react.fragment");
40
- var q = Symbol.for("react.strict_mode");
41
- var r = Symbol.for("react.profiler");
42
- var t = Symbol.for("react.provider");
43
- var u = Symbol.for("react.context");
44
- var v = Symbol.for("react.forward_ref");
45
- var w = Symbol.for("react.suspense");
46
- var x = Symbol.for("react.memo");
47
- var y = Symbol.for("react.lazy");
48
- var z = Symbol.iterator;
49
- function A(a) {
50
- if (null === a || "object" !== typeof a) return null;
51
- a = z && a[z] || a["@@iterator"];
52
- return "function" === typeof a ? a : null;
53
- }
54
- var B = { isMounted: function() {
55
- return false;
56
- }, enqueueForceUpdate: function() {
57
- }, enqueueReplaceState: function() {
58
- }, enqueueSetState: function() {
59
- } };
60
- var C = Object.assign;
61
- var D = {};
62
- function E(a, b, e) {
63
- this.props = a;
64
- this.context = b;
65
- this.refs = D;
66
- this.updater = e || B;
67
- }
68
- E.prototype.isReactComponent = {};
69
- E.prototype.setState = function(a, b) {
70
- if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
71
- this.updater.enqueueSetState(this, a, b, "setState");
72
- };
73
- E.prototype.forceUpdate = function(a) {
74
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
75
- };
76
- function F() {
77
- }
78
- F.prototype = E.prototype;
79
- function G(a, b, e) {
80
- this.props = a;
81
- this.context = b;
82
- this.refs = D;
83
- this.updater = e || B;
84
- }
85
- var H = G.prototype = new F();
86
- H.constructor = G;
87
- C(H, E.prototype);
88
- H.isPureReactComponent = true;
89
- var I = Array.isArray;
90
- var J = Object.prototype.hasOwnProperty;
91
- var K = { current: null };
92
- var L = { key: true, ref: true, __self: true, __source: true };
93
- function M(a, b, e) {
94
- var d, c = {}, k = null, h = null;
95
- if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
96
- var g = arguments.length - 2;
97
- if (1 === g) c.children = e;
98
- else if (1 < g) {
99
- for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
100
- c.children = f;
101
- }
102
- if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
103
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
104
- }
105
- function N(a, b) {
106
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
107
- }
108
- function O(a) {
109
- return "object" === typeof a && null !== a && a.$$typeof === l;
110
- }
111
- function escape(a) {
112
- var b = { "=": "=0", ":": "=2" };
113
- return "$" + a.replace(/[=:]/g, function(a2) {
114
- return b[a2];
115
- });
116
- }
117
- var P = /\/+/g;
118
- function Q(a, b) {
119
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
120
- }
121
- function R(a, b, e, d, c) {
122
- var k = typeof a;
123
- if ("undefined" === k || "boolean" === k) a = null;
124
- var h = false;
125
- if (null === a) h = true;
126
- else switch (k) {
127
- case "string":
128
- case "number":
129
- h = true;
130
- break;
131
- case "object":
132
- switch (a.$$typeof) {
133
- case l:
134
- case n:
135
- h = true;
136
- }
137
- }
138
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
139
- return a2;
140
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
141
- h = 0;
142
- d = "" === d ? "." : d + ":";
143
- if (I(a)) for (var g = 0; g < a.length; g++) {
144
- k = a[g];
145
- var f = d + Q(k, g);
146
- h += R(k, b, e, f, c);
147
- }
148
- else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
149
- else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
150
- return h;
151
- }
152
- function S(a, b, e) {
153
- if (null == a) return a;
154
- var d = [], c = 0;
155
- R(a, d, "", "", function(a2) {
156
- return b.call(e, a2, c++);
157
- });
158
- return d;
159
- }
160
- function T(a) {
161
- if (-1 === a._status) {
162
- var b = a._result;
163
- b = b();
164
- b.then(function(b2) {
165
- if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2;
166
- }, function(b2) {
167
- if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2;
168
- });
169
- -1 === a._status && (a._status = 0, a._result = b);
170
- }
171
- if (1 === a._status) return a._result.default;
172
- throw a._result;
173
- }
174
- var U = { current: null };
175
- var V = { transition: null };
176
- var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
177
- exports2.Children = { map: S, forEach: function(a, b, e) {
178
- S(a, function() {
179
- b.apply(this, arguments);
180
- }, e);
181
- }, count: function(a) {
182
- var b = 0;
183
- S(a, function() {
184
- b++;
185
- });
186
- return b;
187
- }, toArray: function(a) {
188
- return S(a, function(a2) {
189
- return a2;
190
- }) || [];
191
- }, only: function(a) {
192
- if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
193
- return a;
194
- } };
195
- exports2.Component = E;
196
- exports2.Fragment = p;
197
- exports2.Profiler = r;
198
- exports2.PureComponent = G;
199
- exports2.StrictMode = q;
200
- exports2.Suspense = w;
201
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
202
- exports2.cloneElement = function(a, b, e) {
203
- if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
204
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
205
- if (null != b) {
206
- void 0 !== b.ref && (k = b.ref, h = K.current);
207
- void 0 !== b.key && (c = "" + b.key);
208
- if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
209
- for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
210
- }
211
- var f = arguments.length - 2;
212
- if (1 === f) d.children = e;
213
- else if (1 < f) {
214
- g = Array(f);
215
- for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
216
- d.children = g;
217
- }
218
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
219
- };
220
- exports2.createContext = function(a) {
221
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
222
- a.Provider = { $$typeof: t, _context: a };
223
- return a.Consumer = a;
224
- };
225
- exports2.createElement = M;
226
- exports2.createFactory = function(a) {
227
- var b = M.bind(null, a);
228
- b.type = a;
229
- return b;
230
- };
231
- exports2.createRef = function() {
232
- return { current: null };
233
- };
234
- exports2.forwardRef = function(a) {
235
- return { $$typeof: v, render: a };
236
- };
237
- exports2.isValidElement = O;
238
- exports2.lazy = function(a) {
239
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
240
- };
241
- exports2.memo = function(a, b) {
242
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
243
- };
244
- exports2.startTransition = function(a) {
245
- var b = V.transition;
246
- V.transition = {};
247
- try {
248
- a();
249
- } finally {
250
- V.transition = b;
251
- }
252
- };
253
- exports2.unstable_act = function() {
254
- throw Error("act(...) is not supported in production builds of React.");
255
- };
256
- exports2.useCallback = function(a, b) {
257
- return U.current.useCallback(a, b);
258
- };
259
- exports2.useContext = function(a) {
260
- return U.current.useContext(a);
261
- };
262
- exports2.useDebugValue = function() {
263
- };
264
- exports2.useDeferredValue = function(a) {
265
- return U.current.useDeferredValue(a);
266
- };
267
- exports2.useEffect = function(a, b) {
268
- return U.current.useEffect(a, b);
269
- };
270
- exports2.useId = function() {
271
- return U.current.useId();
272
- };
273
- exports2.useImperativeHandle = function(a, b, e) {
274
- return U.current.useImperativeHandle(a, b, e);
275
- };
276
- exports2.useInsertionEffect = function(a, b) {
277
- return U.current.useInsertionEffect(a, b);
278
- };
279
- exports2.useLayoutEffect = function(a, b) {
280
- return U.current.useLayoutEffect(a, b);
281
- };
282
- exports2.useMemo = function(a, b) {
283
- return U.current.useMemo(a, b);
284
- };
285
- exports2.useReducer = function(a, b, e) {
286
- return U.current.useReducer(a, b, e);
287
- };
288
- exports2.useRef = function(a) {
289
- return U.current.useRef(a);
290
- };
291
- exports2.useState = function(a) {
292
- return U.current.useState(a);
293
- };
294
- exports2.useSyncExternalStore = function(a, b, e) {
295
- return U.current.useSyncExternalStore(a, b, e);
296
- };
297
- exports2.useTransition = function() {
298
- return U.current.useTransition();
299
- };
300
- exports2.version = "18.0.0-fc46dba67-20220329";
301
- }
302
- });
303
-
304
- // node_modules/react/cjs/react.development.js
305
- var require_react_development = __commonJS({
306
- "node_modules/react/cjs/react.development.js"(exports2, module2) {
307
- "use strict";
308
- if (process.env.NODE_ENV !== "production") {
309
- (function() {
310
- "use strict";
311
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
312
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
313
- }
314
- var ReactVersion = "18.0.0-fc46dba67-20220329";
315
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
316
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
317
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
318
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
319
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
320
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
321
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
322
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
323
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
324
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
325
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
326
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
327
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
328
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
329
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
330
- function getIteratorFn(maybeIterable) {
331
- if (maybeIterable === null || typeof maybeIterable !== "object") {
332
- return null;
333
- }
334
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
335
- if (typeof maybeIterator === "function") {
336
- return maybeIterator;
337
- }
338
- return null;
339
- }
340
- var ReactCurrentDispatcher = {
341
- /**
342
- * @internal
343
- * @type {ReactComponent}
344
- */
345
- current: null
346
- };
347
- var ReactCurrentBatchConfig = {
348
- transition: null
349
- };
350
- var ReactCurrentActQueue = {
351
- current: null,
352
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
353
- isBatchingLegacy: false,
354
- didScheduleLegacyUpdate: false
355
- };
356
- var ReactCurrentOwner = {
357
- /**
358
- * @internal
359
- * @type {ReactComponent}
360
- */
361
- current: null
362
- };
363
- var ReactDebugCurrentFrame = {};
364
- var currentExtraStackFrame = null;
365
- function setExtraStackFrame(stack) {
366
- {
367
- currentExtraStackFrame = stack;
368
- }
369
- }
370
- {
371
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
372
- {
373
- currentExtraStackFrame = stack;
374
- }
375
- };
376
- ReactDebugCurrentFrame.getCurrentStack = null;
377
- ReactDebugCurrentFrame.getStackAddendum = function() {
378
- var stack = "";
379
- if (currentExtraStackFrame) {
380
- stack += currentExtraStackFrame;
381
- }
382
- var impl = ReactDebugCurrentFrame.getCurrentStack;
383
- if (impl) {
384
- stack += impl() || "";
385
- }
386
- return stack;
387
- };
388
- }
389
- var enableScopeAPI = false;
390
- var enableCacheElement = false;
391
- var enableTransitionTracing = false;
392
- var enableLegacyHidden = false;
393
- var enableDebugTracing = false;
394
- var ReactSharedInternals = {
395
- ReactCurrentDispatcher,
396
- ReactCurrentBatchConfig,
397
- ReactCurrentOwner
398
- };
399
- {
400
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
401
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
402
- }
403
- function warn(format) {
404
- {
405
- {
406
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
407
- args[_key - 1] = arguments[_key];
408
- }
409
- printWarning("warn", format, args);
410
- }
411
- }
412
- }
413
- function error(format) {
414
- {
415
- {
416
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
417
- args[_key2 - 1] = arguments[_key2];
418
- }
419
- printWarning("error", format, args);
420
- }
421
- }
422
- }
423
- function printWarning(level, format, args) {
424
- {
425
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
426
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
427
- if (stack !== "") {
428
- format += "%s";
429
- args = args.concat([stack]);
430
- }
431
- var argsWithFormat = args.map(function(item) {
432
- return String(item);
433
- });
434
- argsWithFormat.unshift("Warning: " + format);
435
- Function.prototype.apply.call(console[level], console, argsWithFormat);
436
- }
437
- }
438
- var didWarnStateUpdateForUnmountedComponent = {};
439
- function warnNoop(publicInstance, callerName) {
440
- {
441
- var _constructor = publicInstance.constructor;
442
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
443
- var warningKey = componentName + "." + callerName;
444
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
445
- return;
446
- }
447
- error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
448
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
449
- }
450
- }
451
- var ReactNoopUpdateQueue = {
452
- /**
453
- * Checks whether or not this composite component is mounted.
454
- * @param {ReactClass} publicInstance The instance we want to test.
455
- * @return {boolean} True if mounted, false otherwise.
456
- * @protected
457
- * @final
458
- */
459
- isMounted: function(publicInstance) {
460
- return false;
461
- },
462
- /**
463
- * Forces an update. This should only be invoked when it is known with
464
- * certainty that we are **not** in a DOM transaction.
465
- *
466
- * You may want to call this when you know that some deeper aspect of the
467
- * component's state has changed but `setState` was not called.
468
- *
469
- * This will not invoke `shouldComponentUpdate`, but it will invoke
470
- * `componentWillUpdate` and `componentDidUpdate`.
471
- *
472
- * @param {ReactClass} publicInstance The instance that should rerender.
473
- * @param {?function} callback Called after component is updated.
474
- * @param {?string} callerName name of the calling function in the public API.
475
- * @internal
476
- */
477
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
478
- warnNoop(publicInstance, "forceUpdate");
479
- },
480
- /**
481
- * Replaces all of the state. Always use this or `setState` to mutate state.
482
- * You should treat `this.state` as immutable.
483
- *
484
- * There is no guarantee that `this.state` will be immediately updated, so
485
- * accessing `this.state` after calling this method may return the old value.
486
- *
487
- * @param {ReactClass} publicInstance The instance that should rerender.
488
- * @param {object} completeState Next state.
489
- * @param {?function} callback Called after component is updated.
490
- * @param {?string} callerName name of the calling function in the public API.
491
- * @internal
492
- */
493
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
494
- warnNoop(publicInstance, "replaceState");
495
- },
496
- /**
497
- * Sets a subset of the state. This only exists because _pendingState is
498
- * internal. This provides a merging strategy that is not available to deep
499
- * properties which is confusing. TODO: Expose pendingState or don't use it
500
- * during the merge.
501
- *
502
- * @param {ReactClass} publicInstance The instance that should rerender.
503
- * @param {object} partialState Next partial state to be merged with state.
504
- * @param {?function} callback Called after component is updated.
505
- * @param {?string} Name of the calling function in the public API.
506
- * @internal
507
- */
508
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
509
- warnNoop(publicInstance, "setState");
510
- }
511
- };
512
- var assign = Object.assign;
513
- var emptyObject = {};
514
- {
515
- Object.freeze(emptyObject);
516
- }
517
- function Component(props, context, updater) {
518
- this.props = props;
519
- this.context = context;
520
- this.refs = emptyObject;
521
- this.updater = updater || ReactNoopUpdateQueue;
522
- }
523
- Component.prototype.isReactComponent = {};
524
- Component.prototype.setState = function(partialState, callback) {
525
- if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
526
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
527
- }
528
- this.updater.enqueueSetState(this, partialState, callback, "setState");
529
- };
530
- Component.prototype.forceUpdate = function(callback) {
531
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
532
- };
533
- {
534
- var deprecatedAPIs = {
535
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
536
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
537
- };
538
- var defineDeprecationWarning = function(methodName, info) {
539
- Object.defineProperty(Component.prototype, methodName, {
540
- get: function() {
541
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
542
- return void 0;
543
- }
544
- });
545
- };
546
- for (var fnName in deprecatedAPIs) {
547
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
548
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
549
- }
550
- }
551
- }
552
- function ComponentDummy() {
553
- }
554
- ComponentDummy.prototype = Component.prototype;
555
- function PureComponent(props, context, updater) {
556
- this.props = props;
557
- this.context = context;
558
- this.refs = emptyObject;
559
- this.updater = updater || ReactNoopUpdateQueue;
560
- }
561
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
562
- pureComponentPrototype.constructor = PureComponent;
563
- assign(pureComponentPrototype, Component.prototype);
564
- pureComponentPrototype.isPureReactComponent = true;
565
- function createRef() {
566
- var refObject = {
567
- current: null
568
- };
569
- {
570
- Object.seal(refObject);
571
- }
572
- return refObject;
573
- }
574
- var isArrayImpl = Array.isArray;
575
- function isArray(a) {
576
- return isArrayImpl(a);
577
- }
578
- function typeName(value) {
579
- {
580
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
581
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
582
- return type;
583
- }
584
- }
585
- function willCoercionThrow(value) {
586
- {
587
- try {
588
- testStringCoercion(value);
589
- return false;
590
- } catch (e) {
591
- return true;
592
- }
593
- }
594
- }
595
- function testStringCoercion(value) {
596
- return "" + value;
597
- }
598
- function checkKeyStringCoercion(value) {
599
- {
600
- if (willCoercionThrow(value)) {
601
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
602
- return testStringCoercion(value);
603
- }
604
- }
605
- }
606
- function getWrappedName(outerType, innerType, wrapperName) {
607
- var displayName = outerType.displayName;
608
- if (displayName) {
609
- return displayName;
610
- }
611
- var functionName = innerType.displayName || innerType.name || "";
612
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
613
- }
614
- function getContextName(type) {
615
- return type.displayName || "Context";
616
- }
617
- function getComponentNameFromType(type) {
618
- if (type == null) {
619
- return null;
620
- }
621
- {
622
- if (typeof type.tag === "number") {
623
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
624
- }
625
- }
626
- if (typeof type === "function") {
627
- return type.displayName || type.name || null;
628
- }
629
- if (typeof type === "string") {
630
- return type;
631
- }
632
- switch (type) {
633
- case REACT_FRAGMENT_TYPE:
634
- return "Fragment";
635
- case REACT_PORTAL_TYPE:
636
- return "Portal";
637
- case REACT_PROFILER_TYPE:
638
- return "Profiler";
639
- case REACT_STRICT_MODE_TYPE:
640
- return "StrictMode";
641
- case REACT_SUSPENSE_TYPE:
642
- return "Suspense";
643
- case REACT_SUSPENSE_LIST_TYPE:
644
- return "SuspenseList";
645
- }
646
- if (typeof type === "object") {
647
- switch (type.$$typeof) {
648
- case REACT_CONTEXT_TYPE:
649
- var context = type;
650
- return getContextName(context) + ".Consumer";
651
- case REACT_PROVIDER_TYPE:
652
- var provider = type;
653
- return getContextName(provider._context) + ".Provider";
654
- case REACT_FORWARD_REF_TYPE:
655
- return getWrappedName(type, type.render, "ForwardRef");
656
- case REACT_MEMO_TYPE:
657
- var outerName = type.displayName || null;
658
- if (outerName !== null) {
659
- return outerName;
660
- }
661
- return getComponentNameFromType(type.type) || "Memo";
662
- case REACT_LAZY_TYPE: {
663
- var lazyComponent = type;
664
- var payload = lazyComponent._payload;
665
- var init = lazyComponent._init;
666
- try {
667
- return getComponentNameFromType(init(payload));
668
- } catch (x) {
669
- return null;
670
- }
671
- }
672
- }
673
- }
674
- return null;
675
- }
676
- var hasOwnProperty = Object.prototype.hasOwnProperty;
677
- var RESERVED_PROPS = {
678
- key: true,
679
- ref: true,
680
- __self: true,
681
- __source: true
682
- };
683
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
684
- {
685
- didWarnAboutStringRefs = {};
686
- }
687
- function hasValidRef(config) {
688
- {
689
- if (hasOwnProperty.call(config, "ref")) {
690
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
691
- if (getter && getter.isReactWarning) {
692
- return false;
693
- }
694
- }
695
- }
696
- return config.ref !== void 0;
697
- }
698
- function hasValidKey(config) {
699
- {
700
- if (hasOwnProperty.call(config, "key")) {
701
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
702
- if (getter && getter.isReactWarning) {
703
- return false;
704
- }
705
- }
706
- }
707
- return config.key !== void 0;
708
- }
709
- function defineKeyPropWarningGetter(props, displayName) {
710
- var warnAboutAccessingKey = function() {
711
- {
712
- if (!specialPropKeyWarningShown) {
713
- specialPropKeyWarningShown = true;
714
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
715
- }
716
- }
717
- };
718
- warnAboutAccessingKey.isReactWarning = true;
719
- Object.defineProperty(props, "key", {
720
- get: warnAboutAccessingKey,
721
- configurable: true
722
- });
723
- }
724
- function defineRefPropWarningGetter(props, displayName) {
725
- var warnAboutAccessingRef = function() {
726
- {
727
- if (!specialPropRefWarningShown) {
728
- specialPropRefWarningShown = true;
729
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
730
- }
731
- }
732
- };
733
- warnAboutAccessingRef.isReactWarning = true;
734
- Object.defineProperty(props, "ref", {
735
- get: warnAboutAccessingRef,
736
- configurable: true
737
- });
738
- }
739
- function warnIfStringRefCannotBeAutoConverted(config) {
740
- {
741
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
742
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
743
- if (!didWarnAboutStringRefs[componentName]) {
744
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
745
- didWarnAboutStringRefs[componentName] = true;
746
- }
747
- }
748
- }
749
- }
750
- var ReactElement = function(type, key, ref, self, source, owner, props) {
751
- var element = {
752
- // This tag allows us to uniquely identify this as a React Element
753
- $$typeof: REACT_ELEMENT_TYPE,
754
- // Built-in properties that belong on the element
755
- type,
756
- key,
757
- ref,
758
- props,
759
- // Record the component responsible for creating this element.
760
- _owner: owner
761
- };
762
- {
763
- element._store = {};
764
- Object.defineProperty(element._store, "validated", {
765
- configurable: false,
766
- enumerable: false,
767
- writable: true,
768
- value: false
769
- });
770
- Object.defineProperty(element, "_self", {
771
- configurable: false,
772
- enumerable: false,
773
- writable: false,
774
- value: self
775
- });
776
- Object.defineProperty(element, "_source", {
777
- configurable: false,
778
- enumerable: false,
779
- writable: false,
780
- value: source
781
- });
782
- if (Object.freeze) {
783
- Object.freeze(element.props);
784
- Object.freeze(element);
785
- }
786
- }
787
- return element;
788
- };
789
- function createElement(type, config, children) {
790
- var propName;
791
- var props = {};
792
- var key = null;
793
- var ref = null;
794
- var self = null;
795
- var source = null;
796
- if (config != null) {
797
- if (hasValidRef(config)) {
798
- ref = config.ref;
799
- {
800
- warnIfStringRefCannotBeAutoConverted(config);
801
- }
802
- }
803
- if (hasValidKey(config)) {
804
- {
805
- checkKeyStringCoercion(config.key);
806
- }
807
- key = "" + config.key;
808
- }
809
- self = config.__self === void 0 ? null : config.__self;
810
- source = config.__source === void 0 ? null : config.__source;
811
- for (propName in config) {
812
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
813
- props[propName] = config[propName];
814
- }
815
- }
816
- }
817
- var childrenLength = arguments.length - 2;
818
- if (childrenLength === 1) {
819
- props.children = children;
820
- } else if (childrenLength > 1) {
821
- var childArray = Array(childrenLength);
822
- for (var i = 0; i < childrenLength; i++) {
823
- childArray[i] = arguments[i + 2];
824
- }
825
- {
826
- if (Object.freeze) {
827
- Object.freeze(childArray);
828
- }
829
- }
830
- props.children = childArray;
831
- }
832
- if (type && type.defaultProps) {
833
- var defaultProps = type.defaultProps;
834
- for (propName in defaultProps) {
835
- if (props[propName] === void 0) {
836
- props[propName] = defaultProps[propName];
837
- }
838
- }
839
- }
840
- {
841
- if (key || ref) {
842
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
843
- if (key) {
844
- defineKeyPropWarningGetter(props, displayName);
845
- }
846
- if (ref) {
847
- defineRefPropWarningGetter(props, displayName);
848
- }
849
- }
850
- }
851
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
852
- }
853
- function cloneAndReplaceKey(oldElement, newKey) {
854
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
855
- return newElement;
856
- }
857
- function cloneElement(element, config, children) {
858
- if (element === null || element === void 0) {
859
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
860
- }
861
- var propName;
862
- var props = assign({}, element.props);
863
- var key = element.key;
864
- var ref = element.ref;
865
- var self = element._self;
866
- var source = element._source;
867
- var owner = element._owner;
868
- if (config != null) {
869
- if (hasValidRef(config)) {
870
- ref = config.ref;
871
- owner = ReactCurrentOwner.current;
872
- }
873
- if (hasValidKey(config)) {
874
- {
875
- checkKeyStringCoercion(config.key);
876
- }
877
- key = "" + config.key;
878
- }
879
- var defaultProps;
880
- if (element.type && element.type.defaultProps) {
881
- defaultProps = element.type.defaultProps;
882
- }
883
- for (propName in config) {
884
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
885
- if (config[propName] === void 0 && defaultProps !== void 0) {
886
- props[propName] = defaultProps[propName];
887
- } else {
888
- props[propName] = config[propName];
889
- }
890
- }
891
- }
892
- }
893
- var childrenLength = arguments.length - 2;
894
- if (childrenLength === 1) {
895
- props.children = children;
896
- } else if (childrenLength > 1) {
897
- var childArray = Array(childrenLength);
898
- for (var i = 0; i < childrenLength; i++) {
899
- childArray[i] = arguments[i + 2];
900
- }
901
- props.children = childArray;
902
- }
903
- return ReactElement(element.type, key, ref, self, source, owner, props);
904
- }
905
- function isValidElement(object) {
906
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
907
- }
908
- var SEPARATOR = ".";
909
- var SUBSEPARATOR = ":";
910
- function escape(key) {
911
- var escapeRegex = /[=:]/g;
912
- var escaperLookup = {
913
- "=": "=0",
914
- ":": "=2"
915
- };
916
- var escapedString = key.replace(escapeRegex, function(match) {
917
- return escaperLookup[match];
918
- });
919
- return "$" + escapedString;
920
- }
921
- var didWarnAboutMaps = false;
922
- var userProvidedKeyEscapeRegex = /\/+/g;
923
- function escapeUserProvidedKey(text) {
924
- return text.replace(userProvidedKeyEscapeRegex, "$&/");
925
- }
926
- function getElementKey(element, index) {
927
- if (typeof element === "object" && element !== null && element.key != null) {
928
- {
929
- checkKeyStringCoercion(element.key);
930
- }
931
- return escape("" + element.key);
932
- }
933
- return index.toString(36);
934
- }
935
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
936
- var type = typeof children;
937
- if (type === "undefined" || type === "boolean") {
938
- children = null;
939
- }
940
- var invokeCallback = false;
941
- if (children === null) {
942
- invokeCallback = true;
943
- } else {
944
- switch (type) {
945
- case "string":
946
- case "number":
947
- invokeCallback = true;
948
- break;
949
- case "object":
950
- switch (children.$$typeof) {
951
- case REACT_ELEMENT_TYPE:
952
- case REACT_PORTAL_TYPE:
953
- invokeCallback = true;
954
- }
955
- }
956
- }
957
- if (invokeCallback) {
958
- var _child = children;
959
- var mappedChild = callback(_child);
960
- var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
961
- if (isArray(mappedChild)) {
962
- var escapedChildKey = "";
963
- if (childKey != null) {
964
- escapedChildKey = escapeUserProvidedKey(childKey) + "/";
965
- }
966
- mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
967
- return c;
968
- });
969
- } else if (mappedChild != null) {
970
- if (isValidElement(mappedChild)) {
971
- {
972
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
973
- checkKeyStringCoercion(mappedChild.key);
974
- }
975
- }
976
- mappedChild = cloneAndReplaceKey(
977
- mappedChild,
978
- // Keep both the (mapped) and old keys if they differ, just as
979
- // traverseAllChildren used to do for objects as children
980
- escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
981
- (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
982
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
983
- // eslint-disable-next-line react-internal/safe-string-coercion
984
- escapeUserProvidedKey("" + mappedChild.key) + "/"
985
- ) : "") + childKey
986
- );
987
- }
988
- array.push(mappedChild);
989
- }
990
- return 1;
991
- }
992
- var child;
993
- var nextName;
994
- var subtreeCount = 0;
995
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
996
- if (isArray(children)) {
997
- for (var i = 0; i < children.length; i++) {
998
- child = children[i];
999
- nextName = nextNamePrefix + getElementKey(child, i);
1000
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1001
- }
1002
- } else {
1003
- var iteratorFn = getIteratorFn(children);
1004
- if (typeof iteratorFn === "function") {
1005
- var iterableChildren = children;
1006
- {
1007
- if (iteratorFn === iterableChildren.entries) {
1008
- if (!didWarnAboutMaps) {
1009
- warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1010
- }
1011
- didWarnAboutMaps = true;
1012
- }
1013
- }
1014
- var iterator = iteratorFn.call(iterableChildren);
1015
- var step;
1016
- var ii = 0;
1017
- while (!(step = iterator.next()).done) {
1018
- child = step.value;
1019
- nextName = nextNamePrefix + getElementKey(child, ii++);
1020
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1021
- }
1022
- } else if (type === "object") {
1023
- var childrenString = String(children);
1024
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1025
- }
1026
- }
1027
- return subtreeCount;
1028
- }
1029
- function mapChildren(children, func, context) {
1030
- if (children == null) {
1031
- return children;
1032
- }
1033
- var result = [];
1034
- var count = 0;
1035
- mapIntoArray(children, result, "", "", function(child) {
1036
- return func.call(context, child, count++);
1037
- });
1038
- return result;
1039
- }
1040
- function countChildren(children) {
1041
- var n = 0;
1042
- mapChildren(children, function() {
1043
- n++;
1044
- });
1045
- return n;
1046
- }
1047
- function forEachChildren(children, forEachFunc, forEachContext) {
1048
- mapChildren(children, function() {
1049
- forEachFunc.apply(this, arguments);
1050
- }, forEachContext);
1051
- }
1052
- function toArray(children) {
1053
- return mapChildren(children, function(child) {
1054
- return child;
1055
- }) || [];
1056
- }
1057
- function onlyChild(children) {
1058
- if (!isValidElement(children)) {
1059
- throw new Error("React.Children.only expected to receive a single React element child.");
1060
- }
1061
- return children;
1062
- }
1063
- function createContext(defaultValue) {
1064
- var context = {
1065
- $$typeof: REACT_CONTEXT_TYPE,
1066
- // As a workaround to support multiple concurrent renderers, we categorize
1067
- // some renderers as primary and others as secondary. We only expect
1068
- // there to be two concurrent renderers at most: React Native (primary) and
1069
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1070
- // Secondary renderers store their context values on separate fields.
1071
- _currentValue: defaultValue,
1072
- _currentValue2: defaultValue,
1073
- // Used to track how many concurrent renderers this context currently
1074
- // supports within in a single renderer. Such as parallel server rendering.
1075
- _threadCount: 0,
1076
- // These are circular
1077
- Provider: null,
1078
- Consumer: null,
1079
- // Add these to use same hidden class in VM as ServerContext
1080
- _defaultValue: null,
1081
- _globalName: null
1082
- };
1083
- context.Provider = {
1084
- $$typeof: REACT_PROVIDER_TYPE,
1085
- _context: context
1086
- };
1087
- var hasWarnedAboutUsingNestedContextConsumers = false;
1088
- var hasWarnedAboutUsingConsumerProvider = false;
1089
- var hasWarnedAboutDisplayNameOnConsumer = false;
1090
- {
1091
- var Consumer = {
1092
- $$typeof: REACT_CONTEXT_TYPE,
1093
- _context: context
1094
- };
1095
- Object.defineProperties(Consumer, {
1096
- Provider: {
1097
- get: function() {
1098
- if (!hasWarnedAboutUsingConsumerProvider) {
1099
- hasWarnedAboutUsingConsumerProvider = true;
1100
- error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
1101
- }
1102
- return context.Provider;
1103
- },
1104
- set: function(_Provider) {
1105
- context.Provider = _Provider;
1106
- }
1107
- },
1108
- _currentValue: {
1109
- get: function() {
1110
- return context._currentValue;
1111
- },
1112
- set: function(_currentValue) {
1113
- context._currentValue = _currentValue;
1114
- }
1115
- },
1116
- _currentValue2: {
1117
- get: function() {
1118
- return context._currentValue2;
1119
- },
1120
- set: function(_currentValue2) {
1121
- context._currentValue2 = _currentValue2;
1122
- }
1123
- },
1124
- _threadCount: {
1125
- get: function() {
1126
- return context._threadCount;
1127
- },
1128
- set: function(_threadCount) {
1129
- context._threadCount = _threadCount;
1130
- }
1131
- },
1132
- Consumer: {
1133
- get: function() {
1134
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1135
- hasWarnedAboutUsingNestedContextConsumers = true;
1136
- error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
1137
- }
1138
- return context.Consumer;
1139
- }
1140
- },
1141
- displayName: {
1142
- get: function() {
1143
- return context.displayName;
1144
- },
1145
- set: function(displayName) {
1146
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1147
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1148
- hasWarnedAboutDisplayNameOnConsumer = true;
1149
- }
1150
- }
1151
- }
1152
- });
1153
- context.Consumer = Consumer;
1154
- }
1155
- {
1156
- context._currentRenderer = null;
1157
- context._currentRenderer2 = null;
1158
- }
1159
- return context;
1160
- }
1161
- var Uninitialized = -1;
1162
- var Pending = 0;
1163
- var Resolved = 1;
1164
- var Rejected = 2;
1165
- function lazyInitializer(payload) {
1166
- if (payload._status === Uninitialized) {
1167
- var ctor = payload._result;
1168
- var thenable = ctor();
1169
- thenable.then(function(moduleObject2) {
1170
- if (payload._status === Pending || payload._status === Uninitialized) {
1171
- var resolved = payload;
1172
- resolved._status = Resolved;
1173
- resolved._result = moduleObject2;
1174
- }
1175
- }, function(error2) {
1176
- if (payload._status === Pending || payload._status === Uninitialized) {
1177
- var rejected = payload;
1178
- rejected._status = Rejected;
1179
- rejected._result = error2;
1180
- }
1181
- });
1182
- if (payload._status === Uninitialized) {
1183
- var pending = payload;
1184
- pending._status = Pending;
1185
- pending._result = thenable;
1186
- }
1187
- }
1188
- if (payload._status === Resolved) {
1189
- var moduleObject = payload._result;
1190
- {
1191
- if (moduleObject === void 0) {
1192
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
1193
- }
1194
- }
1195
- {
1196
- if (!("default" in moduleObject)) {
1197
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1198
- }
1199
- }
1200
- return moduleObject.default;
1201
- } else {
1202
- throw payload._result;
1203
- }
1204
- }
1205
- function lazy(ctor) {
1206
- var payload = {
1207
- // We use these fields to store the result.
1208
- _status: Uninitialized,
1209
- _result: ctor
1210
- };
1211
- var lazyType = {
1212
- $$typeof: REACT_LAZY_TYPE,
1213
- _payload: payload,
1214
- _init: lazyInitializer
1215
- };
1216
- {
1217
- var defaultProps;
1218
- var propTypes;
1219
- Object.defineProperties(lazyType, {
1220
- defaultProps: {
1221
- configurable: true,
1222
- get: function() {
1223
- return defaultProps;
1224
- },
1225
- set: function(newDefaultProps) {
1226
- error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1227
- defaultProps = newDefaultProps;
1228
- Object.defineProperty(lazyType, "defaultProps", {
1229
- enumerable: true
1230
- });
1231
- }
1232
- },
1233
- propTypes: {
1234
- configurable: true,
1235
- get: function() {
1236
- return propTypes;
1237
- },
1238
- set: function(newPropTypes) {
1239
- error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1240
- propTypes = newPropTypes;
1241
- Object.defineProperty(lazyType, "propTypes", {
1242
- enumerable: true
1243
- });
1244
- }
1245
- }
1246
- });
1247
- }
1248
- return lazyType;
1249
- }
1250
- function forwardRef(render) {
1251
- {
1252
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1253
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1254
- } else if (typeof render !== "function") {
1255
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1256
- } else {
1257
- if (render.length !== 0 && render.length !== 2) {
1258
- error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1259
- }
1260
- }
1261
- if (render != null) {
1262
- if (render.defaultProps != null || render.propTypes != null) {
1263
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1264
- }
1265
- }
1266
- }
1267
- var elementType = {
1268
- $$typeof: REACT_FORWARD_REF_TYPE,
1269
- render
1270
- };
1271
- {
1272
- var ownName;
1273
- Object.defineProperty(elementType, "displayName", {
1274
- enumerable: false,
1275
- configurable: true,
1276
- get: function() {
1277
- return ownName;
1278
- },
1279
- set: function(name) {
1280
- ownName = name;
1281
- if (!render.name && !render.displayName) {
1282
- render.displayName = name;
1283
- }
1284
- }
1285
- });
1286
- }
1287
- return elementType;
1288
- }
1289
- var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1290
- function isValidElementType(type) {
1291
- if (typeof type === "string" || typeof type === "function") {
1292
- return true;
1293
- }
1294
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1295
- return true;
1296
- }
1297
- if (typeof type === "object" && type !== null) {
1298
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1299
- // types supported by any Flight configuration anywhere since
1300
- // we don't know which Flight build this will end up being used
1301
- // with.
1302
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1303
- return true;
1304
- }
1305
- }
1306
- return false;
1307
- }
1308
- function memo(type, compare) {
1309
- {
1310
- if (!isValidElementType(type)) {
1311
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1312
- }
1313
- }
1314
- var elementType = {
1315
- $$typeof: REACT_MEMO_TYPE,
1316
- type,
1317
- compare: compare === void 0 ? null : compare
1318
- };
1319
- {
1320
- var 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
- if (!type.name && !type.displayName) {
1330
- type.displayName = name;
1331
- }
1332
- }
1333
- });
1334
- }
1335
- return elementType;
1336
- }
1337
- function resolveDispatcher() {
1338
- var dispatcher = ReactCurrentDispatcher.current;
1339
- {
1340
- if (dispatcher === null) {
1341
- error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1342
- }
1343
- }
1344
- return dispatcher;
1345
- }
1346
- function useContext(Context2) {
1347
- var dispatcher = resolveDispatcher();
1348
- {
1349
- if (Context2._context !== void 0) {
1350
- var realContext = Context2._context;
1351
- if (realContext.Consumer === Context2) {
1352
- error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1353
- } else if (realContext.Provider === Context2) {
1354
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1355
- }
1356
- }
1357
- }
1358
- return dispatcher.useContext(Context2);
1359
- }
1360
- function useState2(initialState10) {
1361
- var dispatcher = resolveDispatcher();
1362
- return dispatcher.useState(initialState10);
1363
- }
1364
- function useReducer(reducer, initialArg, init) {
1365
- var dispatcher = resolveDispatcher();
1366
- return dispatcher.useReducer(reducer, initialArg, init);
1367
- }
1368
- function useRef(initialValue) {
1369
- var dispatcher = resolveDispatcher();
1370
- return dispatcher.useRef(initialValue);
1371
- }
1372
- function useEffect2(create, deps) {
1373
- var dispatcher = resolveDispatcher();
1374
- return dispatcher.useEffect(create, deps);
1375
- }
1376
- function useInsertionEffect(create, deps) {
1377
- var dispatcher = resolveDispatcher();
1378
- return dispatcher.useInsertionEffect(create, deps);
1379
- }
1380
- function useLayoutEffect(create, deps) {
1381
- var dispatcher = resolveDispatcher();
1382
- return dispatcher.useLayoutEffect(create, deps);
1383
- }
1384
- function useCallback(callback, deps) {
1385
- var dispatcher = resolveDispatcher();
1386
- return dispatcher.useCallback(callback, deps);
1387
- }
1388
- function useMemo(create, deps) {
1389
- var dispatcher = resolveDispatcher();
1390
- return dispatcher.useMemo(create, deps);
1391
- }
1392
- function useImperativeHandle(ref, create, deps) {
1393
- var dispatcher = resolveDispatcher();
1394
- return dispatcher.useImperativeHandle(ref, create, deps);
1395
- }
1396
- function useDebugValue(value, formatterFn) {
1397
- {
1398
- var dispatcher = resolveDispatcher();
1399
- return dispatcher.useDebugValue(value, formatterFn);
1400
- }
1401
- }
1402
- function useTransition() {
1403
- var dispatcher = resolveDispatcher();
1404
- return dispatcher.useTransition();
1405
- }
1406
- function useDeferredValue(value) {
1407
- var dispatcher = resolveDispatcher();
1408
- return dispatcher.useDeferredValue(value);
1409
- }
1410
- function useId() {
1411
- var dispatcher = resolveDispatcher();
1412
- return dispatcher.useId();
1413
- }
1414
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1415
- var dispatcher = resolveDispatcher();
1416
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1417
- }
1418
- var disabledDepth = 0;
1419
- var prevLog;
1420
- var prevInfo;
1421
- var prevWarn;
1422
- var prevError;
1423
- var prevGroup;
1424
- var prevGroupCollapsed;
1425
- var prevGroupEnd;
1426
- function disabledLog() {
1427
- }
1428
- disabledLog.__reactDisabledLog = true;
1429
- function disableLogs() {
1430
- {
1431
- if (disabledDepth === 0) {
1432
- prevLog = console.log;
1433
- prevInfo = console.info;
1434
- prevWarn = console.warn;
1435
- prevError = console.error;
1436
- prevGroup = console.group;
1437
- prevGroupCollapsed = console.groupCollapsed;
1438
- prevGroupEnd = console.groupEnd;
1439
- var props = {
1440
- configurable: true,
1441
- enumerable: true,
1442
- value: disabledLog,
1443
- writable: true
1444
- };
1445
- Object.defineProperties(console, {
1446
- info: props,
1447
- log: props,
1448
- warn: props,
1449
- error: props,
1450
- group: props,
1451
- groupCollapsed: props,
1452
- groupEnd: props
1453
- });
1454
- }
1455
- disabledDepth++;
1456
- }
1457
- }
1458
- function reenableLogs() {
1459
- {
1460
- disabledDepth--;
1461
- if (disabledDepth === 0) {
1462
- var props = {
1463
- configurable: true,
1464
- enumerable: true,
1465
- writable: true
1466
- };
1467
- Object.defineProperties(console, {
1468
- log: assign({}, props, {
1469
- value: prevLog
1470
- }),
1471
- info: assign({}, props, {
1472
- value: prevInfo
1473
- }),
1474
- warn: assign({}, props, {
1475
- value: prevWarn
1476
- }),
1477
- error: assign({}, props, {
1478
- value: prevError
1479
- }),
1480
- group: assign({}, props, {
1481
- value: prevGroup
1482
- }),
1483
- groupCollapsed: assign({}, props, {
1484
- value: prevGroupCollapsed
1485
- }),
1486
- groupEnd: assign({}, props, {
1487
- value: prevGroupEnd
1488
- })
1489
- });
1490
- }
1491
- if (disabledDepth < 0) {
1492
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1493
- }
1494
- }
1495
- }
1496
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1497
- var prefix;
1498
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1499
- {
1500
- if (prefix === void 0) {
1501
- try {
1502
- throw Error();
1503
- } catch (x) {
1504
- var match = x.stack.trim().match(/\n( *(at )?)/);
1505
- prefix = match && match[1] || "";
1506
- }
1507
- }
1508
- return "\n" + prefix + name;
1509
- }
1510
- }
1511
- var reentry = false;
1512
- var componentFrameCache;
1513
- {
1514
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1515
- componentFrameCache = new PossiblyWeakMap();
1516
- }
1517
- function describeNativeComponentFrame(fn, construct) {
1518
- if (!fn || reentry) {
1519
- return "";
1520
- }
1521
- {
1522
- var frame = componentFrameCache.get(fn);
1523
- if (frame !== void 0) {
1524
- return frame;
1525
- }
1526
- }
1527
- var control;
1528
- reentry = true;
1529
- var previousPrepareStackTrace = Error.prepareStackTrace;
1530
- Error.prepareStackTrace = void 0;
1531
- var previousDispatcher;
1532
- {
1533
- previousDispatcher = ReactCurrentDispatcher$1.current;
1534
- ReactCurrentDispatcher$1.current = null;
1535
- disableLogs();
1536
- }
1537
- try {
1538
- if (construct) {
1539
- var Fake = function() {
1540
- throw Error();
1541
- };
1542
- Object.defineProperty(Fake.prototype, "props", {
1543
- set: function() {
1544
- throw Error();
1545
- }
1546
- });
1547
- if (typeof Reflect === "object" && Reflect.construct) {
1548
- try {
1549
- Reflect.construct(Fake, []);
1550
- } catch (x) {
1551
- control = x;
1552
- }
1553
- Reflect.construct(fn, [], Fake);
1554
- } else {
1555
- try {
1556
- Fake.call();
1557
- } catch (x) {
1558
- control = x;
1559
- }
1560
- fn.call(Fake.prototype);
1561
- }
1562
- } else {
1563
- try {
1564
- throw Error();
1565
- } catch (x) {
1566
- control = x;
1567
- }
1568
- fn();
1569
- }
1570
- } catch (sample) {
1571
- if (sample && control && typeof sample.stack === "string") {
1572
- var sampleLines = sample.stack.split("\n");
1573
- var controlLines = control.stack.split("\n");
1574
- var s = sampleLines.length - 1;
1575
- var c = controlLines.length - 1;
1576
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1577
- c--;
1578
- }
1579
- for (; s >= 1 && c >= 0; s--, c--) {
1580
- if (sampleLines[s] !== controlLines[c]) {
1581
- if (s !== 1 || c !== 1) {
1582
- do {
1583
- s--;
1584
- c--;
1585
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1586
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1587
- if (fn.displayName && _frame.includes("<anonymous>")) {
1588
- _frame = _frame.replace("<anonymous>", fn.displayName);
1589
- }
1590
- {
1591
- if (typeof fn === "function") {
1592
- componentFrameCache.set(fn, _frame);
1593
- }
1594
- }
1595
- return _frame;
1596
- }
1597
- } while (s >= 1 && c >= 0);
1598
- }
1599
- break;
1600
- }
1601
- }
1602
- }
1603
- } finally {
1604
- reentry = false;
1605
- {
1606
- ReactCurrentDispatcher$1.current = previousDispatcher;
1607
- reenableLogs();
1608
- }
1609
- Error.prepareStackTrace = previousPrepareStackTrace;
1610
- }
1611
- var name = fn ? fn.displayName || fn.name : "";
1612
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1613
- {
1614
- if (typeof fn === "function") {
1615
- componentFrameCache.set(fn, syntheticFrame);
1616
- }
1617
- }
1618
- return syntheticFrame;
1619
- }
1620
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1621
- {
1622
- return describeNativeComponentFrame(fn, false);
1623
- }
1624
- }
1625
- function shouldConstruct(Component2) {
1626
- var prototype = Component2.prototype;
1627
- return !!(prototype && prototype.isReactComponent);
1628
- }
1629
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1630
- if (type == null) {
1631
- return "";
1632
- }
1633
- if (typeof type === "function") {
1634
- {
1635
- return describeNativeComponentFrame(type, shouldConstruct(type));
1636
- }
1637
- }
1638
- if (typeof type === "string") {
1639
- return describeBuiltInComponentFrame(type);
1640
- }
1641
- switch (type) {
1642
- case REACT_SUSPENSE_TYPE:
1643
- return describeBuiltInComponentFrame("Suspense");
1644
- case REACT_SUSPENSE_LIST_TYPE:
1645
- return describeBuiltInComponentFrame("SuspenseList");
1646
- }
1647
- if (typeof type === "object") {
1648
- switch (type.$$typeof) {
1649
- case REACT_FORWARD_REF_TYPE:
1650
- return describeFunctionComponentFrame(type.render);
1651
- case REACT_MEMO_TYPE:
1652
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1653
- case REACT_LAZY_TYPE: {
1654
- var lazyComponent = type;
1655
- var payload = lazyComponent._payload;
1656
- var init = lazyComponent._init;
1657
- try {
1658
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1659
- } catch (x) {
1660
- }
1661
- }
1662
- }
1663
- }
1664
- return "";
1665
- }
1666
- var loggedTypeFailures = {};
1667
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1668
- function setCurrentlyValidatingElement(element) {
1669
- {
1670
- if (element) {
1671
- var owner = element._owner;
1672
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1673
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1674
- } else {
1675
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1676
- }
1677
- }
1678
- }
1679
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1680
- {
1681
- var has = Function.call.bind(hasOwnProperty);
1682
- for (var typeSpecName in typeSpecs) {
1683
- if (has(typeSpecs, typeSpecName)) {
1684
- var error$1 = void 0;
1685
- try {
1686
- if (typeof typeSpecs[typeSpecName] !== "function") {
1687
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1688
- err.name = "Invariant Violation";
1689
- throw err;
1690
- }
1691
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1692
- } catch (ex) {
1693
- error$1 = ex;
1694
- }
1695
- if (error$1 && !(error$1 instanceof Error)) {
1696
- setCurrentlyValidatingElement(element);
1697
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1698
- setCurrentlyValidatingElement(null);
1699
- }
1700
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1701
- loggedTypeFailures[error$1.message] = true;
1702
- setCurrentlyValidatingElement(element);
1703
- error("Failed %s type: %s", location, error$1.message);
1704
- setCurrentlyValidatingElement(null);
1705
- }
1706
- }
1707
- }
1708
- }
1709
- }
1710
- function setCurrentlyValidatingElement$1(element) {
1711
- {
1712
- if (element) {
1713
- var owner = element._owner;
1714
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1715
- setExtraStackFrame(stack);
1716
- } else {
1717
- setExtraStackFrame(null);
1718
- }
1719
- }
1720
- }
1721
- var propTypesMisspellWarningShown;
1722
- {
1723
- propTypesMisspellWarningShown = false;
1724
- }
1725
- function getDeclarationErrorAddendum() {
1726
- if (ReactCurrentOwner.current) {
1727
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1728
- if (name) {
1729
- return "\n\nCheck the render method of `" + name + "`.";
1730
- }
1731
- }
1732
- return "";
1733
- }
1734
- function getSourceInfoErrorAddendum(source) {
1735
- if (source !== void 0) {
1736
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1737
- var lineNumber = source.lineNumber;
1738
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1739
- }
1740
- return "";
1741
- }
1742
- function getSourceInfoErrorAddendumForProps(elementProps) {
1743
- if (elementProps !== null && elementProps !== void 0) {
1744
- return getSourceInfoErrorAddendum(elementProps.__source);
1745
- }
1746
- return "";
1747
- }
1748
- var ownerHasKeyUseWarning = {};
1749
- function getCurrentComponentErrorInfo(parentType) {
1750
- var info = getDeclarationErrorAddendum();
1751
- if (!info) {
1752
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1753
- if (parentName) {
1754
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1755
- }
1756
- }
1757
- return info;
1758
- }
1759
- function validateExplicitKey(element, parentType) {
1760
- if (!element._store || element._store.validated || element.key != null) {
1761
- return;
1762
- }
1763
- element._store.validated = true;
1764
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1765
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1766
- return;
1767
- }
1768
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1769
- var childOwner = "";
1770
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1771
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1772
- }
1773
- {
1774
- setCurrentlyValidatingElement$1(element);
1775
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1776
- setCurrentlyValidatingElement$1(null);
1777
- }
1778
- }
1779
- function validateChildKeys(node, parentType) {
1780
- if (typeof node !== "object") {
1781
- return;
1782
- }
1783
- if (isArray(node)) {
1784
- for (var i = 0; i < node.length; i++) {
1785
- var child = node[i];
1786
- if (isValidElement(child)) {
1787
- validateExplicitKey(child, parentType);
1788
- }
1789
- }
1790
- } else if (isValidElement(node)) {
1791
- if (node._store) {
1792
- node._store.validated = true;
1793
- }
1794
- } else if (node) {
1795
- var iteratorFn = getIteratorFn(node);
1796
- if (typeof iteratorFn === "function") {
1797
- if (iteratorFn !== node.entries) {
1798
- var iterator = iteratorFn.call(node);
1799
- var step;
1800
- while (!(step = iterator.next()).done) {
1801
- if (isValidElement(step.value)) {
1802
- validateExplicitKey(step.value, parentType);
1803
- }
1804
- }
1805
- }
1806
- }
1807
- }
1808
- }
1809
- function validatePropTypes(element) {
1810
- {
1811
- var type = element.type;
1812
- if (type === null || type === void 0 || typeof type === "string") {
1813
- return;
1814
- }
1815
- var propTypes;
1816
- if (typeof type === "function") {
1817
- propTypes = type.propTypes;
1818
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1819
- // Inner props are checked in the reconciler.
1820
- type.$$typeof === REACT_MEMO_TYPE)) {
1821
- propTypes = type.propTypes;
1822
- } else {
1823
- return;
1824
- }
1825
- if (propTypes) {
1826
- var name = getComponentNameFromType(type);
1827
- checkPropTypes(propTypes, element.props, "prop", name, element);
1828
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1829
- propTypesMisspellWarningShown = true;
1830
- var _name = getComponentNameFromType(type);
1831
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1832
- }
1833
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1834
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1835
- }
1836
- }
1837
- }
1838
- function validateFragmentProps(fragment) {
1839
- {
1840
- var keys = Object.keys(fragment.props);
1841
- for (var i = 0; i < keys.length; i++) {
1842
- var key = keys[i];
1843
- if (key !== "children" && key !== "key") {
1844
- setCurrentlyValidatingElement$1(fragment);
1845
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1846
- setCurrentlyValidatingElement$1(null);
1847
- break;
1848
- }
1849
- }
1850
- if (fragment.ref !== null) {
1851
- setCurrentlyValidatingElement$1(fragment);
1852
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1853
- setCurrentlyValidatingElement$1(null);
1854
- }
1855
- }
1856
- }
1857
- function createElementWithValidation(type, props, children) {
1858
- var validType = isValidElementType(type);
1859
- if (!validType) {
1860
- var info = "";
1861
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1862
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1863
- }
1864
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1865
- if (sourceInfo) {
1866
- info += sourceInfo;
1867
- } else {
1868
- info += getDeclarationErrorAddendum();
1869
- }
1870
- var typeString;
1871
- if (type === null) {
1872
- typeString = "null";
1873
- } else if (isArray(type)) {
1874
- typeString = "array";
1875
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1876
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1877
- info = " Did you accidentally export a JSX literal instead of a component?";
1878
- } else {
1879
- typeString = typeof type;
1880
- }
1881
- {
1882
- error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1883
- }
1884
- }
1885
- var element = createElement.apply(this, arguments);
1886
- if (element == null) {
1887
- return element;
1888
- }
1889
- if (validType) {
1890
- for (var i = 2; i < arguments.length; i++) {
1891
- validateChildKeys(arguments[i], type);
1892
- }
1893
- }
1894
- if (type === REACT_FRAGMENT_TYPE) {
1895
- validateFragmentProps(element);
1896
- } else {
1897
- validatePropTypes(element);
1898
- }
1899
- return element;
1900
- }
1901
- var didWarnAboutDeprecatedCreateFactory = false;
1902
- function createFactoryWithValidation(type) {
1903
- var validatedFactory = createElementWithValidation.bind(null, type);
1904
- validatedFactory.type = type;
1905
- {
1906
- if (!didWarnAboutDeprecatedCreateFactory) {
1907
- didWarnAboutDeprecatedCreateFactory = true;
1908
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1909
- }
1910
- Object.defineProperty(validatedFactory, "type", {
1911
- enumerable: false,
1912
- get: function() {
1913
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1914
- Object.defineProperty(this, "type", {
1915
- value: type
1916
- });
1917
- return type;
1918
- }
1919
- });
1920
- }
1921
- return validatedFactory;
1922
- }
1923
- function cloneElementWithValidation(element, props, children) {
1924
- var newElement = cloneElement.apply(this, arguments);
1925
- for (var i = 2; i < arguments.length; i++) {
1926
- validateChildKeys(arguments[i], newElement.type);
1927
- }
1928
- validatePropTypes(newElement);
1929
- return newElement;
1930
- }
1931
- function startTransition(scope, options) {
1932
- var prevTransition = ReactCurrentBatchConfig.transition;
1933
- ReactCurrentBatchConfig.transition = {};
1934
- var currentTransition = ReactCurrentBatchConfig.transition;
1935
- {
1936
- ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1937
- }
1938
- try {
1939
- scope();
1940
- } finally {
1941
- ReactCurrentBatchConfig.transition = prevTransition;
1942
- {
1943
- if (prevTransition === null && currentTransition._updatedFibers) {
1944
- var updatedFibersCount = currentTransition._updatedFibers.size;
1945
- if (updatedFibersCount > 10) {
1946
- warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1947
- }
1948
- currentTransition._updatedFibers.clear();
1949
- }
1950
- }
1951
- }
1952
- }
1953
- var didWarnAboutMessageChannel = false;
1954
- var enqueueTaskImpl = null;
1955
- function enqueueTask(task) {
1956
- if (enqueueTaskImpl === null) {
1957
- try {
1958
- var requireString = ("require" + Math.random()).slice(0, 7);
1959
- var nodeRequire = module2 && module2[requireString];
1960
- enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
1961
- } catch (_err) {
1962
- enqueueTaskImpl = function(callback) {
1963
- {
1964
- if (didWarnAboutMessageChannel === false) {
1965
- didWarnAboutMessageChannel = true;
1966
- if (typeof MessageChannel === "undefined") {
1967
- error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
1968
- }
1969
- }
1970
- }
1971
- var channel = new MessageChannel();
1972
- channel.port1.onmessage = callback;
1973
- channel.port2.postMessage(void 0);
1974
- };
1975
- }
1976
- }
1977
- return enqueueTaskImpl(task);
1978
- }
1979
- var actScopeDepth = 0;
1980
- var didWarnNoAwaitAct = false;
1981
- function act(callback) {
1982
- {
1983
- var prevActScopeDepth = actScopeDepth;
1984
- actScopeDepth++;
1985
- if (ReactCurrentActQueue.current === null) {
1986
- ReactCurrentActQueue.current = [];
1987
- }
1988
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
1989
- var result;
1990
- try {
1991
- ReactCurrentActQueue.isBatchingLegacy = true;
1992
- result = callback();
1993
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
1994
- var queue = ReactCurrentActQueue.current;
1995
- if (queue !== null) {
1996
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
1997
- flushActQueue(queue);
1998
- }
1999
- }
2000
- } catch (error2) {
2001
- popActScope(prevActScopeDepth);
2002
- throw error2;
2003
- } finally {
2004
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2005
- }
2006
- if (result !== null && typeof result === "object" && typeof result.then === "function") {
2007
- var thenableResult = result;
2008
- var wasAwaited = false;
2009
- var thenable = {
2010
- then: function(resolve, reject) {
2011
- wasAwaited = true;
2012
- thenableResult.then(function(returnValue2) {
2013
- popActScope(prevActScopeDepth);
2014
- if (actScopeDepth === 0) {
2015
- recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2016
- } else {
2017
- resolve(returnValue2);
2018
- }
2019
- }, function(error2) {
2020
- popActScope(prevActScopeDepth);
2021
- reject(error2);
2022
- });
2023
- }
2024
- };
2025
- {
2026
- if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2027
- Promise.resolve().then(function() {
2028
- }).then(function() {
2029
- if (!wasAwaited) {
2030
- didWarnNoAwaitAct = true;
2031
- error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
2032
- }
2033
- });
2034
- }
2035
- }
2036
- return thenable;
2037
- } else {
2038
- var returnValue = result;
2039
- popActScope(prevActScopeDepth);
2040
- if (actScopeDepth === 0) {
2041
- var _queue = ReactCurrentActQueue.current;
2042
- if (_queue !== null) {
2043
- flushActQueue(_queue);
2044
- ReactCurrentActQueue.current = null;
2045
- }
2046
- var _thenable = {
2047
- then: function(resolve, reject) {
2048
- if (ReactCurrentActQueue.current === null) {
2049
- ReactCurrentActQueue.current = [];
2050
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2051
- } else {
2052
- resolve(returnValue);
2053
- }
2054
- }
2055
- };
2056
- return _thenable;
2057
- } else {
2058
- var _thenable2 = {
2059
- then: function(resolve, reject) {
2060
- resolve(returnValue);
2061
- }
2062
- };
2063
- return _thenable2;
2064
- }
2065
- }
2066
- }
2067
- }
2068
- function popActScope(prevActScopeDepth) {
2069
- {
2070
- if (prevActScopeDepth !== actScopeDepth - 1) {
2071
- error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2072
- }
2073
- actScopeDepth = prevActScopeDepth;
2074
- }
2075
- }
2076
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2077
- {
2078
- var queue = ReactCurrentActQueue.current;
2079
- if (queue !== null) {
2080
- try {
2081
- flushActQueue(queue);
2082
- enqueueTask(function() {
2083
- if (queue.length === 0) {
2084
- ReactCurrentActQueue.current = null;
2085
- resolve(returnValue);
2086
- } else {
2087
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2088
- }
2089
- });
2090
- } catch (error2) {
2091
- reject(error2);
2092
- }
2093
- } else {
2094
- resolve(returnValue);
2095
- }
2096
- }
2097
- }
2098
- var isFlushing = false;
2099
- function flushActQueue(queue) {
2100
- {
2101
- if (!isFlushing) {
2102
- isFlushing = true;
2103
- var i = 0;
2104
- try {
2105
- for (; i < queue.length; i++) {
2106
- var callback = queue[i];
2107
- do {
2108
- callback = callback(true);
2109
- } while (callback !== null);
2110
- }
2111
- queue.length = 0;
2112
- } catch (error2) {
2113
- queue = queue.slice(i + 1);
2114
- throw error2;
2115
- } finally {
2116
- isFlushing = false;
2117
- }
2118
- }
2119
- }
2120
- }
2121
- var createElement$1 = createElementWithValidation;
2122
- var cloneElement$1 = cloneElementWithValidation;
2123
- var createFactory = createFactoryWithValidation;
2124
- var Children = {
2125
- map: mapChildren,
2126
- forEach: forEachChildren,
2127
- count: countChildren,
2128
- toArray,
2129
- only: onlyChild
2130
- };
2131
- exports2.Children = Children;
2132
- exports2.Component = Component;
2133
- exports2.Fragment = REACT_FRAGMENT_TYPE;
2134
- exports2.Profiler = REACT_PROFILER_TYPE;
2135
- exports2.PureComponent = PureComponent;
2136
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
2137
- exports2.Suspense = REACT_SUSPENSE_TYPE;
2138
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2139
- exports2.cloneElement = cloneElement$1;
2140
- exports2.createContext = createContext;
2141
- exports2.createElement = createElement$1;
2142
- exports2.createFactory = createFactory;
2143
- exports2.createRef = createRef;
2144
- exports2.forwardRef = forwardRef;
2145
- exports2.isValidElement = isValidElement;
2146
- exports2.lazy = lazy;
2147
- exports2.memo = memo;
2148
- exports2.startTransition = startTransition;
2149
- exports2.unstable_act = act;
2150
- exports2.useCallback = useCallback;
2151
- exports2.useContext = useContext;
2152
- exports2.useDebugValue = useDebugValue;
2153
- exports2.useDeferredValue = useDeferredValue;
2154
- exports2.useEffect = useEffect2;
2155
- exports2.useId = useId;
2156
- exports2.useImperativeHandle = useImperativeHandle;
2157
- exports2.useInsertionEffect = useInsertionEffect;
2158
- exports2.useLayoutEffect = useLayoutEffect;
2159
- exports2.useMemo = useMemo;
2160
- exports2.useReducer = useReducer;
2161
- exports2.useRef = useRef;
2162
- exports2.useState = useState2;
2163
- exports2.useSyncExternalStore = useSyncExternalStore;
2164
- exports2.useTransition = useTransition;
2165
- exports2.version = ReactVersion;
2166
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2167
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2168
- }
2169
- })();
2170
- }
2171
- }
2172
- });
2173
-
2174
- // node_modules/react/index.js
2175
- var require_react = __commonJS({
2176
- "node_modules/react/index.js"(exports2, module2) {
2177
- "use strict";
2178
- if (process.env.NODE_ENV === "production") {
2179
- module2.exports = require_react_production_min();
2180
- } else {
2181
- module2.exports = require_react_development();
2182
- }
2183
- }
2184
- });
2185
-
2186
- // node_modules/react/cjs/react-jsx-runtime.production.min.js
2187
- var require_react_jsx_runtime_production_min = __commonJS({
2188
- "node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports2) {
2189
- "use strict";
2190
- var f = require_react();
2191
- var k = Symbol.for("react.element");
2192
- var l = Symbol.for("react.fragment");
2193
- var m = Object.prototype.hasOwnProperty;
2194
- var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
2195
- var p = { key: true, ref: true, __self: true, __source: true };
2196
- function q(c, a, g) {
2197
- var b, d = {}, e = null, h = null;
2198
- void 0 !== g && (e = "" + g);
2199
- void 0 !== a.key && (e = "" + a.key);
2200
- void 0 !== a.ref && (h = a.ref);
2201
- for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2202
- if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
2203
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2204
- }
2205
- exports2.Fragment = l;
2206
- exports2.jsx = q;
2207
- exports2.jsxs = q;
2208
- }
2209
- });
2210
-
2211
- // node_modules/react/cjs/react-jsx-runtime.development.js
2212
- var require_react_jsx_runtime_development = __commonJS({
2213
- "node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
2214
- "use strict";
2215
- if (process.env.NODE_ENV !== "production") {
2216
- (function() {
2217
- "use strict";
2218
- var React = require_react();
2219
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2220
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2221
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2222
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2223
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2224
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2225
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2226
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2227
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2228
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2229
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
2230
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2231
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2232
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2233
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
2234
- function getIteratorFn(maybeIterable) {
2235
- if (maybeIterable === null || typeof maybeIterable !== "object") {
2236
- return null;
2237
- }
2238
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2239
- if (typeof maybeIterator === "function") {
2240
- return maybeIterator;
2241
- }
2242
- return null;
2243
- }
2244
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2245
- function error(format) {
2246
- {
2247
- {
2248
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2249
- args[_key2 - 1] = arguments[_key2];
2250
- }
2251
- printWarning("error", format, args);
2252
- }
2253
- }
2254
- }
2255
- function printWarning(level, format, args) {
2256
- {
2257
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2258
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
2259
- if (stack !== "") {
2260
- format += "%s";
2261
- args = args.concat([stack]);
2262
- }
2263
- var argsWithFormat = args.map(function(item) {
2264
- return String(item);
2265
- });
2266
- argsWithFormat.unshift("Warning: " + format);
2267
- Function.prototype.apply.call(console[level], console, argsWithFormat);
2268
- }
2269
- }
2270
- var enableScopeAPI = false;
2271
- var enableCacheElement = false;
2272
- var enableTransitionTracing = false;
2273
- var enableLegacyHidden = false;
2274
- var enableDebugTracing = false;
2275
- var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2276
- function isValidElementType(type) {
2277
- if (typeof type === "string" || typeof type === "function") {
2278
- return true;
2279
- }
2280
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
2281
- return true;
2282
- }
2283
- if (typeof type === "object" && type !== null) {
2284
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2285
- // types supported by any Flight configuration anywhere since
2286
- // we don't know which Flight build this will end up being used
2287
- // with.
2288
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2289
- return true;
2290
- }
2291
- }
2292
- return false;
2293
- }
2294
- function getWrappedName(outerType, innerType, wrapperName) {
2295
- var displayName = outerType.displayName;
2296
- if (displayName) {
2297
- return displayName;
2298
- }
2299
- var functionName = innerType.displayName || innerType.name || "";
2300
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2301
- }
2302
- function getContextName(type) {
2303
- return type.displayName || "Context";
2304
- }
2305
- function getComponentNameFromType(type) {
2306
- if (type == null) {
2307
- return null;
2308
- }
2309
- {
2310
- if (typeof type.tag === "number") {
2311
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2312
- }
2313
- }
2314
- if (typeof type === "function") {
2315
- return type.displayName || type.name || null;
2316
- }
2317
- if (typeof type === "string") {
2318
- return type;
2319
- }
2320
- switch (type) {
2321
- case REACT_FRAGMENT_TYPE:
2322
- return "Fragment";
2323
- case REACT_PORTAL_TYPE:
2324
- return "Portal";
2325
- case REACT_PROFILER_TYPE:
2326
- return "Profiler";
2327
- case REACT_STRICT_MODE_TYPE:
2328
- return "StrictMode";
2329
- case REACT_SUSPENSE_TYPE:
2330
- return "Suspense";
2331
- case REACT_SUSPENSE_LIST_TYPE:
2332
- return "SuspenseList";
2333
- }
2334
- if (typeof type === "object") {
2335
- switch (type.$$typeof) {
2336
- case REACT_CONTEXT_TYPE:
2337
- var context = type;
2338
- return getContextName(context) + ".Consumer";
2339
- case REACT_PROVIDER_TYPE:
2340
- var provider = type;
2341
- return getContextName(provider._context) + ".Provider";
2342
- case REACT_FORWARD_REF_TYPE:
2343
- return getWrappedName(type, type.render, "ForwardRef");
2344
- case REACT_MEMO_TYPE:
2345
- var outerName = type.displayName || null;
2346
- if (outerName !== null) {
2347
- return outerName;
2348
- }
2349
- return getComponentNameFromType(type.type) || "Memo";
2350
- case REACT_LAZY_TYPE: {
2351
- var lazyComponent = type;
2352
- var payload = lazyComponent._payload;
2353
- var init = lazyComponent._init;
2354
- try {
2355
- return getComponentNameFromType(init(payload));
2356
- } catch (x) {
2357
- return null;
2358
- }
2359
- }
2360
- }
2361
- }
2362
- return null;
2363
- }
2364
- var assign = Object.assign;
2365
- var disabledDepth = 0;
2366
- var prevLog;
2367
- var prevInfo;
2368
- var prevWarn;
2369
- var prevError;
2370
- var prevGroup;
2371
- var prevGroupCollapsed;
2372
- var prevGroupEnd;
2373
- function disabledLog() {
2374
- }
2375
- disabledLog.__reactDisabledLog = true;
2376
- function disableLogs() {
2377
- {
2378
- if (disabledDepth === 0) {
2379
- prevLog = console.log;
2380
- prevInfo = console.info;
2381
- prevWarn = console.warn;
2382
- prevError = console.error;
2383
- prevGroup = console.group;
2384
- prevGroupCollapsed = console.groupCollapsed;
2385
- prevGroupEnd = console.groupEnd;
2386
- var props = {
2387
- configurable: true,
2388
- enumerable: true,
2389
- value: disabledLog,
2390
- writable: true
2391
- };
2392
- Object.defineProperties(console, {
2393
- info: props,
2394
- log: props,
2395
- warn: props,
2396
- error: props,
2397
- group: props,
2398
- groupCollapsed: props,
2399
- groupEnd: props
2400
- });
2401
- }
2402
- disabledDepth++;
2403
- }
2404
- }
2405
- function reenableLogs() {
2406
- {
2407
- disabledDepth--;
2408
- if (disabledDepth === 0) {
2409
- var props = {
2410
- configurable: true,
2411
- enumerable: true,
2412
- writable: true
2413
- };
2414
- Object.defineProperties(console, {
2415
- log: assign({}, props, {
2416
- value: prevLog
2417
- }),
2418
- info: assign({}, props, {
2419
- value: prevInfo
2420
- }),
2421
- warn: assign({}, props, {
2422
- value: prevWarn
2423
- }),
2424
- error: assign({}, props, {
2425
- value: prevError
2426
- }),
2427
- group: assign({}, props, {
2428
- value: prevGroup
2429
- }),
2430
- groupCollapsed: assign({}, props, {
2431
- value: prevGroupCollapsed
2432
- }),
2433
- groupEnd: assign({}, props, {
2434
- value: prevGroupEnd
2435
- })
2436
- });
2437
- }
2438
- if (disabledDepth < 0) {
2439
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2440
- }
2441
- }
2442
- }
2443
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2444
- var prefix;
2445
- function describeBuiltInComponentFrame(name, source, ownerFn) {
2446
- {
2447
- if (prefix === void 0) {
2448
- try {
2449
- throw Error();
2450
- } catch (x) {
2451
- var match = x.stack.trim().match(/\n( *(at )?)/);
2452
- prefix = match && match[1] || "";
2453
- }
2454
- }
2455
- return "\n" + prefix + name;
2456
- }
2457
- }
2458
- var reentry = false;
2459
- var componentFrameCache;
2460
- {
2461
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2462
- componentFrameCache = new PossiblyWeakMap();
2463
- }
2464
- function describeNativeComponentFrame(fn, construct) {
2465
- if (!fn || reentry) {
2466
- return "";
2467
- }
2468
- {
2469
- var frame = componentFrameCache.get(fn);
2470
- if (frame !== void 0) {
2471
- return frame;
2472
- }
2473
- }
2474
- var control;
2475
- reentry = true;
2476
- var previousPrepareStackTrace = Error.prepareStackTrace;
2477
- Error.prepareStackTrace = void 0;
2478
- var previousDispatcher;
2479
- {
2480
- previousDispatcher = ReactCurrentDispatcher.current;
2481
- ReactCurrentDispatcher.current = null;
2482
- disableLogs();
2483
- }
2484
- try {
2485
- if (construct) {
2486
- var Fake = function() {
2487
- throw Error();
2488
- };
2489
- Object.defineProperty(Fake.prototype, "props", {
2490
- set: function() {
2491
- throw Error();
2492
- }
2493
- });
2494
- if (typeof Reflect === "object" && Reflect.construct) {
2495
- try {
2496
- Reflect.construct(Fake, []);
2497
- } catch (x) {
2498
- control = x;
2499
- }
2500
- Reflect.construct(fn, [], Fake);
2501
- } else {
2502
- try {
2503
- Fake.call();
2504
- } catch (x) {
2505
- control = x;
2506
- }
2507
- fn.call(Fake.prototype);
2508
- }
2509
- } else {
2510
- try {
2511
- throw Error();
2512
- } catch (x) {
2513
- control = x;
2514
- }
2515
- fn();
2516
- }
2517
- } catch (sample) {
2518
- if (sample && control && typeof sample.stack === "string") {
2519
- var sampleLines = sample.stack.split("\n");
2520
- var controlLines = control.stack.split("\n");
2521
- var s = sampleLines.length - 1;
2522
- var c = controlLines.length - 1;
2523
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2524
- c--;
2525
- }
2526
- for (; s >= 1 && c >= 0; s--, c--) {
2527
- if (sampleLines[s] !== controlLines[c]) {
2528
- if (s !== 1 || c !== 1) {
2529
- do {
2530
- s--;
2531
- c--;
2532
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
2533
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2534
- if (fn.displayName && _frame.includes("<anonymous>")) {
2535
- _frame = _frame.replace("<anonymous>", fn.displayName);
2536
- }
2537
- {
2538
- if (typeof fn === "function") {
2539
- componentFrameCache.set(fn, _frame);
2540
- }
2541
- }
2542
- return _frame;
2543
- }
2544
- } while (s >= 1 && c >= 0);
2545
- }
2546
- break;
2547
- }
2548
- }
2549
- }
2550
- } finally {
2551
- reentry = false;
2552
- {
2553
- ReactCurrentDispatcher.current = previousDispatcher;
2554
- reenableLogs();
2555
- }
2556
- Error.prepareStackTrace = previousPrepareStackTrace;
2557
- }
2558
- var name = fn ? fn.displayName || fn.name : "";
2559
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2560
- {
2561
- if (typeof fn === "function") {
2562
- componentFrameCache.set(fn, syntheticFrame);
2563
- }
2564
- }
2565
- return syntheticFrame;
2566
- }
2567
- function describeFunctionComponentFrame(fn, source, ownerFn) {
2568
- {
2569
- return describeNativeComponentFrame(fn, false);
2570
- }
2571
- }
2572
- function shouldConstruct(Component) {
2573
- var prototype = Component.prototype;
2574
- return !!(prototype && prototype.isReactComponent);
2575
- }
2576
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2577
- if (type == null) {
2578
- return "";
2579
- }
2580
- if (typeof type === "function") {
2581
- {
2582
- return describeNativeComponentFrame(type, shouldConstruct(type));
2583
- }
2584
- }
2585
- if (typeof type === "string") {
2586
- return describeBuiltInComponentFrame(type);
2587
- }
2588
- switch (type) {
2589
- case REACT_SUSPENSE_TYPE:
2590
- return describeBuiltInComponentFrame("Suspense");
2591
- case REACT_SUSPENSE_LIST_TYPE:
2592
- return describeBuiltInComponentFrame("SuspenseList");
2593
- }
2594
- if (typeof type === "object") {
2595
- switch (type.$$typeof) {
2596
- case REACT_FORWARD_REF_TYPE:
2597
- return describeFunctionComponentFrame(type.render);
2598
- case REACT_MEMO_TYPE:
2599
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2600
- case REACT_LAZY_TYPE: {
2601
- var lazyComponent = type;
2602
- var payload = lazyComponent._payload;
2603
- var init = lazyComponent._init;
2604
- try {
2605
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2606
- } catch (x) {
2607
- }
2608
- }
2609
- }
2610
- }
2611
- return "";
2612
- }
2613
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2614
- var loggedTypeFailures = {};
2615
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2616
- function setCurrentlyValidatingElement(element) {
2617
- {
2618
- if (element) {
2619
- var owner = element._owner;
2620
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2621
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
2622
- } else {
2623
- ReactDebugCurrentFrame.setExtraStackFrame(null);
2624
- }
2625
- }
2626
- }
2627
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2628
- {
2629
- var has = Function.call.bind(hasOwnProperty);
2630
- for (var typeSpecName in typeSpecs) {
2631
- if (has(typeSpecs, typeSpecName)) {
2632
- var error$1 = void 0;
2633
- try {
2634
- if (typeof typeSpecs[typeSpecName] !== "function") {
2635
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2636
- err.name = "Invariant Violation";
2637
- throw err;
2638
- }
2639
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2640
- } catch (ex) {
2641
- error$1 = ex;
2642
- }
2643
- if (error$1 && !(error$1 instanceof Error)) {
2644
- setCurrentlyValidatingElement(element);
2645
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
2646
- setCurrentlyValidatingElement(null);
2647
- }
2648
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2649
- loggedTypeFailures[error$1.message] = true;
2650
- setCurrentlyValidatingElement(element);
2651
- error("Failed %s type: %s", location, error$1.message);
2652
- setCurrentlyValidatingElement(null);
2653
- }
2654
- }
2655
- }
2656
- }
2657
- }
2658
- var isArrayImpl = Array.isArray;
2659
- function isArray(a) {
2660
- return isArrayImpl(a);
2661
- }
2662
- function typeName(value) {
2663
- {
2664
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2665
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2666
- return type;
2667
- }
2668
- }
2669
- function willCoercionThrow(value) {
2670
- {
2671
- try {
2672
- testStringCoercion(value);
2673
- return false;
2674
- } catch (e) {
2675
- return true;
2676
- }
2677
- }
2678
- }
2679
- function testStringCoercion(value) {
2680
- return "" + value;
2681
- }
2682
- function checkKeyStringCoercion(value) {
2683
- {
2684
- if (willCoercionThrow(value)) {
2685
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2686
- return testStringCoercion(value);
2687
- }
2688
- }
2689
- }
2690
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2691
- var RESERVED_PROPS = {
2692
- key: true,
2693
- ref: true,
2694
- __self: true,
2695
- __source: true
2696
- };
2697
- var specialPropKeyWarningShown;
2698
- var specialPropRefWarningShown;
2699
- var didWarnAboutStringRefs;
2700
- {
2701
- didWarnAboutStringRefs = {};
2702
- }
2703
- function hasValidRef(config) {
2704
- {
2705
- if (hasOwnProperty.call(config, "ref")) {
2706
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2707
- if (getter && getter.isReactWarning) {
2708
- return false;
2709
- }
2710
- }
2711
- }
2712
- return config.ref !== void 0;
2713
- }
2714
- function hasValidKey(config) {
2715
- {
2716
- if (hasOwnProperty.call(config, "key")) {
2717
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2718
- if (getter && getter.isReactWarning) {
2719
- return false;
2720
- }
2721
- }
2722
- }
2723
- return config.key !== void 0;
2724
- }
2725
- function warnIfStringRefCannotBeAutoConverted(config, self) {
2726
- {
2727
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2728
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2729
- if (!didWarnAboutStringRefs[componentName]) {
2730
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2731
- didWarnAboutStringRefs[componentName] = true;
2732
- }
2733
- }
2734
- }
2735
- }
2736
- function defineKeyPropWarningGetter(props, displayName) {
2737
- {
2738
- var warnAboutAccessingKey = function() {
2739
- if (!specialPropKeyWarningShown) {
2740
- specialPropKeyWarningShown = true;
2741
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2742
- }
2743
- };
2744
- warnAboutAccessingKey.isReactWarning = true;
2745
- Object.defineProperty(props, "key", {
2746
- get: warnAboutAccessingKey,
2747
- configurable: true
2748
- });
2749
- }
2750
- }
2751
- function defineRefPropWarningGetter(props, displayName) {
2752
- {
2753
- var warnAboutAccessingRef = function() {
2754
- if (!specialPropRefWarningShown) {
2755
- specialPropRefWarningShown = true;
2756
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2757
- }
2758
- };
2759
- warnAboutAccessingRef.isReactWarning = true;
2760
- Object.defineProperty(props, "ref", {
2761
- get: warnAboutAccessingRef,
2762
- configurable: true
2763
- });
2764
- }
2765
- }
2766
- var ReactElement = function(type, key, ref, self, source, owner, props) {
2767
- var element = {
2768
- // This tag allows us to uniquely identify this as a React Element
2769
- $$typeof: REACT_ELEMENT_TYPE,
2770
- // Built-in properties that belong on the element
2771
- type,
2772
- key,
2773
- ref,
2774
- props,
2775
- // Record the component responsible for creating this element.
2776
- _owner: owner
2777
- };
2778
- {
2779
- element._store = {};
2780
- Object.defineProperty(element._store, "validated", {
2781
- configurable: false,
2782
- enumerable: false,
2783
- writable: true,
2784
- value: false
2785
- });
2786
- Object.defineProperty(element, "_self", {
2787
- configurable: false,
2788
- enumerable: false,
2789
- writable: false,
2790
- value: self
2791
- });
2792
- Object.defineProperty(element, "_source", {
2793
- configurable: false,
2794
- enumerable: false,
2795
- writable: false,
2796
- value: source
2797
- });
2798
- if (Object.freeze) {
2799
- Object.freeze(element.props);
2800
- Object.freeze(element);
2801
- }
2802
- }
2803
- return element;
2804
- };
2805
- function jsxDEV(type, config, maybeKey, source, self) {
2806
- {
2807
- var propName;
2808
- var props = {};
2809
- var key = null;
2810
- var ref = null;
2811
- if (maybeKey !== void 0) {
2812
- {
2813
- checkKeyStringCoercion(maybeKey);
2814
- }
2815
- key = "" + maybeKey;
2816
- }
2817
- if (hasValidKey(config)) {
2818
- {
2819
- checkKeyStringCoercion(config.key);
2820
- }
2821
- key = "" + config.key;
2822
- }
2823
- if (hasValidRef(config)) {
2824
- ref = config.ref;
2825
- warnIfStringRefCannotBeAutoConverted(config, self);
2826
- }
2827
- for (propName in config) {
2828
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2829
- props[propName] = config[propName];
2830
- }
2831
- }
2832
- if (type && type.defaultProps) {
2833
- var defaultProps = type.defaultProps;
2834
- for (propName in defaultProps) {
2835
- if (props[propName] === void 0) {
2836
- props[propName] = defaultProps[propName];
2837
- }
2838
- }
2839
- }
2840
- if (key || ref) {
2841
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2842
- if (key) {
2843
- defineKeyPropWarningGetter(props, displayName);
2844
- }
2845
- if (ref) {
2846
- defineRefPropWarningGetter(props, displayName);
2847
- }
2848
- }
2849
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2850
- }
2851
- }
2852
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2853
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2854
- function setCurrentlyValidatingElement$1(element) {
2855
- {
2856
- if (element) {
2857
- var owner = element._owner;
2858
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2859
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2860
- } else {
2861
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2862
- }
2863
- }
2864
- }
2865
- var propTypesMisspellWarningShown;
2866
- {
2867
- propTypesMisspellWarningShown = false;
2868
- }
2869
- function isValidElement(object) {
2870
- {
2871
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2872
- }
2873
- }
2874
- function getDeclarationErrorAddendum() {
2875
- {
2876
- if (ReactCurrentOwner$1.current) {
2877
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2878
- if (name) {
2879
- return "\n\nCheck the render method of `" + name + "`.";
2880
- }
2881
- }
2882
- return "";
2883
- }
2884
- }
2885
- function getSourceInfoErrorAddendum(source) {
2886
- {
2887
- if (source !== void 0) {
2888
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2889
- var lineNumber = source.lineNumber;
2890
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2891
- }
2892
- return "";
2893
- }
2894
- }
2895
- var ownerHasKeyUseWarning = {};
2896
- function getCurrentComponentErrorInfo(parentType) {
2897
- {
2898
- var info = getDeclarationErrorAddendum();
2899
- if (!info) {
2900
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2901
- if (parentName) {
2902
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2903
- }
2904
- }
2905
- return info;
2906
- }
2907
- }
2908
- function validateExplicitKey(element, parentType) {
2909
- {
2910
- if (!element._store || element._store.validated || element.key != null) {
2911
- return;
2912
- }
2913
- element._store.validated = true;
2914
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2915
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2916
- return;
2917
- }
2918
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2919
- var childOwner = "";
2920
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2921
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2922
- }
2923
- setCurrentlyValidatingElement$1(element);
2924
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2925
- setCurrentlyValidatingElement$1(null);
2926
- }
2927
- }
2928
- function validateChildKeys(node, parentType) {
2929
- {
2930
- if (typeof node !== "object") {
2931
- return;
2932
- }
2933
- if (isArray(node)) {
2934
- for (var i = 0; i < node.length; i++) {
2935
- var child = node[i];
2936
- if (isValidElement(child)) {
2937
- validateExplicitKey(child, parentType);
2938
- }
2939
- }
2940
- } else if (isValidElement(node)) {
2941
- if (node._store) {
2942
- node._store.validated = true;
2943
- }
2944
- } else if (node) {
2945
- var iteratorFn = getIteratorFn(node);
2946
- if (typeof iteratorFn === "function") {
2947
- if (iteratorFn !== node.entries) {
2948
- var iterator = iteratorFn.call(node);
2949
- var step;
2950
- while (!(step = iterator.next()).done) {
2951
- if (isValidElement(step.value)) {
2952
- validateExplicitKey(step.value, parentType);
2953
- }
2954
- }
2955
- }
2956
- }
2957
- }
2958
- }
2959
- }
2960
- function validatePropTypes(element) {
2961
- {
2962
- var type = element.type;
2963
- if (type === null || type === void 0 || typeof type === "string") {
2964
- return;
2965
- }
2966
- var propTypes;
2967
- if (typeof type === "function") {
2968
- propTypes = type.propTypes;
2969
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2970
- // Inner props are checked in the reconciler.
2971
- type.$$typeof === REACT_MEMO_TYPE)) {
2972
- propTypes = type.propTypes;
2973
- } else {
2974
- return;
2975
- }
2976
- if (propTypes) {
2977
- var name = getComponentNameFromType(type);
2978
- checkPropTypes(propTypes, element.props, "prop", name, element);
2979
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
2980
- propTypesMisspellWarningShown = true;
2981
- var _name = getComponentNameFromType(type);
2982
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
2983
- }
2984
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
2985
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2986
- }
2987
- }
2988
- }
2989
- function validateFragmentProps(fragment) {
2990
- {
2991
- var keys = Object.keys(fragment.props);
2992
- for (var i = 0; i < keys.length; i++) {
2993
- var key = keys[i];
2994
- if (key !== "children" && key !== "key") {
2995
- setCurrentlyValidatingElement$1(fragment);
2996
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
2997
- setCurrentlyValidatingElement$1(null);
2998
- break;
2999
- }
3000
- }
3001
- if (fragment.ref !== null) {
3002
- setCurrentlyValidatingElement$1(fragment);
3003
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
3004
- setCurrentlyValidatingElement$1(null);
3005
- }
3006
- }
3007
- }
3008
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3009
- {
3010
- var validType = isValidElementType(type);
3011
- if (!validType) {
3012
- var info = "";
3013
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3014
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
3015
- }
3016
- var sourceInfo = getSourceInfoErrorAddendum(source);
3017
- if (sourceInfo) {
3018
- info += sourceInfo;
3019
- } else {
3020
- info += getDeclarationErrorAddendum();
3021
- }
3022
- var typeString;
3023
- if (type === null) {
3024
- typeString = "null";
3025
- } else if (isArray(type)) {
3026
- typeString = "array";
3027
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3028
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3029
- info = " Did you accidentally export a JSX literal instead of a component?";
3030
- } else {
3031
- typeString = typeof type;
3032
- }
3033
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
3034
- }
3035
- var element = jsxDEV(type, props, key, source, self);
3036
- if (element == null) {
3037
- return element;
3038
- }
3039
- if (validType) {
3040
- var children = props.children;
3041
- if (children !== void 0) {
3042
- if (isStaticChildren) {
3043
- if (isArray(children)) {
3044
- for (var i = 0; i < children.length; i++) {
3045
- validateChildKeys(children[i], type);
3046
- }
3047
- if (Object.freeze) {
3048
- Object.freeze(children);
3049
- }
3050
- } else {
3051
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3052
- }
3053
- } else {
3054
- validateChildKeys(children, type);
3055
- }
3056
- }
3057
- }
3058
- if (type === REACT_FRAGMENT_TYPE) {
3059
- validateFragmentProps(element);
3060
- } else {
3061
- validatePropTypes(element);
3062
- }
3063
- return element;
3064
- }
3065
- }
3066
- function jsxWithValidationStatic(type, props, key) {
3067
- {
3068
- return jsxWithValidation(type, props, key, true);
3069
- }
3070
- }
3071
- function jsxWithValidationDynamic(type, props, key) {
3072
- {
3073
- return jsxWithValidation(type, props, key, false);
3074
- }
3075
- }
3076
- var jsx5 = jsxWithValidationDynamic;
3077
- var jsxs = jsxWithValidationStatic;
3078
- exports2.Fragment = REACT_FRAGMENT_TYPE;
3079
- exports2.jsx = jsx5;
3080
- exports2.jsxs = jsxs;
3081
- })();
3082
- }
3083
- }
3084
- });
3085
-
3086
- // node_modules/react/jsx-runtime.js
3087
- var require_jsx_runtime = __commonJS({
3088
- "node_modules/react/jsx-runtime.js"(exports2, module2) {
3089
- "use strict";
3090
- if (process.env.NODE_ENV === "production") {
3091
- module2.exports = require_react_jsx_runtime_production_min();
3092
- } else {
3093
- module2.exports = require_react_jsx_runtime_development();
3094
- }
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
3095
17
  }
3096
- });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
3097
29
 
3098
30
  // src/index.ts
3099
31
  var index_exports = {};
@@ -3236,6 +168,7 @@ __export(index_exports, {
3236
168
  stringToColor: () => stringToColor,
3237
169
  toQueryString: () => toQueryString,
3238
170
  updateSearchMap: () => updateSearchMap,
171
+ updateTokenParamInOriginalRequest: () => updateTokenParamInOriginalRequest,
3239
172
  useAppDispatch: () => useAppDispatch,
3240
173
  useAppSelector: () => useAppSelector,
3241
174
  useButton: () => use_button_default,
@@ -3248,6 +181,7 @@ __export(index_exports, {
3248
181
  useForgotPassword: () => use_forgot_password_default,
3249
182
  useForgotPasswordSSO: () => use_forgotpassword_sso_default,
3250
183
  useGet2FAMethods: () => uset_get_2FA_method_default,
184
+ useGetAccessByCode: () => use_get_access_by_code_default,
3251
185
  useGetActionDetail: () => use_get_action_detail_default,
3252
186
  useGetAll: () => use_get_all_default,
3253
187
  useGetCalendar: () => use_get_calendar_default,
@@ -3280,6 +214,7 @@ __export(index_exports, {
3280
214
  useLoadMessage: () => use_load_message_default,
3281
215
  useLoginCredential: () => use_login_credential_default,
3282
216
  useLoginSocial: () => use_login_socical_default,
217
+ useLogout: () => use_logout_default,
3283
218
  useModel: () => use_model_default,
3284
219
  useOdooDataTransform: () => use_odoo_data_transform_default,
3285
220
  useOnChangeForm: () => use_onchange_form_default,
@@ -3359,6 +294,9 @@ var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
3359
294
  UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
3360
295
  UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
3361
296
  UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
297
+ UriConstants2["GRANT_ACCESS"] = "/grant-access";
298
+ UriConstants2["TOKEN_BY_CODE"] = "/token";
299
+ UriConstants2["LOGOUT"] = "/logout";
3362
300
  return UriConstants2;
3363
301
  })(UriConstants || {});
3364
302
 
@@ -6264,6 +3202,25 @@ var copyTextToClipboard = async (text) => {
6264
3202
  }
6265
3203
  }
6266
3204
  };
3205
+ var updateTokenParamInOriginalRequest = (originalRequest, newAccessToken) => {
3206
+ if (!originalRequest.data) return originalRequest.data;
3207
+ if (typeof originalRequest.data === "string") {
3208
+ try {
3209
+ const parsedData = JSON.parse(originalRequest.data);
3210
+ if (parsedData.with_context && typeof parsedData.with_context === "object") {
3211
+ parsedData.with_context.token = newAccessToken;
3212
+ }
3213
+ return JSON.stringify(parsedData);
3214
+ } catch (e) {
3215
+ console.warn("Failed to parse originalRequest.data", e);
3216
+ return originalRequest.data;
3217
+ }
3218
+ }
3219
+ if (typeof originalRequest.data === "object" && originalRequest.data.with_context) {
3220
+ originalRequest.data.with_context.token = newAccessToken;
3221
+ }
3222
+ return originalRequest.data;
3223
+ };
6267
3224
  var isObjectEmpty = (obj) => {
6268
3225
  return Object.keys(obj).length === 0;
6269
3226
  };
@@ -6331,7 +3288,8 @@ var axiosClient = {
6331
3288
  });
6332
3289
  instance.interceptors.request.use(
6333
3290
  async (config2) => {
6334
- const token = await localStorage2.getAccessToken();
3291
+ const useRefreshToken = config2.useRefreshToken;
3292
+ const token = useRefreshToken ? await localStorage2.getRefreshToken() : await localStorage2.getAccessToken();
6335
3293
  if (token) {
6336
3294
  config2.headers["Authorization"] = "Bearer " + token;
6337
3295
  }
@@ -6357,7 +3315,7 @@ var axiosClient = {
6357
3315
  return data;
6358
3316
  };
6359
3317
  const originalRequest = error.config;
6360
- if ((error.response?.status === 403 || error.response?.status === 401 || error.response?.status === 404) && ["TOKEN_EXPIRED", "AUTHEN_FAIL", 401].includes(
3318
+ if ((error.response?.status === 403 || error.response?.status === 401 || error.response?.status === 404) && ["TOKEN_EXPIRED", "AUTHEN_FAIL", 401, "ERR_2FA_006"].includes(
6361
3319
  error.response.data.code
6362
3320
  )) {
6363
3321
  if (isRefreshing) {
@@ -6365,6 +3323,10 @@ var axiosClient = {
6365
3323
  failedQueue.push({ resolve, reject });
6366
3324
  }).then((token) => {
6367
3325
  originalRequest.headers["Authorization"] = "Bearer " + token;
3326
+ originalRequest.data = updateTokenParamInOriginalRequest(
3327
+ originalRequest,
3328
+ token
3329
+ );
6368
3330
  return instance.request(originalRequest);
6369
3331
  }).catch(async (err) => {
6370
3332
  if ((err.response?.status === 400 || err.response?.status === 401) && ["invalid_grant"].includes(err.response.data.error)) {
@@ -6389,11 +3351,11 @@ var axiosClient = {
6389
3351
  );
6390
3352
  return new Promise(function(resolve) {
6391
3353
  import_axios.default.post(
6392
- `${config.baseUrl}${"/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
3354
+ `${config.baseUrl}${config.refreshTokenEndpoint ?? "/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`,
6393
3355
  payload,
6394
3356
  {
6395
3357
  headers: {
6396
- "Content-Type": "multipart/form-data",
3358
+ "Content-Type": config.refreshTokenEndpoint ? "application/x-www-form-urlencoded" : "multipart/form-data",
6397
3359
  Authorization: `Bearer ${accessTokenExp}`
6398
3360
  }
6399
3361
  }
@@ -6403,10 +3365,14 @@ var axiosClient = {
6403
3365
  await localStorage2.setRefreshToken(data.refresh_token);
6404
3366
  import_axios.default.defaults.headers.common["Authorization"] = "Bearer " + data.access_token;
6405
3367
  originalRequest.headers["Authorization"] = "Bearer " + data.access_token;
3368
+ originalRequest.data = updateTokenParamInOriginalRequest(
3369
+ originalRequest,
3370
+ data.access_token
3371
+ );
6406
3372
  processQueue(null, data.access_token);
6407
3373
  resolve(instance.request(originalRequest));
6408
3374
  }).catch(async (err) => {
6409
- if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_BAD_REQUEST")) {
3375
+ if (err && (err?.error_code === "AUTHEN_FAIL" || err?.error_code === "TOKEN_EXPIRED" || err?.error_code === "TOKEN_INCORRECT" || err?.code === "ERR_BAD_REQUEST") || err?.error_code === "ERR_2FA_006") {
6410
3376
  await clearAuthToken();
6411
3377
  }
6412
3378
  if (err && err.response) {
@@ -7114,6 +4080,7 @@ var EnvStore = class {
7114
4080
  db;
7115
4081
  localStorageUtils;
7116
4082
  sessionStorageUtils;
4083
+ refreshTokenEndpoint;
7117
4084
  constructor(envStore2, localStorageUtils2, sessionStorageUtils2) {
7118
4085
  this.envStore = envStore2;
7119
4086
  this.localStorageUtils = localStorageUtils2;
@@ -7130,6 +4097,7 @@ var EnvStore = class {
7130
4097
  this.companies = env2?.companies || [];
7131
4098
  this.user = env2?.user;
7132
4099
  this.db = env2?.db;
4100
+ this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
7133
4101
  }
7134
4102
  setupEnv(envConfig) {
7135
4103
  const dispatch = this.envStore.dispatch;
@@ -7471,6 +4439,38 @@ var AuthService = {
7471
4439
  async getProviders(db) {
7472
4440
  const env2 = getEnv();
7473
4441
  return env2?.requests?.get("/oauth/providers", { params: { db } });
4442
+ },
4443
+ async getAccessByCode(code) {
4444
+ const env2 = getEnv();
4445
+ const data = new URLSearchParams();
4446
+ data.append("code", code);
4447
+ data.append("grant_type", "authorization_code");
4448
+ data.append("client_id", env2?.config?.clientId || "");
4449
+ data.append("redirect_uri", env2?.config?.redirectUri || "");
4450
+ return env2?.requests?.post(
4451
+ `${env2?.baseUrl?.replace("/mms/", "/id/")}/${"/token" /* TOKEN_BY_CODE */}`,
4452
+ data,
4453
+ {
4454
+ headers: {
4455
+ "Content-Type": "application/x-www-form-urlencoded"
4456
+ }
4457
+ }
4458
+ );
4459
+ },
4460
+ async logout(data) {
4461
+ const env2 = getEnv();
4462
+ console.log(data);
4463
+ return env2?.requests?.post(
4464
+ "/logout" /* LOGOUT */,
4465
+ {},
4466
+ {
4467
+ headers: {
4468
+ "Content-Type": "application/json"
4469
+ },
4470
+ withCredentials: true,
4471
+ useRefreshToken: true
4472
+ }
4473
+ );
7474
4474
  }
7475
4475
  };
7476
4476
  var auth_service_default = AuthService;
@@ -8457,29 +5457,148 @@ var ViewService = {
8457
5457
  field: "sequence",
8458
5458
  ...offset > 0 ? { offset } : {}
8459
5459
  };
8460
- return env2?.requests.post("/web/dataset/resequence", jsonData, {
5460
+ return env2?.requests.post("/web/dataset/resequence", jsonData, {
5461
+ headers: {
5462
+ "Content-Type": "application/json"
5463
+ }
5464
+ });
5465
+ },
5466
+ async getSelectionItem({ data }) {
5467
+ const env2 = getEnv();
5468
+ const jsonData = {
5469
+ model: data.model,
5470
+ ids: [],
5471
+ method: "get_data_select",
5472
+ with_context: data.context,
5473
+ kwargs: {
5474
+ count_limit: 10001,
5475
+ domain: data.domain ? data.domain : [],
5476
+ offset: 0,
5477
+ order: "",
5478
+ specification: data?.specification ?? {
5479
+ id: {},
5480
+ name: {},
5481
+ display_name: {}
5482
+ }
5483
+ }
5484
+ };
5485
+ return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
5486
+ headers: {
5487
+ "Content-Type": "application/json"
5488
+ }
5489
+ });
5490
+ },
5491
+ async loadMessages() {
5492
+ const env2 = getEnv();
5493
+ return env2.requests.post(
5494
+ "/load_message_failures" /* LOAD_MESSAGE */,
5495
+ {},
5496
+ {
5497
+ headers: {
5498
+ "Content-Type": "application/json"
5499
+ }
5500
+ }
5501
+ );
5502
+ },
5503
+ async getVersion() {
5504
+ const env2 = getEnv();
5505
+ return env2?.requests.get("", {
5506
+ headers: {
5507
+ "Content-Type": "application/json"
5508
+ }
5509
+ });
5510
+ },
5511
+ async get2FAMethods({
5512
+ method,
5513
+ with_context
5514
+ }) {
5515
+ const env2 = getEnv();
5516
+ const jsonData = {
5517
+ method,
5518
+ with_context
5519
+ };
5520
+ return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
5521
+ headers: {
5522
+ "Content-Type": "application/json"
5523
+ }
5524
+ });
5525
+ },
5526
+ async verify2FA({
5527
+ method,
5528
+ with_context,
5529
+ code
5530
+ }) {
5531
+ const env2 = getEnv();
5532
+ const jsonData = {
5533
+ method,
5534
+ kwargs: {
5535
+ vals: {
5536
+ code
5537
+ }
5538
+ },
5539
+ with_context
5540
+ };
5541
+ return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
5542
+ headers: {
5543
+ "Content-Type": "application/json"
5544
+ }
5545
+ });
5546
+ },
5547
+ async signInSSO({
5548
+ redirect_uri,
5549
+ state,
5550
+ client_id,
5551
+ response_type,
5552
+ path
5553
+ }) {
5554
+ const env2 = getEnv();
5555
+ const params = new URLSearchParams({
5556
+ response_type,
5557
+ client_id,
5558
+ redirect_uri,
5559
+ state
5560
+ });
5561
+ const url = `${path}?${params.toString()}`;
5562
+ return env2?.requests.get(url, {
5563
+ credentials: "include",
5564
+ headers: {
5565
+ "Content-Type": "application/json"
5566
+ }
5567
+ });
5568
+ },
5569
+ async grantAccess({
5570
+ redirect_uri,
5571
+ state,
5572
+ client_id,
5573
+ scopes
5574
+ }) {
5575
+ const env2 = getEnv();
5576
+ const jsonData = {
5577
+ redirect_uri,
5578
+ state,
5579
+ client_id,
5580
+ scopes
5581
+ };
5582
+ return env2?.requests.post("/grant-access" /* GRANT_ACCESS */, jsonData, {
8461
5583
  headers: {
8462
5584
  "Content-Type": "application/json"
8463
- }
5585
+ },
5586
+ withCredentials: true
8464
5587
  });
8465
5588
  },
8466
- async getSelectionItem({ data }) {
5589
+ async getFieldsViewSecurity({
5590
+ method,
5591
+ token,
5592
+ views
5593
+ }) {
8467
5594
  const env2 = getEnv();
8468
5595
  const jsonData = {
8469
- model: data.model,
8470
- ids: [],
8471
- method: "get_data_select",
8472
- with_context: data.context,
5596
+ method,
8473
5597
  kwargs: {
8474
- count_limit: 10001,
8475
- domain: data.domain ? data.domain : [],
8476
- offset: 0,
8477
- order: "",
8478
- specification: data?.specification ?? {
8479
- id: {},
8480
- name: {},
8481
- display_name: {}
8482
- }
5598
+ views
5599
+ },
5600
+ with_context: {
5601
+ token
8483
5602
  }
8484
5603
  };
8485
5604
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
@@ -8488,34 +5607,34 @@ var ViewService = {
8488
5607
  }
8489
5608
  });
8490
5609
  },
8491
- async loadMessages() {
5610
+ async settingsWebRead2fa({
5611
+ method,
5612
+ model,
5613
+ kwargs,
5614
+ token
5615
+ }) {
8492
5616
  const env2 = getEnv();
8493
- return env2.requests.post(
8494
- "/load_message_failures" /* LOAD_MESSAGE */,
8495
- {},
8496
- {
8497
- headers: {
8498
- "Content-Type": "application/json"
8499
- }
5617
+ const jsonData = {
5618
+ method,
5619
+ model,
5620
+ kwargs,
5621
+ with_context: {
5622
+ token
8500
5623
  }
8501
- );
8502
- },
8503
- async getVersion() {
8504
- const env2 = getEnv();
8505
- return env2?.requests.get("", {
5624
+ };
5625
+ return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
8506
5626
  headers: {
8507
5627
  "Content-Type": "application/json"
8508
5628
  }
8509
5629
  });
8510
5630
  },
8511
- async get2FAMethods({
8512
- method,
8513
- with_context
8514
- }) {
5631
+ async requestSetupTotp({ method, token }) {
8515
5632
  const env2 = getEnv();
8516
5633
  const jsonData = {
8517
5634
  method,
8518
- with_context
5635
+ with_context: {
5636
+ token
5637
+ }
8519
5638
  };
8520
5639
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
8521
5640
  headers: {
@@ -8523,9 +5642,9 @@ var ViewService = {
8523
5642
  }
8524
5643
  });
8525
5644
  },
8526
- async verify2FA({
5645
+ async verifyTotp({
8527
5646
  method,
8528
- with_context,
5647
+ action_token,
8529
5648
  code
8530
5649
  }) {
8531
5650
  const env2 = getEnv();
@@ -8536,7 +5655,9 @@ var ViewService = {
8536
5655
  code
8537
5656
  }
8538
5657
  },
8539
- with_context
5658
+ with_context: {
5659
+ action_token
5660
+ }
8540
5661
  };
8541
5662
  return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
8542
5663
  headers: {
@@ -8544,23 +5665,15 @@ var ViewService = {
8544
5665
  }
8545
5666
  });
8546
5667
  },
8547
- async signInSSO({
8548
- redirect_uri,
8549
- state,
8550
- client_id,
8551
- response_type,
8552
- path
8553
- }) {
5668
+ async removeTotpSetUp({ method, token }) {
8554
5669
  const env2 = getEnv();
8555
- const params = new URLSearchParams({
8556
- response_type,
8557
- client_id,
8558
- redirect_uri,
8559
- state
8560
- });
8561
- const url = `${path}?${params.toString()}`;
8562
- return env2?.requests.get(url, {
8563
- credentials: "include",
5670
+ const jsonData = {
5671
+ method,
5672
+ with_context: {
5673
+ token
5674
+ }
5675
+ };
5676
+ return env2?.requests.post("/call" /* CALL_PATH */, jsonData, {
8564
5677
  headers: {
8565
5678
  "Content-Type": "application/json"
8566
5679
  }
@@ -8679,26 +5792,48 @@ var useUpdatePassword = () => {
8679
5792
  };
8680
5793
  var use_update_password_default = useUpdatePassword;
8681
5794
 
8682
- // src/hooks/company/use-get-company-info.ts
5795
+ // src/hooks/auth/use-logout.ts
8683
5796
  var import_react_query10 = require("@tanstack/react-query");
8684
- var useGetCompanyInfo = () => {
5797
+ var useLogout = () => {
8685
5798
  return (0, import_react_query10.useMutation)({
5799
+ mutationFn: (data) => {
5800
+ return auth_service_default.logout(data);
5801
+ }
5802
+ });
5803
+ };
5804
+ var use_logout_default = useLogout;
5805
+
5806
+ // src/hooks/auth/use-get-access-by-code.ts
5807
+ var import_react_query11 = require("@tanstack/react-query");
5808
+ var useGetAccessByCode = () => {
5809
+ return (0, import_react_query11.useMutation)({
5810
+ mutationFn: ({ code }) => {
5811
+ return auth_service_default.getAccessByCode(code);
5812
+ }
5813
+ });
5814
+ };
5815
+ var use_get_access_by_code_default = useGetAccessByCode;
5816
+
5817
+ // src/hooks/company/use-get-company-info.ts
5818
+ var import_react_query12 = require("@tanstack/react-query");
5819
+ var useGetCompanyInfo = () => {
5820
+ return (0, import_react_query12.useMutation)({
8686
5821
  mutationFn: (id) => company_service_default.getInfoCompany(id)
8687
5822
  });
8688
5823
  };
8689
5824
  var use_get_company_info_default = useGetCompanyInfo;
8690
5825
 
8691
5826
  // src/hooks/company/use-get-current-company.ts
8692
- var import_react_query11 = require("@tanstack/react-query");
5827
+ var import_react_query13 = require("@tanstack/react-query");
8693
5828
  var useGetCurrentCompany = () => {
8694
- return (0, import_react_query11.useMutation)({
5829
+ return (0, import_react_query13.useMutation)({
8695
5830
  mutationFn: () => company_service_default.getCurrentCompany()
8696
5831
  });
8697
5832
  };
8698
5833
  var use_get_current_company_default = useGetCurrentCompany;
8699
5834
 
8700
5835
  // src/hooks/company/use-get-list-company.ts
8701
- var import_react_query12 = require("@tanstack/react-query");
5836
+ var import_react_query14 = require("@tanstack/react-query");
8702
5837
  var useGetListCompany = (companyIDs = []) => {
8703
5838
  const companySpec = {
8704
5839
  id: {},
@@ -8709,7 +5844,7 @@ var useGetListCompany = (companyIDs = []) => {
8709
5844
  ids: companyIDs,
8710
5845
  specification: companySpec
8711
5846
  };
8712
- return (0, import_react_query12.useQuery)({
5847
+ return (0, import_react_query14.useQuery)({
8713
5848
  queryKey: ["list_company" /* LIST_COMPANY */, companyIDs],
8714
5849
  queryFn: () => model_service_default.getList(getListParams),
8715
5850
  refetchOnWindowFocus: false
@@ -8718,9 +5853,9 @@ var useGetListCompany = (companyIDs = []) => {
8718
5853
  var use_get_list_company_default = useGetListCompany;
8719
5854
 
8720
5855
  // src/hooks/excel/use-export-excel.ts
8721
- var import_react_query13 = require("@tanstack/react-query");
5856
+ var import_react_query15 = require("@tanstack/react-query");
8722
5857
  var useExportExcel = () => {
8723
- return (0, import_react_query13.useMutation)({
5858
+ return (0, import_react_query15.useMutation)({
8724
5859
  mutationFn: ({
8725
5860
  model,
8726
5861
  domain,
@@ -8745,9 +5880,9 @@ var useExportExcel = () => {
8745
5880
  var use_export_excel_default = useExportExcel;
8746
5881
 
8747
5882
  // src/hooks/excel/use-get-field-export.ts
8748
- var import_react_query14 = require("@tanstack/react-query");
5883
+ var import_react_query16 = require("@tanstack/react-query");
8749
5884
  var useGetFieldExport = () => {
8750
- return (0, import_react_query14.useMutation)({
5885
+ return (0, import_react_query16.useMutation)({
8751
5886
  mutationFn: ({
8752
5887
  ids,
8753
5888
  model,
@@ -8776,9 +5911,9 @@ var useGetFieldExport = () => {
8776
5911
  var use_get_field_export_default = useGetFieldExport;
8777
5912
 
8778
5913
  // src/hooks/excel/use-get-file-excel.ts
8779
- var import_react_query15 = require("@tanstack/react-query");
5914
+ var import_react_query17 = require("@tanstack/react-query");
8780
5915
  var useGetFileExcel = ({ model }) => {
8781
- return (0, import_react_query15.useQuery)({
5916
+ return (0, import_react_query17.useQuery)({
8782
5917
  queryKey: [],
8783
5918
  queryFn: () => excel_service_default.getFileExcel({
8784
5919
  model
@@ -8794,9 +5929,9 @@ var useGetFileExcel = ({ model }) => {
8794
5929
  var use_get_file_excel_default = useGetFileExcel;
8795
5930
 
8796
5931
  // src/hooks/excel/use-parse-preview.ts
8797
- var import_react_query16 = require("@tanstack/react-query");
5932
+ var import_react_query18 = require("@tanstack/react-query");
8798
5933
  var useParsePreview = () => {
8799
- return (0, import_react_query16.useMutation)({
5934
+ return (0, import_react_query18.useMutation)({
8800
5935
  mutationFn: ({
8801
5936
  id,
8802
5937
  selectedSheet,
@@ -8813,9 +5948,9 @@ var useParsePreview = () => {
8813
5948
  var use_parse_preview_default = useParsePreview;
8814
5949
 
8815
5950
  // src/hooks/excel/use-upload-file.ts
8816
- var import_react_query17 = require("@tanstack/react-query");
5951
+ var import_react_query19 = require("@tanstack/react-query");
8817
5952
  var useUploadFile = () => {
8818
- return (0, import_react_query17.useMutation)({
5953
+ return (0, import_react_query19.useMutation)({
8819
5954
  mutationFn: ({ formData }) => excel_service_default.uploadFile({
8820
5955
  formData
8821
5956
  })
@@ -8824,9 +5959,9 @@ var useUploadFile = () => {
8824
5959
  var use_upload_file_default = useUploadFile;
8825
5960
 
8826
5961
  // src/hooks/excel/use-upload-id-file.ts
8827
- var import_react_query18 = require("@tanstack/react-query");
5962
+ var import_react_query20 = require("@tanstack/react-query");
8828
5963
  var useUploadIdFile = () => {
8829
- return (0, import_react_query18.useMutation)({
5964
+ return (0, import_react_query20.useMutation)({
8830
5965
  mutationFn: ({ formData }) => excel_service_default.uploadIdFile({
8831
5966
  formData
8832
5967
  })
@@ -8835,9 +5970,9 @@ var useUploadIdFile = () => {
8835
5970
  var use_upload_id_file_default = useUploadIdFile;
8836
5971
 
8837
5972
  // src/hooks/excel/uss-execute-import.ts
8838
- var import_react_query19 = require("@tanstack/react-query");
5973
+ var import_react_query21 = require("@tanstack/react-query");
8839
5974
  var useExecuteImport = () => {
8840
- return (0, import_react_query19.useMutation)({
5975
+ return (0, import_react_query21.useMutation)({
8841
5976
  mutationFn: ({
8842
5977
  fields,
8843
5978
  columns,
@@ -8858,9 +5993,9 @@ var useExecuteImport = () => {
8858
5993
  var uss_execute_import_default = useExecuteImport;
8859
5994
 
8860
5995
  // src/hooks/form/use-change-status.ts
8861
- var import_react_query20 = require("@tanstack/react-query");
5996
+ var import_react_query22 = require("@tanstack/react-query");
8862
5997
  var useChangeStatus = () => {
8863
- return (0, import_react_query20.useMutation)({
5998
+ return (0, import_react_query22.useMutation)({
8864
5999
  mutationFn: ({ data }) => {
8865
6000
  return form_service_default.changeStatus({
8866
6001
  data
@@ -8871,9 +6006,9 @@ var useChangeStatus = () => {
8871
6006
  var use_change_status_default = useChangeStatus;
8872
6007
 
8873
6008
  // src/hooks/form/use-delete-comment.ts
8874
- var import_react_query21 = require("@tanstack/react-query");
6009
+ var import_react_query23 = require("@tanstack/react-query");
8875
6010
  var useDeleteComment = () => {
8876
- return (0, import_react_query21.useMutation)({
6011
+ return (0, import_react_query23.useMutation)({
8877
6012
  mutationFn: ({ data }) => form_service_default.deleteComment({
8878
6013
  data
8879
6014
  })
@@ -8882,9 +6017,9 @@ var useDeleteComment = () => {
8882
6017
  var use_delete_comment_default = useDeleteComment;
8883
6018
 
8884
6019
  // src/hooks/form/use-get-comment.ts
8885
- var import_react_query22 = require("@tanstack/react-query");
6020
+ var import_react_query24 = require("@tanstack/react-query");
8886
6021
  var useGetComment = ({ data, queryKey }) => {
8887
- return (0, import_react_query22.useQuery)({
6022
+ return (0, import_react_query24.useQuery)({
8888
6023
  queryKey,
8889
6024
  queryFn: () => form_service_default.getComment({ data }).then((res) => {
8890
6025
  if (res) {
@@ -8898,13 +6033,13 @@ var useGetComment = ({ data, queryKey }) => {
8898
6033
  var use_get_comment_default = useGetComment;
8899
6034
 
8900
6035
  // src/hooks/form/use-get-form-view.ts
8901
- var import_react_query23 = require("@tanstack/react-query");
6036
+ var import_react_query25 = require("@tanstack/react-query");
8902
6037
  var useGetFormView = ({
8903
6038
  data,
8904
6039
  queryKey,
8905
6040
  enabled
8906
6041
  }) => {
8907
- return (0, import_react_query23.useQuery)({
6042
+ return (0, import_react_query25.useQuery)({
8908
6043
  queryKey,
8909
6044
  queryFn: () => form_service_default.getFormView({ data }).then((res) => {
8910
6045
  if (res) {
@@ -8918,13 +6053,13 @@ var useGetFormView = ({
8918
6053
  var use_get_form_view_default = useGetFormView;
8919
6054
 
8920
6055
  // src/hooks/form/use-get-image.ts
8921
- var import_react_query24 = require("@tanstack/react-query");
6056
+ var import_react_query26 = require("@tanstack/react-query");
8922
6057
  var useGetImage = ({
8923
6058
  data,
8924
6059
  queryKey,
8925
6060
  src
8926
6061
  }) => {
8927
- return (0, import_react_query24.useQuery)({
6062
+ return (0, import_react_query26.useQuery)({
8928
6063
  queryKey,
8929
6064
  queryFn: () => form_service_default.getImage({ data }).then((res) => {
8930
6065
  if (res) {
@@ -8938,9 +6073,9 @@ var useGetImage = ({
8938
6073
  var use_get_image_default = useGetImage;
8939
6074
 
8940
6075
  // src/hooks/form/use-send-comment.ts
8941
- var import_react_query25 = require("@tanstack/react-query");
6076
+ var import_react_query27 = require("@tanstack/react-query");
8942
6077
  var useSendComment = () => {
8943
- return (0, import_react_query25.useMutation)({
6078
+ return (0, import_react_query27.useMutation)({
8944
6079
  mutationFn: ({ data }) => form_service_default.sentComment({
8945
6080
  data
8946
6081
  })
@@ -8949,9 +6084,9 @@ var useSendComment = () => {
8949
6084
  var use_send_comment_default = useSendComment;
8950
6085
 
8951
6086
  // src/hooks/form/use-upload-image.ts
8952
- var import_react_query26 = require("@tanstack/react-query");
6087
+ var import_react_query28 = require("@tanstack/react-query");
8953
6088
  var useUploadImage = () => {
8954
- return (0, import_react_query26.useMutation)({
6089
+ return (0, import_react_query28.useMutation)({
8955
6090
  mutationFn: ({ data }) => form_service_default.uploadImage({
8956
6091
  data
8957
6092
  })
@@ -8960,18 +6095,18 @@ var useUploadImage = () => {
8960
6095
  var use_upload_image_default = useUploadImage;
8961
6096
 
8962
6097
  // src/hooks/model/use-delete.ts
8963
- var import_react_query27 = require("@tanstack/react-query");
6098
+ var import_react_query29 = require("@tanstack/react-query");
8964
6099
  var useDelete = () => {
8965
- return (0, import_react_query27.useMutation)({
6100
+ return (0, import_react_query29.useMutation)({
8966
6101
  mutationFn: ({ ids, model }) => model_service_default.delete({ ids, model })
8967
6102
  });
8968
6103
  };
8969
6104
  var use_delete_default = useDelete;
8970
6105
 
8971
6106
  // src/hooks/model/use-get-all.ts
8972
- var import_react_query28 = require("@tanstack/react-query");
6107
+ var import_react_query30 = require("@tanstack/react-query");
8973
6108
  var useGetAll = ({ data, queryKey, viewResponse }) => {
8974
- return (0, import_react_query28.useQuery)({
6109
+ return (0, import_react_query30.useQuery)({
8975
6110
  queryKey,
8976
6111
  queryFn: () => model_service_default.getAll({ data }).then((res) => {
8977
6112
  if (res) {
@@ -8986,9 +6121,9 @@ var useGetAll = ({ data, queryKey, viewResponse }) => {
8986
6121
  var use_get_all_default = useGetAll;
8987
6122
 
8988
6123
  // src/hooks/model/use-get-conversion-rate.ts
8989
- var import_react_query29 = require("@tanstack/react-query");
6124
+ var import_react_query31 = require("@tanstack/react-query");
8990
6125
  var useGetConversionRate = () => {
8991
- return (0, import_react_query29.useQuery)({
6126
+ return (0, import_react_query31.useQuery)({
8992
6127
  queryKey: ["currency-rate"],
8993
6128
  queryFn: () => model_service_default.getConversionRate().then((res) => {
8994
6129
  if (res) {
@@ -9001,9 +6136,9 @@ var useGetConversionRate = () => {
9001
6136
  var use_get_conversion_rate_default = useGetConversionRate;
9002
6137
 
9003
6138
  // src/hooks/model/use-get-currency.ts
9004
- var import_react_query30 = require("@tanstack/react-query");
6139
+ var import_react_query32 = require("@tanstack/react-query");
9005
6140
  var useGetCurrency = () => {
9006
- return (0, import_react_query30.useQuery)({
6141
+ return (0, import_react_query32.useQuery)({
9007
6142
  queryKey: ["currency"],
9008
6143
  queryFn: () => model_service_default.getCurrency().then((res) => {
9009
6144
  if (res) {
@@ -9016,9 +6151,9 @@ var useGetCurrency = () => {
9016
6151
  var use_get_currency_default = useGetCurrency;
9017
6152
 
9018
6153
  // src/hooks/model/use-get-detail.ts
9019
- var import_react_query31 = require("@tanstack/react-query");
6154
+ var import_react_query33 = require("@tanstack/react-query");
9020
6155
  var useGetDetail = () => {
9021
- return (0, import_react_query31.useMutation)({
6156
+ return (0, import_react_query33.useMutation)({
9022
6157
  mutationFn: ({
9023
6158
  model,
9024
6159
  ids,
@@ -9035,9 +6170,9 @@ var useGetDetail = () => {
9035
6170
  var use_get_detail_default = useGetDetail;
9036
6171
 
9037
6172
  // src/hooks/model/use-get-field-onchange.ts
9038
- var import_react_query32 = require("@tanstack/react-query");
6173
+ var import_react_query34 = require("@tanstack/react-query");
9039
6174
  var useGetFieldOnChange = ({ model }) => {
9040
- return (0, import_react_query32.useQuery)({
6175
+ return (0, import_react_query34.useQuery)({
9041
6176
  queryKey: [`field-onchange-${model}`, model],
9042
6177
  queryFn: () => model_service_default.getListFieldsOnchange({
9043
6178
  model
@@ -9053,13 +6188,13 @@ var useGetFieldOnChange = ({ model }) => {
9053
6188
  var use_get_field_onchange_default = useGetFieldOnChange;
9054
6189
 
9055
6190
  // src/hooks/model/use-get-list-my-bank-account.ts
9056
- var import_react_query33 = require("@tanstack/react-query");
6191
+ var import_react_query35 = require("@tanstack/react-query");
9057
6192
  var useGetListMyBankAccount = ({
9058
6193
  domain,
9059
6194
  spectification,
9060
6195
  model
9061
6196
  }) => {
9062
- return (0, import_react_query33.useQuery)({
6197
+ return (0, import_react_query35.useQuery)({
9063
6198
  queryKey: ["bank-account", model, domain],
9064
6199
  queryFn: () => model_service_default.getListMyBankAccount({
9065
6200
  domain,
@@ -9211,9 +6346,9 @@ var useOdooDataTransform = () => {
9211
6346
  var use_odoo_data_transform_default = useOdooDataTransform;
9212
6347
 
9213
6348
  // src/hooks/model/use-onchange-form.ts
9214
- var import_react_query34 = require("@tanstack/react-query");
6349
+ var import_react_query36 = require("@tanstack/react-query");
9215
6350
  var useOnChangeForm = () => {
9216
- return (0, import_react_query34.useMutation)({
6351
+ return (0, import_react_query36.useMutation)({
9217
6352
  mutationFn: ({
9218
6353
  ids,
9219
6354
  model,
@@ -9234,9 +6369,9 @@ var useOnChangeForm = () => {
9234
6369
  var use_onchange_form_default = useOnChangeForm;
9235
6370
 
9236
6371
  // src/hooks/model/use-save.ts
9237
- var import_react_query35 = require("@tanstack/react-query");
6372
+ var import_react_query37 = require("@tanstack/react-query");
9238
6373
  var useSave = () => {
9239
- return (0, import_react_query35.useMutation)({
6374
+ return (0, import_react_query37.useMutation)({
9240
6375
  mutationFn: ({
9241
6376
  ids,
9242
6377
  model,
@@ -9249,18 +6384,18 @@ var useSave = () => {
9249
6384
  var use_save_default = useSave;
9250
6385
 
9251
6386
  // src/hooks/user/use-get-profile.ts
9252
- var import_react_query36 = require("@tanstack/react-query");
6387
+ var import_react_query38 = require("@tanstack/react-query");
9253
6388
  var useGetProfile = () => {
9254
- return (0, import_react_query36.useMutation)({
6389
+ return (0, import_react_query38.useMutation)({
9255
6390
  mutationFn: () => user_service_default.getProfile()
9256
6391
  });
9257
6392
  };
9258
6393
  var use_get_profile_default = useGetProfile;
9259
6394
 
9260
6395
  // src/hooks/user/use-get-user.ts
9261
- var import_react_query37 = require("@tanstack/react-query");
6396
+ var import_react_query39 = require("@tanstack/react-query");
9262
6397
  var useGetUser = () => {
9263
- return (0, import_react_query37.useMutation)({
6398
+ return (0, import_react_query39.useMutation)({
9264
6399
  mutationFn: ({ id, context }) => user_service_default.getUser({
9265
6400
  id,
9266
6401
  context
@@ -9270,9 +6405,9 @@ var useGetUser = () => {
9270
6405
  var use_get_user_default = useGetUser;
9271
6406
 
9272
6407
  // src/hooks/user/use-switch-locale.ts
9273
- var import_react_query38 = require("@tanstack/react-query");
6408
+ var import_react_query40 = require("@tanstack/react-query");
9274
6409
  var useSwitchLocale = () => {
9275
- return (0, import_react_query38.useMutation)({
6410
+ return (0, import_react_query40.useMutation)({
9276
6411
  mutationFn: ({ data }) => {
9277
6412
  return user_service_default.switchUserLocale({
9278
6413
  id: data.id,
@@ -9284,9 +6419,9 @@ var useSwitchLocale = () => {
9284
6419
  var use_switch_locale_default = useSwitchLocale;
9285
6420
 
9286
6421
  // src/hooks/view/use-button.ts
9287
- var import_react_query39 = require("@tanstack/react-query");
6422
+ var import_react_query41 = require("@tanstack/react-query");
9288
6423
  var useButton = () => {
9289
- return (0, import_react_query39.useMutation)({
6424
+ return (0, import_react_query41.useMutation)({
9290
6425
  mutationFn: ({
9291
6426
  model,
9292
6427
  ids,
@@ -9306,9 +6441,9 @@ var useButton = () => {
9306
6441
  var use_button_default = useButton;
9307
6442
 
9308
6443
  // src/hooks/view/use-duplicate-record.ts
9309
- var import_react_query40 = require("@tanstack/react-query");
6444
+ var import_react_query42 = require("@tanstack/react-query");
9310
6445
  var useDuplicateRecord = () => {
9311
- return (0, import_react_query40.useMutation)({
6446
+ return (0, import_react_query42.useMutation)({
9312
6447
  mutationFn: ({
9313
6448
  id,
9314
6449
  model,
@@ -9323,7 +6458,7 @@ var useDuplicateRecord = () => {
9323
6458
  var use_duplicate_record_default = useDuplicateRecord;
9324
6459
 
9325
6460
  // src/hooks/view/use-get-action-detail.ts
9326
- var import_react_query41 = require("@tanstack/react-query");
6461
+ var import_react_query43 = require("@tanstack/react-query");
9327
6462
  var useGetActionDetail = ({
9328
6463
  aid,
9329
6464
  context,
@@ -9337,7 +6472,7 @@ var useGetActionDetail = ({
9337
6472
  model: model ?? "",
9338
6473
  context
9339
6474
  };
9340
- return (0, import_react_query41.useQuery)({
6475
+ return (0, import_react_query43.useQuery)({
9341
6476
  queryKey,
9342
6477
  queryFn: async () => {
9343
6478
  if (aid) {
@@ -9358,9 +6493,9 @@ var useGetActionDetail = ({
9358
6493
  var use_get_action_detail_default = useGetActionDetail;
9359
6494
 
9360
6495
  // src/hooks/view/use-get-calendar.ts
9361
- var import_react_query42 = require("@tanstack/react-query");
6496
+ var import_react_query44 = require("@tanstack/react-query");
9362
6497
  var useGetCalendar = (listDataProps, queryKey, enabled) => {
9363
- return (0, import_react_query42.useQuery)({
6498
+ return (0, import_react_query44.useQuery)({
9364
6499
  queryKey,
9365
6500
  queryFn: () => model_service_default.getListCalendar({ data: listDataProps }).then((res) => {
9366
6501
  if (res) {
@@ -9376,12 +6511,12 @@ var useGetCalendar = (listDataProps, queryKey, enabled) => {
9376
6511
  var use_get_calendar_default = useGetCalendar;
9377
6512
 
9378
6513
  // src/hooks/view/use-get-groups.ts
9379
- var import_react_query43 = require("@tanstack/react-query");
6514
+ var import_react_query45 = require("@tanstack/react-query");
9380
6515
  var useGetGroups = ({
9381
6516
  model,
9382
6517
  width_context
9383
6518
  }) => {
9384
- return (0, import_react_query43.useQuery)({
6519
+ return (0, import_react_query45.useQuery)({
9385
6520
  queryKey: [model, width_context],
9386
6521
  queryFn: () => kanban_service_default.getGroups({
9387
6522
  model,
@@ -9398,9 +6533,9 @@ var useGetGroups = ({
9398
6533
  var use_get_groups_default = useGetGroups;
9399
6534
 
9400
6535
  // src/hooks/view/use-get-list-data.ts
9401
- var import_react_query44 = require("@tanstack/react-query");
6536
+ var import_react_query46 = require("@tanstack/react-query");
9402
6537
  var useGetListData = (listDataProps, queryKey, enabled) => {
9403
- return (0, import_react_query44.useQuery)({
6538
+ return (0, import_react_query46.useQuery)({
9404
6539
  queryKey,
9405
6540
  queryFn: () => model_service_default.getAll({ data: listDataProps }).then((res) => {
9406
6541
  if (res) {
@@ -9416,9 +6551,9 @@ var useGetListData = (listDataProps, queryKey, enabled) => {
9416
6551
  var use_get_list_data_default = useGetListData;
9417
6552
 
9418
6553
  // src/hooks/view/use-get-menu.ts
9419
- var import_react_query45 = require("@tanstack/react-query");
6554
+ var import_react_query47 = require("@tanstack/react-query");
9420
6555
  var useGetMenu = (context, enabled) => {
9421
- return (0, import_react_query45.useQuery)({
6556
+ return (0, import_react_query47.useQuery)({
9422
6557
  queryKey: ["menus" /* MENU */, context],
9423
6558
  queryFn: () => view_service_default.getMenu(context).then((res) => {
9424
6559
  if (res && res?.records && res?.records?.length > 0) {
@@ -9434,9 +6569,9 @@ var useGetMenu = (context, enabled) => {
9434
6569
  var use_get_menu_default = useGetMenu;
9435
6570
 
9436
6571
  // src/hooks/view/use-get-print-report.ts
9437
- var import_react_query46 = require("@tanstack/react-query");
6572
+ var import_react_query48 = require("@tanstack/react-query");
9438
6573
  var useGetPrintReport = () => {
9439
- return (0, import_react_query46.useMutation)({
6574
+ return (0, import_react_query48.useMutation)({
9440
6575
  mutationFn: ({ id }) => action_service_default.getPrintReportName({
9441
6576
  id
9442
6577
  })
@@ -9445,14 +6580,14 @@ var useGetPrintReport = () => {
9445
6580
  var use_get_print_report_default = useGetPrintReport;
9446
6581
 
9447
6582
  // src/hooks/view/use-get-progress-bar.ts
9448
- var import_react_query47 = require("@tanstack/react-query");
6583
+ var import_react_query49 = require("@tanstack/react-query");
9449
6584
  var useGetProGressBar = ({
9450
6585
  field,
9451
6586
  color,
9452
6587
  model,
9453
6588
  width_context
9454
6589
  }) => {
9455
- return (0, import_react_query47.useQuery)({
6590
+ return (0, import_react_query49.useQuery)({
9456
6591
  queryKey: [],
9457
6592
  queryFn: () => kanban_service_default.getProgressBar({
9458
6593
  field,
@@ -9471,13 +6606,13 @@ var useGetProGressBar = ({
9471
6606
  var use_get_progress_bar_default = useGetProGressBar;
9472
6607
 
9473
6608
  // src/hooks/view/use-get-selection.ts
9474
- var import_react_query48 = require("@tanstack/react-query");
6609
+ var import_react_query50 = require("@tanstack/react-query");
9475
6610
  var useGetSelection = ({
9476
6611
  data,
9477
6612
  queryKey,
9478
6613
  enabled
9479
6614
  }) => {
9480
- return (0, import_react_query48.useQuery)({
6615
+ return (0, import_react_query50.useQuery)({
9481
6616
  queryKey,
9482
6617
  queryFn: () => view_service_default.getSelectionItem({ data }),
9483
6618
  enabled,
@@ -9487,9 +6622,9 @@ var useGetSelection = ({
9487
6622
  var use_get_selection_default = useGetSelection;
9488
6623
 
9489
6624
  // src/hooks/view/use-get-view.ts
9490
- var import_react_query49 = require("@tanstack/react-query");
6625
+ var import_react_query51 = require("@tanstack/react-query");
9491
6626
  var useGetView = (viewParams, actData) => {
9492
- return (0, import_react_query49.useQuery)({
6627
+ return (0, import_react_query51.useQuery)({
9493
6628
  queryKey: ["get_view_by_action" /* GET_VIEW_BY_ACTION */, viewParams],
9494
6629
  queryFn: () => view_service_default.getView(viewParams),
9495
6630
  enabled: !!actData,
@@ -9500,9 +6635,9 @@ var useGetView = (viewParams, actData) => {
9500
6635
  var use_get_view_default = useGetView;
9501
6636
 
9502
6637
  // src/hooks/view/use-load-action.ts
9503
- var import_react_query50 = require("@tanstack/react-query");
6638
+ var import_react_query52 = require("@tanstack/react-query");
9504
6639
  var useLoadAction = () => {
9505
- return (0, import_react_query50.useMutation)({
6640
+ return (0, import_react_query52.useMutation)({
9506
6641
  mutationFn: ({
9507
6642
  idAction,
9508
6643
  context
@@ -9517,9 +6652,9 @@ var useLoadAction = () => {
9517
6652
  var use_load_action_default = useLoadAction;
9518
6653
 
9519
6654
  // src/hooks/view/use-load-message.ts
9520
- var import_react_query51 = require("@tanstack/react-query");
6655
+ var import_react_query53 = require("@tanstack/react-query");
9521
6656
  var useLoadMessage = () => {
9522
- return (0, import_react_query51.useQuery)({
6657
+ return (0, import_react_query53.useQuery)({
9523
6658
  queryKey: [`load-message-failure`],
9524
6659
  queryFn: () => view_service_default.loadMessages(),
9525
6660
  refetchOnWindowFocus: false
@@ -9528,9 +6663,9 @@ var useLoadMessage = () => {
9528
6663
  var use_load_message_default = useLoadMessage;
9529
6664
 
9530
6665
  // src/hooks/view/use-print.ts
9531
- var import_react_query52 = require("@tanstack/react-query");
6666
+ var import_react_query54 = require("@tanstack/react-query");
9532
6667
  var usePrint = () => {
9533
- return (0, import_react_query52.useMutation)({
6668
+ return (0, import_react_query54.useMutation)({
9534
6669
  mutationFn: ({ id, report, db }) => action_service_default.print({
9535
6670
  id,
9536
6671
  report,
@@ -9541,9 +6676,9 @@ var usePrint = () => {
9541
6676
  var use_print_default = usePrint;
9542
6677
 
9543
6678
  // src/hooks/view/use-remove-row.ts
9544
- var import_react_query53 = require("@tanstack/react-query");
6679
+ var import_react_query55 = require("@tanstack/react-query");
9545
6680
  var useRemoveRow = () => {
9546
- return (0, import_react_query53.useMutation)({
6681
+ return (0, import_react_query55.useMutation)({
9547
6682
  mutationFn: ({
9548
6683
  model,
9549
6684
  ids,
@@ -9558,9 +6693,9 @@ var useRemoveRow = () => {
9558
6693
  var use_remove_row_default = useRemoveRow;
9559
6694
 
9560
6695
  // src/hooks/view/use-resequence.ts
9561
- var import_react_query54 = require("@tanstack/react-query");
6696
+ var import_react_query56 = require("@tanstack/react-query");
9562
6697
  var useGetResequence = (model, resIds, context, offset) => {
9563
- return (0, import_react_query54.useQuery)({
6698
+ return (0, import_react_query56.useQuery)({
9564
6699
  queryKey: [],
9565
6700
  queryFn: () => view_service_default.getResequence({
9566
6701
  model,
@@ -9575,9 +6710,9 @@ var useGetResequence = (model, resIds, context, offset) => {
9575
6710
  var use_resequence_default = useGetResequence;
9576
6711
 
9577
6712
  // src/hooks/view/use-run-action.ts
9578
- var import_react_query55 = require("@tanstack/react-query");
6713
+ var import_react_query57 = require("@tanstack/react-query");
9579
6714
  var useRunAction = () => {
9580
- return (0, import_react_query55.useMutation)({
6715
+ return (0, import_react_query57.useMutation)({
9581
6716
  mutationFn: ({
9582
6717
  idAction,
9583
6718
  context
@@ -9590,9 +6725,9 @@ var useRunAction = () => {
9590
6725
  var use_run_action_default = useRunAction;
9591
6726
 
9592
6727
  // src/hooks/view/use-signin-sso.ts
9593
- var import_react_query56 = require("@tanstack/react-query");
6728
+ var import_react_query58 = require("@tanstack/react-query");
9594
6729
  var useSignInSSO = () => {
9595
- return (0, import_react_query56.useMutation)({
6730
+ return (0, import_react_query58.useMutation)({
9596
6731
  mutationFn: ({
9597
6732
  redirect_uri,
9598
6733
  state,
@@ -9613,9 +6748,9 @@ var useSignInSSO = () => {
9613
6748
  var use_signin_sso_default = useSignInSSO;
9614
6749
 
9615
6750
  // src/hooks/view/use-verify-2FA.ts
9616
- var import_react_query57 = require("@tanstack/react-query");
6751
+ var import_react_query59 = require("@tanstack/react-query");
9617
6752
  var useVerify2FA = () => {
9618
- return (0, import_react_query57.useMutation)({
6753
+ return (0, import_react_query59.useMutation)({
9619
6754
  mutationFn: ({
9620
6755
  method,
9621
6756
  with_context,
@@ -9632,9 +6767,9 @@ var useVerify2FA = () => {
9632
6767
  var use_verify_2FA_default = useVerify2FA;
9633
6768
 
9634
6769
  // src/hooks/view/uset-get-2FA-method.ts
9635
- var import_react_query58 = require("@tanstack/react-query");
6770
+ var import_react_query60 = require("@tanstack/react-query");
9636
6771
  var useGet2FAMethods = () => {
9637
- return (0, import_react_query58.useMutation)({
6772
+ return (0, import_react_query60.useMutation)({
9638
6773
  mutationFn: ({
9639
6774
  method,
9640
6775
  with_context
@@ -9648,6 +6783,24 @@ var useGet2FAMethods = () => {
9648
6783
  };
9649
6784
  var uset_get_2FA_method_default = useGet2FAMethods;
9650
6785
 
6786
+ // src/hooks/view/use-get-fields-view-security.ts
6787
+ var import_react_query61 = require("@tanstack/react-query");
6788
+
6789
+ // src/hooks/view/use-grant-access.ts
6790
+ var import_react_query62 = require("@tanstack/react-query");
6791
+
6792
+ // src/hooks/view/use-remove-totp-setup.ts
6793
+ var import_react_query63 = require("@tanstack/react-query");
6794
+
6795
+ // src/hooks/view/use-request-setup-totp.ts
6796
+ var import_react_query64 = require("@tanstack/react-query");
6797
+
6798
+ // src/hooks/view/use-settings-web-read-2fa.ts
6799
+ var import_react_query65 = require("@tanstack/react-query");
6800
+
6801
+ // src/hooks/view/use-verify-totp.ts
6802
+ var import_react_query66 = require("@tanstack/react-query");
6803
+
9651
6804
  // src/models/company-model/index.ts
9652
6805
  var CompanyModel = class extends base_model_default {
9653
6806
  constructor(init) {
@@ -9674,10 +6827,10 @@ var UserModel = class extends base_model_default {
9674
6827
  var user_model_default = UserModel;
9675
6828
 
9676
6829
  // src/provider/react-query-provider.tsx
9677
- var import_react_query59 = require("@tanstack/react-query");
9678
- var import_jsx_runtime = __toESM(require_jsx_runtime());
6830
+ var import_react_query67 = require("@tanstack/react-query");
6831
+ var import_jsx_runtime = require("react/jsx-runtime");
9679
6832
  var ReactQueryProvider = ({ children }) => {
9680
- const queryClient = new import_react_query59.QueryClient({
6833
+ const queryClient = new import_react_query67.QueryClient({
9681
6834
  defaultOptions: {
9682
6835
  queries: {
9683
6836
  // placeholderData: keepPreviousData,
@@ -9688,28 +6841,28 @@ var ReactQueryProvider = ({ children }) => {
9688
6841
  }
9689
6842
  }
9690
6843
  });
9691
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query59.QueryClientProvider, { client: queryClient, children });
6844
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_query67.QueryClientProvider, { client: queryClient, children });
9692
6845
  };
9693
6846
 
9694
6847
  // src/provider/redux-provider.tsx
9695
6848
  var import_react_redux2 = require("react-redux");
9696
- var import_jsx_runtime2 = __toESM(require_jsx_runtime());
6849
+ var import_jsx_runtime2 = require("react/jsx-runtime");
9697
6850
  var ReduxProvider = ({ children }) => {
9698
6851
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_redux2.Provider, { store: envStore, children });
9699
6852
  };
9700
6853
 
9701
6854
  // src/provider/main-provider.tsx
9702
- var import_jsx_runtime3 = __toESM(require_jsx_runtime());
6855
+ var import_jsx_runtime3 = require("react/jsx-runtime");
9703
6856
  var MainProvider = ({ children }) => {
9704
6857
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ReduxProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ReactQueryProvider, { children }) });
9705
6858
  };
9706
6859
 
9707
6860
  // src/provider/version-gate-provider.tsx
9708
- var import_react = __toESM(require_react());
9709
- var import_react_query60 = require("@tanstack/react-query");
9710
- var import_jsx_runtime4 = __toESM(require_jsx_runtime());
6861
+ var import_react = require("react");
6862
+ var import_react_query68 = require("@tanstack/react-query");
6863
+ var import_jsx_runtime4 = require("react/jsx-runtime");
9711
6864
  var VersionGate = ({ children }) => {
9712
- const queryClient = (0, import_react_query60.useQueryClient)();
6865
+ const queryClient = (0, import_react_query68.useQueryClient)();
9713
6866
  const [ready, setReady] = (0, import_react.useState)(false);
9714
6867
  (0, import_react.useEffect)(() => {
9715
6868
  const clearVersion = () => {
@@ -9880,6 +7033,7 @@ var VersionGate = ({ children }) => {
9880
7033
  stringToColor,
9881
7034
  toQueryString,
9882
7035
  updateSearchMap,
7036
+ updateTokenParamInOriginalRequest,
9883
7037
  useAppDispatch,
9884
7038
  useAppSelector,
9885
7039
  useButton,
@@ -9892,6 +7046,7 @@ var VersionGate = ({ children }) => {
9892
7046
  useForgotPassword,
9893
7047
  useForgotPasswordSSO,
9894
7048
  useGet2FAMethods,
7049
+ useGetAccessByCode,
9895
7050
  useGetActionDetail,
9896
7051
  useGetAll,
9897
7052
  useGetCalendar,
@@ -9924,6 +7079,7 @@ var VersionGate = ({ children }) => {
9924
7079
  useLoadMessage,
9925
7080
  useLoginCredential,
9926
7081
  useLoginSocial,
7082
+ useLogout,
9927
7083
  useModel,
9928
7084
  useOdooDataTransform,
9929
7085
  useOnChangeForm,
@@ -9945,49 +7101,3 @@ var VersionGate = ({ children }) => {
9945
7101
  useVerify2FA,
9946
7102
  validateAndParseDate
9947
7103
  });
9948
- /*! Bundled license information:
9949
-
9950
- react/cjs/react.production.min.js:
9951
- (**
9952
- * @license React
9953
- * react.production.min.js
9954
- *
9955
- * Copyright (c) Facebook, Inc. and its affiliates.
9956
- *
9957
- * This source code is licensed under the MIT license found in the
9958
- * LICENSE file in the root directory of this source tree.
9959
- *)
9960
-
9961
- react/cjs/react.development.js:
9962
- (**
9963
- * @license React
9964
- * react.development.js
9965
- *
9966
- * Copyright (c) Facebook, Inc. and its affiliates.
9967
- *
9968
- * This source code is licensed under the MIT license found in the
9969
- * LICENSE file in the root directory of this source tree.
9970
- *)
9971
-
9972
- react/cjs/react-jsx-runtime.production.min.js:
9973
- (**
9974
- * @license React
9975
- * react-jsx-runtime.production.min.js
9976
- *
9977
- * Copyright (c) Facebook, Inc. and its affiliates.
9978
- *
9979
- * This source code is licensed under the MIT license found in the
9980
- * LICENSE file in the root directory of this source tree.
9981
- *)
9982
-
9983
- react/cjs/react-jsx-runtime.development.js:
9984
- (**
9985
- * @license React
9986
- * react-jsx-runtime.development.js
9987
- *
9988
- * Copyright (c) Facebook, Inc. and its affiliates.
9989
- *
9990
- * This source code is licensed under the MIT license found in the
9991
- * LICENSE file in the root directory of this source tree.
9992
- *)
9993
- */