@quantajs/react 2.0.0-beta.1 → 2.0.0-beta.3
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.cjs +7 -15
- package/dist/index.d.ts +16 -8
- package/dist/index.js +326 -603
- package/package.json +8 -4
- package/readme.md +140 -133
package/dist/index.js
CHANGED
|
@@ -20,674 +20,397 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
22
|
*/
|
|
23
|
-
import
|
|
24
|
-
import { createStore as
|
|
25
|
-
import { computed as
|
|
26
|
-
function
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
import oe, { useSyncExternalStore as ne, createContext as ae, useContext as se, useRef as ue } from "react";
|
|
24
|
+
import { logger as f, createStore as ce } from "@quantajs/core";
|
|
25
|
+
import { computed as ge, createStore as he, logger as Te, reactive as we, watch as xe } from "@quantajs/core";
|
|
26
|
+
function I(o, s) {
|
|
27
|
+
try {
|
|
28
|
+
return ne(
|
|
29
|
+
o.subscribe,
|
|
30
|
+
() => {
|
|
31
|
+
try {
|
|
32
|
+
return s ? s(o) : o;
|
|
33
|
+
} catch (r) {
|
|
34
|
+
throw f.error(
|
|
35
|
+
`useQuantaStore: Failed to get store snapshot: ${r instanceof Error ? r.message : String(r)}`
|
|
36
|
+
), r;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
() => {
|
|
40
|
+
try {
|
|
41
|
+
return s ? s(o) : o;
|
|
42
|
+
} catch (r) {
|
|
43
|
+
throw f.error(
|
|
44
|
+
`useQuantaStore: Failed to get server snapshot: ${r instanceof Error ? r.message : String(r)}`
|
|
45
|
+
), r;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
39
48
|
);
|
|
40
|
-
|
|
49
|
+
} catch (r) {
|
|
50
|
+
throw f.error(
|
|
51
|
+
`useQuantaStore: Hook execution failed: ${r instanceof Error ? r.message : String(r)}`
|
|
52
|
+
), r;
|
|
53
|
+
}
|
|
41
54
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
55
|
+
const L = ae({ stores: {} });
|
|
56
|
+
function ie() {
|
|
57
|
+
try {
|
|
58
|
+
const o = se(L);
|
|
59
|
+
if (!o) {
|
|
60
|
+
const s = "useQuantaContext must be used within a QuantaProvider";
|
|
61
|
+
throw f.error(`QuantaContext: ${s}`), new Error(s);
|
|
62
|
+
}
|
|
63
|
+
return o;
|
|
64
|
+
} catch (o) {
|
|
65
|
+
throw f.error(
|
|
66
|
+
`QuantaContext: Failed to access context: ${o instanceof Error ? o.message : String(o)}`
|
|
67
|
+
), o;
|
|
68
|
+
}
|
|
45
69
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
|
|
70
|
+
function be(o, s) {
|
|
71
|
+
try {
|
|
72
|
+
const { stores: r } = ie(), l = r[o];
|
|
73
|
+
if (!l) {
|
|
74
|
+
const n = `Store with name "${o}" does not exist in the context.`;
|
|
75
|
+
throw f.error(`useStore: ${n}`), new Error(n);
|
|
76
|
+
}
|
|
77
|
+
return s ? I(l, s) : I(l);
|
|
78
|
+
} catch (r) {
|
|
79
|
+
throw f.error(
|
|
80
|
+
`useStore: Failed to access store "${o}": ${r instanceof Error ? r.message : String(r)}`
|
|
81
|
+
), r;
|
|
82
|
+
}
|
|
49
83
|
}
|
|
50
|
-
|
|
84
|
+
function Re(o, s, r, l) {
|
|
85
|
+
try {
|
|
86
|
+
const n = ue(void 0);
|
|
87
|
+
if (!n.current)
|
|
88
|
+
try {
|
|
89
|
+
n.current = ce(o, {
|
|
90
|
+
state: s,
|
|
91
|
+
getters: r,
|
|
92
|
+
actions: l
|
|
93
|
+
});
|
|
94
|
+
} catch (i) {
|
|
95
|
+
throw f.error(
|
|
96
|
+
`useCreateStore: Failed to create store "${o}": ${i instanceof Error ? i.message : String(i)}`
|
|
97
|
+
), i;
|
|
98
|
+
}
|
|
99
|
+
return n.current;
|
|
100
|
+
} catch (n) {
|
|
101
|
+
throw f.error(
|
|
102
|
+
`useCreateStore: Hook execution failed: ${n instanceof Error ? n.message : String(n)}`
|
|
103
|
+
), n;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
var S = { exports: {} }, R = {};
|
|
51
107
|
/**
|
|
52
108
|
* @license React
|
|
53
|
-
* react-jsx-runtime.production.
|
|
109
|
+
* react-jsx-runtime.production.js
|
|
54
110
|
*
|
|
55
|
-
* Copyright (c)
|
|
111
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
56
112
|
*
|
|
57
113
|
* This source code is licensed under the MIT license found in the
|
|
58
114
|
* LICENSE file in the root directory of this source tree.
|
|
59
115
|
*/
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
var
|
|
65
|
-
function
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
116
|
+
var M;
|
|
117
|
+
function le() {
|
|
118
|
+
if (M) return R;
|
|
119
|
+
M = 1;
|
|
120
|
+
var o = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
121
|
+
function r(l, n, i) {
|
|
122
|
+
var v = null;
|
|
123
|
+
if (i !== void 0 && (v = "" + i), n.key !== void 0 && (v = "" + n.key), "key" in n) {
|
|
124
|
+
i = {};
|
|
125
|
+
for (var b in n)
|
|
126
|
+
b !== "key" && (i[b] = n[b]);
|
|
127
|
+
} else i = n;
|
|
128
|
+
return n = i.ref, {
|
|
129
|
+
$$typeof: o,
|
|
130
|
+
type: l,
|
|
131
|
+
key: v,
|
|
132
|
+
ref: n !== void 0 ? n : null,
|
|
133
|
+
props: i
|
|
134
|
+
};
|
|
71
135
|
}
|
|
72
|
-
return
|
|
136
|
+
return R.Fragment = s, R.jsx = r, R.jsxs = r, R;
|
|
73
137
|
}
|
|
74
|
-
var
|
|
138
|
+
var _ = {};
|
|
75
139
|
/**
|
|
76
140
|
* @license React
|
|
77
141
|
* react-jsx-runtime.development.js
|
|
78
142
|
*
|
|
79
|
-
* Copyright (c)
|
|
143
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
80
144
|
*
|
|
81
145
|
* This source code is licensed under the MIT license found in the
|
|
82
146
|
* LICENSE file in the root directory of this source tree.
|
|
83
147
|
*/
|
|
84
|
-
var
|
|
85
|
-
function
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (
|
|
90
|
-
return null;
|
|
91
|
-
|
|
92
|
-
return typeof r == "function" ? r : null;
|
|
93
|
-
}
|
|
94
|
-
var P = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
95
|
-
function d(e) {
|
|
96
|
-
{
|
|
97
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
98
|
-
t[n - 1] = arguments[n];
|
|
99
|
-
ke("error", e, t);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
function ke(e, r, t) {
|
|
103
|
-
{
|
|
104
|
-
var n = P.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
105
|
-
i !== "" && (r += "%s", t = t.concat([i]));
|
|
106
|
-
var u = t.map(function(o) {
|
|
107
|
-
return String(o);
|
|
108
|
-
});
|
|
109
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
var De = !1, Fe = !1, Ae = !1, Ie = !1, $e = !1, H;
|
|
113
|
-
H = Symbol.for("react.module.reference");
|
|
114
|
-
function We(e) {
|
|
115
|
-
return !!(typeof e == "string" || typeof e == "function" || e === R || e === $ || $e || e === y || e === O || e === E || Ie || e === W || De || Fe || Ae || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === h || e.$$typeof === k || e.$$typeof === m || e.$$typeof === v || // This needs to include all possible module reference object
|
|
116
|
-
// types supported by any Flight configuration anywhere since
|
|
117
|
-
// we don't know which Flight build this will end up being used
|
|
118
|
-
// with.
|
|
119
|
-
e.$$typeof === H || e.getModuleId !== void 0));
|
|
120
|
-
}
|
|
121
|
-
function Ye(e, r, t) {
|
|
122
|
-
var n = e.displayName;
|
|
123
|
-
if (n)
|
|
124
|
-
return n;
|
|
125
|
-
var i = r.displayName || r.name || "";
|
|
126
|
-
return i !== "" ? t + "(" + i + ")" : t;
|
|
127
|
-
}
|
|
128
|
-
function Z(e) {
|
|
129
|
-
return e.displayName || "Context";
|
|
130
|
-
}
|
|
131
|
-
function _(e) {
|
|
132
|
-
if (e == null)
|
|
133
|
-
return null;
|
|
134
|
-
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
135
|
-
return e.displayName || e.name || null;
|
|
136
|
-
if (typeof e == "string")
|
|
137
|
-
return e;
|
|
148
|
+
var Q;
|
|
149
|
+
function fe() {
|
|
150
|
+
return Q || (Q = 1, process.env.NODE_ENV !== "production" && function() {
|
|
151
|
+
function o(e) {
|
|
152
|
+
if (e == null) return null;
|
|
153
|
+
if (typeof e == "function")
|
|
154
|
+
return e.$$typeof === ee ? null : e.displayName || e.name || null;
|
|
155
|
+
if (typeof e == "string") return e;
|
|
138
156
|
switch (e) {
|
|
139
|
-
case
|
|
157
|
+
case g:
|
|
140
158
|
return "Fragment";
|
|
141
|
-
case
|
|
142
|
-
return "Portal";
|
|
143
|
-
case $:
|
|
159
|
+
case z:
|
|
144
160
|
return "Profiler";
|
|
145
|
-
case
|
|
161
|
+
case J:
|
|
146
162
|
return "StrictMode";
|
|
147
|
-
case
|
|
163
|
+
case H:
|
|
148
164
|
return "Suspense";
|
|
149
|
-
case
|
|
165
|
+
case B:
|
|
150
166
|
return "SuspenseList";
|
|
167
|
+
case K:
|
|
168
|
+
return "Activity";
|
|
151
169
|
}
|
|
152
170
|
if (typeof e == "object")
|
|
153
|
-
switch (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return
|
|
160
|
-
case
|
|
161
|
-
return
|
|
162
|
-
case
|
|
163
|
-
var
|
|
164
|
-
return
|
|
165
|
-
case
|
|
166
|
-
|
|
171
|
+
switch (typeof e.tag == "number" && console.error(
|
|
172
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
173
|
+
), e.$$typeof) {
|
|
174
|
+
case q:
|
|
175
|
+
return "Portal";
|
|
176
|
+
case G:
|
|
177
|
+
return (e.displayName || "Context") + ".Provider";
|
|
178
|
+
case V:
|
|
179
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
180
|
+
case X:
|
|
181
|
+
var t = e.render;
|
|
182
|
+
return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
183
|
+
case Z:
|
|
184
|
+
return t = e.displayName || null, t !== null ? t : o(e.type) || "Memo";
|
|
185
|
+
case A:
|
|
186
|
+
t = e._payload, e = e._init;
|
|
167
187
|
try {
|
|
168
|
-
return
|
|
188
|
+
return o(e(t));
|
|
169
189
|
} catch {
|
|
170
|
-
return null;
|
|
171
190
|
}
|
|
172
|
-
}
|
|
173
191
|
}
|
|
174
192
|
return null;
|
|
175
193
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
ue.__reactDisabledLog = !0;
|
|
180
|
-
function Le() {
|
|
181
|
-
{
|
|
182
|
-
if (D === 0) {
|
|
183
|
-
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
|
|
184
|
-
var e = {
|
|
185
|
-
configurable: !0,
|
|
186
|
-
enumerable: !0,
|
|
187
|
-
value: ue,
|
|
188
|
-
writable: !0
|
|
189
|
-
};
|
|
190
|
-
Object.defineProperties(console, {
|
|
191
|
-
info: e,
|
|
192
|
-
log: e,
|
|
193
|
-
warn: e,
|
|
194
|
-
error: e,
|
|
195
|
-
group: e,
|
|
196
|
-
groupCollapsed: e,
|
|
197
|
-
groupEnd: e
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
D++;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
function Ve() {
|
|
204
|
-
{
|
|
205
|
-
if (D--, D === 0) {
|
|
206
|
-
var e = {
|
|
207
|
-
configurable: !0,
|
|
208
|
-
enumerable: !0,
|
|
209
|
-
writable: !0
|
|
210
|
-
};
|
|
211
|
-
Object.defineProperties(console, {
|
|
212
|
-
log: S({}, e, {
|
|
213
|
-
value: ee
|
|
214
|
-
}),
|
|
215
|
-
info: S({}, e, {
|
|
216
|
-
value: re
|
|
217
|
-
}),
|
|
218
|
-
warn: S({}, e, {
|
|
219
|
-
value: te
|
|
220
|
-
}),
|
|
221
|
-
error: S({}, e, {
|
|
222
|
-
value: ne
|
|
223
|
-
}),
|
|
224
|
-
group: S({}, e, {
|
|
225
|
-
value: ae
|
|
226
|
-
}),
|
|
227
|
-
groupCollapsed: S({}, e, {
|
|
228
|
-
value: oe
|
|
229
|
-
}),
|
|
230
|
-
groupEnd: S({}, e, {
|
|
231
|
-
value: ie
|
|
232
|
-
})
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
D < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
var N = P.ReactCurrentDispatcher, J;
|
|
239
|
-
function Y(e, r, t) {
|
|
240
|
-
{
|
|
241
|
-
if (J === void 0)
|
|
242
|
-
try {
|
|
243
|
-
throw Error();
|
|
244
|
-
} catch (i) {
|
|
245
|
-
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
246
|
-
J = n && n[1] || "";
|
|
247
|
-
}
|
|
248
|
-
return `
|
|
249
|
-
` + J + e;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
var q = !1, L;
|
|
253
|
-
{
|
|
254
|
-
var Me = typeof WeakMap == "function" ? WeakMap : Map;
|
|
255
|
-
L = new Me();
|
|
194
|
+
function s(e) {
|
|
195
|
+
return "" + e;
|
|
256
196
|
}
|
|
257
|
-
function
|
|
258
|
-
if (!e || q)
|
|
259
|
-
return "";
|
|
260
|
-
{
|
|
261
|
-
var t = L.get(e);
|
|
262
|
-
if (t !== void 0)
|
|
263
|
-
return t;
|
|
264
|
-
}
|
|
265
|
-
var n;
|
|
266
|
-
q = !0;
|
|
267
|
-
var i = Error.prepareStackTrace;
|
|
268
|
-
Error.prepareStackTrace = void 0;
|
|
269
|
-
var u;
|
|
270
|
-
u = N.current, N.current = null, Le();
|
|
197
|
+
function r(e) {
|
|
271
198
|
try {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
if (Object.defineProperty(o.prototype, "props", {
|
|
277
|
-
set: function() {
|
|
278
|
-
throw Error();
|
|
279
|
-
}
|
|
280
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
281
|
-
try {
|
|
282
|
-
Reflect.construct(o, []);
|
|
283
|
-
} catch (g) {
|
|
284
|
-
n = g;
|
|
285
|
-
}
|
|
286
|
-
Reflect.construct(e, [], o);
|
|
287
|
-
} else {
|
|
288
|
-
try {
|
|
289
|
-
o.call();
|
|
290
|
-
} catch (g) {
|
|
291
|
-
n = g;
|
|
292
|
-
}
|
|
293
|
-
e.call(o.prototype);
|
|
294
|
-
}
|
|
295
|
-
} else {
|
|
296
|
-
try {
|
|
297
|
-
throw Error();
|
|
298
|
-
} catch (g) {
|
|
299
|
-
n = g;
|
|
300
|
-
}
|
|
301
|
-
e();
|
|
302
|
-
}
|
|
303
|
-
} catch (g) {
|
|
304
|
-
if (g && n && typeof g.stack == "string") {
|
|
305
|
-
for (var a = g.stack.split(`
|
|
306
|
-
`), p = n.stack.split(`
|
|
307
|
-
`), s = a.length - 1, f = p.length - 1; s >= 1 && f >= 0 && a[s] !== p[f]; )
|
|
308
|
-
f--;
|
|
309
|
-
for (; s >= 1 && f >= 0; s--, f--)
|
|
310
|
-
if (a[s] !== p[f]) {
|
|
311
|
-
if (s !== 1 || f !== 1)
|
|
312
|
-
do
|
|
313
|
-
if (s--, f--, f < 0 || a[s] !== p[f]) {
|
|
314
|
-
var b = `
|
|
315
|
-
` + a[s].replace(" at new ", " at ");
|
|
316
|
-
return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, b), b;
|
|
317
|
-
}
|
|
318
|
-
while (s >= 1 && f >= 0);
|
|
319
|
-
break;
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
} finally {
|
|
323
|
-
q = !1, N.current = u, Ve(), Error.prepareStackTrace = i;
|
|
324
|
-
}
|
|
325
|
-
var x = e ? e.displayName || e.name : "", C = x ? Y(x) : "";
|
|
326
|
-
return typeof e == "function" && L.set(e, C), C;
|
|
327
|
-
}
|
|
328
|
-
function Ue(e, r, t) {
|
|
329
|
-
return se(e, !1);
|
|
330
|
-
}
|
|
331
|
-
function Ne(e) {
|
|
332
|
-
var r = e.prototype;
|
|
333
|
-
return !!(r && r.isReactComponent);
|
|
334
|
-
}
|
|
335
|
-
function V(e, r, t) {
|
|
336
|
-
if (e == null)
|
|
337
|
-
return "";
|
|
338
|
-
if (typeof e == "function")
|
|
339
|
-
return se(e, Ne(e));
|
|
340
|
-
if (typeof e == "string")
|
|
341
|
-
return Y(e);
|
|
342
|
-
switch (e) {
|
|
343
|
-
case O:
|
|
344
|
-
return Y("Suspense");
|
|
345
|
-
case E:
|
|
346
|
-
return Y("SuspenseList");
|
|
347
|
-
}
|
|
348
|
-
if (typeof e == "object")
|
|
349
|
-
switch (e.$$typeof) {
|
|
350
|
-
case v:
|
|
351
|
-
return Ue(e.render);
|
|
352
|
-
case h:
|
|
353
|
-
return V(e.type, r, t);
|
|
354
|
-
case T: {
|
|
355
|
-
var n = e, i = n._payload, u = n._init;
|
|
356
|
-
try {
|
|
357
|
-
return V(u(i), r, t);
|
|
358
|
-
} catch {
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
return "";
|
|
363
|
-
}
|
|
364
|
-
var F = Object.prototype.hasOwnProperty, fe = {}, le = P.ReactDebugCurrentFrame;
|
|
365
|
-
function M(e) {
|
|
366
|
-
if (e) {
|
|
367
|
-
var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
|
|
368
|
-
le.setExtraStackFrame(t);
|
|
369
|
-
} else
|
|
370
|
-
le.setExtraStackFrame(null);
|
|
371
|
-
}
|
|
372
|
-
function Je(e, r, t, n, i) {
|
|
373
|
-
{
|
|
374
|
-
var u = Function.call.bind(F);
|
|
375
|
-
for (var o in e)
|
|
376
|
-
if (u(e, o)) {
|
|
377
|
-
var a = void 0;
|
|
378
|
-
try {
|
|
379
|
-
if (typeof e[o] != "function") {
|
|
380
|
-
var p = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
381
|
-
throw p.name = "Invariant Violation", p;
|
|
382
|
-
}
|
|
383
|
-
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
384
|
-
} catch (s) {
|
|
385
|
-
a = s;
|
|
386
|
-
}
|
|
387
|
-
a && !(a instanceof Error) && (M(i), d("%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).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), d("Failed %s type: %s", t, a.message), M(null));
|
|
388
|
-
}
|
|
199
|
+
s(e);
|
|
200
|
+
var t = !1;
|
|
201
|
+
} catch {
|
|
202
|
+
t = !0;
|
|
389
203
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return t;
|
|
204
|
+
if (t) {
|
|
205
|
+
t = console;
|
|
206
|
+
var a = t.error, u = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
207
|
+
return a.call(
|
|
208
|
+
t,
|
|
209
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
210
|
+
u
|
|
211
|
+
), s(e);
|
|
399
212
|
}
|
|
400
213
|
}
|
|
401
|
-
function
|
|
214
|
+
function l(e) {
|
|
215
|
+
if (e === g) return "<>";
|
|
216
|
+
if (typeof e == "object" && e !== null && e.$$typeof === A)
|
|
217
|
+
return "<...>";
|
|
402
218
|
try {
|
|
403
|
-
|
|
219
|
+
var t = o(e);
|
|
220
|
+
return t ? "<" + t + ">" : "<...>";
|
|
404
221
|
} catch {
|
|
405
|
-
return
|
|
222
|
+
return "<...>";
|
|
406
223
|
}
|
|
407
224
|
}
|
|
408
|
-
function
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
function ve(e) {
|
|
412
|
-
if (Ke(e))
|
|
413
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ce(e);
|
|
225
|
+
function n() {
|
|
226
|
+
var e = h.A;
|
|
227
|
+
return e === null ? null : e.getOwner();
|
|
414
228
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
ref: !0,
|
|
418
|
-
__self: !0,
|
|
419
|
-
__source: !0
|
|
420
|
-
}, pe, ge;
|
|
421
|
-
function Qe(e) {
|
|
422
|
-
if (F.call(e, "ref")) {
|
|
423
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
424
|
-
if (r && r.isReactWarning)
|
|
425
|
-
return !1;
|
|
426
|
-
}
|
|
427
|
-
return e.ref !== void 0;
|
|
229
|
+
function i() {
|
|
230
|
+
return Error("react-stack-top-frame");
|
|
428
231
|
}
|
|
429
|
-
function
|
|
430
|
-
if (
|
|
431
|
-
var
|
|
432
|
-
if (
|
|
433
|
-
return !1;
|
|
232
|
+
function v(e) {
|
|
233
|
+
if (j.call(e, "key")) {
|
|
234
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
235
|
+
if (t && t.isReactWarning) return !1;
|
|
434
236
|
}
|
|
435
237
|
return e.key !== void 0;
|
|
436
238
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
pe || (pe = !0, d("%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)", r));
|
|
444
|
-
};
|
|
445
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
446
|
-
get: t,
|
|
447
|
-
configurable: !0
|
|
448
|
-
});
|
|
239
|
+
function b(e, t) {
|
|
240
|
+
function a() {
|
|
241
|
+
C || (C = !0, console.error(
|
|
242
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
243
|
+
t
|
|
244
|
+
));
|
|
449
245
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
465
|
-
$$typeof: c,
|
|
466
|
-
// Built-in properties that belong on the element
|
|
246
|
+
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
247
|
+
get: a,
|
|
248
|
+
configurable: !0
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
function W() {
|
|
252
|
+
var e = o(this.type);
|
|
253
|
+
return N[e] || (N[e] = !0, console.error(
|
|
254
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
255
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
256
|
+
}
|
|
257
|
+
function U(e, t, a, u, m, d, w, x) {
|
|
258
|
+
return a = d.ref, e = {
|
|
259
|
+
$$typeof: y,
|
|
467
260
|
type: e,
|
|
468
|
-
key:
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
261
|
+
key: t,
|
|
262
|
+
props: d,
|
|
263
|
+
_owner: m
|
|
264
|
+
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
265
|
+
enumerable: !1,
|
|
266
|
+
get: W
|
|
267
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
475
268
|
configurable: !1,
|
|
476
269
|
enumerable: !1,
|
|
477
270
|
writable: !0,
|
|
478
|
-
value:
|
|
479
|
-
}), Object.defineProperty(
|
|
271
|
+
value: 0
|
|
272
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
480
273
|
configurable: !1,
|
|
481
274
|
enumerable: !1,
|
|
482
|
-
writable: !
|
|
483
|
-
value:
|
|
484
|
-
}), Object.defineProperty(
|
|
275
|
+
writable: !0,
|
|
276
|
+
value: null
|
|
277
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
485
278
|
configurable: !1,
|
|
486
279
|
enumerable: !1,
|
|
487
|
-
writable: !
|
|
488
|
-
value:
|
|
489
|
-
}), Object.
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
}
|
|
517
|
-
var G;
|
|
518
|
-
G = !1;
|
|
519
|
-
function Q(e) {
|
|
520
|
-
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
521
|
-
}
|
|
522
|
-
function be() {
|
|
523
|
-
{
|
|
524
|
-
if (K.current) {
|
|
525
|
-
var e = _(K.current.type);
|
|
526
|
-
if (e)
|
|
527
|
-
return `
|
|
528
|
-
|
|
529
|
-
Check the render method of \`` + e + "`.";
|
|
530
|
-
}
|
|
531
|
-
return "";
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function tr(e) {
|
|
535
|
-
return "";
|
|
536
|
-
}
|
|
537
|
-
var he = {};
|
|
538
|
-
function nr(e) {
|
|
539
|
-
{
|
|
540
|
-
var r = be();
|
|
541
|
-
if (!r) {
|
|
542
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
543
|
-
t && (r = `
|
|
544
|
-
|
|
545
|
-
Check the top-level render call using <` + t + ">.");
|
|
546
|
-
}
|
|
547
|
-
return r;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
function Re(e, r) {
|
|
551
|
-
{
|
|
552
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
553
|
-
return;
|
|
554
|
-
e._store.validated = !0;
|
|
555
|
-
var t = nr(r);
|
|
556
|
-
if (he[t])
|
|
557
|
-
return;
|
|
558
|
-
he[t] = !0;
|
|
559
|
-
var n = "";
|
|
560
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + _(e._owner.type) + "."), w(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), w(null);
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function ye(e, r) {
|
|
564
|
-
{
|
|
565
|
-
if (typeof e != "object")
|
|
566
|
-
return;
|
|
567
|
-
if (B(e))
|
|
568
|
-
for (var t = 0; t < e.length; t++) {
|
|
569
|
-
var n = e[t];
|
|
570
|
-
Q(n) && Re(n, r);
|
|
571
|
-
}
|
|
572
|
-
else if (Q(e))
|
|
573
|
-
e._store && (e._store.validated = !0);
|
|
574
|
-
else if (e) {
|
|
575
|
-
var i = je(e);
|
|
576
|
-
if (typeof i == "function" && i !== e.entries)
|
|
577
|
-
for (var u = i.call(e), o; !(o = u.next()).done; )
|
|
578
|
-
Q(o.value) && Re(o.value, r);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
function ar(e) {
|
|
583
|
-
{
|
|
584
|
-
var r = e.type;
|
|
585
|
-
if (r == null || typeof r == "string")
|
|
586
|
-
return;
|
|
587
|
-
var t;
|
|
588
|
-
if (typeof r == "function")
|
|
589
|
-
t = r.propTypes;
|
|
590
|
-
else if (typeof r == "object" && (r.$$typeof === v || // Note: Memo only checks outer props here.
|
|
591
|
-
// Inner props are checked in the reconciler.
|
|
592
|
-
r.$$typeof === h))
|
|
593
|
-
t = r.propTypes;
|
|
594
|
-
else
|
|
595
|
-
return;
|
|
596
|
-
if (t) {
|
|
597
|
-
var n = _(r);
|
|
598
|
-
Je(t, e.props, "prop", n, e);
|
|
599
|
-
} else if (r.PropTypes !== void 0 && !G) {
|
|
600
|
-
G = !0;
|
|
601
|
-
var i = _(r);
|
|
602
|
-
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
603
|
-
}
|
|
604
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
function or(e) {
|
|
608
|
-
{
|
|
609
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
610
|
-
var n = r[t];
|
|
611
|
-
if (n !== "children" && n !== "key") {
|
|
612
|
-
w(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), w(null);
|
|
613
|
-
break;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
e.ref !== null && (w(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
var _e = {};
|
|
620
|
-
function me(e, r, t, n, i, u) {
|
|
621
|
-
{
|
|
622
|
-
var o = We(e);
|
|
623
|
-
if (!o) {
|
|
624
|
-
var a = "";
|
|
625
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
626
|
-
var p = tr();
|
|
627
|
-
p ? a += p : a += be();
|
|
628
|
-
var s;
|
|
629
|
-
e === null ? s = "null" : B(e) ? s = "array" : e !== void 0 && e.$$typeof === c ? (s = "<" + (_(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
630
|
-
}
|
|
631
|
-
var f = rr(e, r, t, i, u);
|
|
632
|
-
if (f == null)
|
|
633
|
-
return f;
|
|
634
|
-
if (o) {
|
|
635
|
-
var b = r.children;
|
|
636
|
-
if (b !== void 0)
|
|
637
|
-
if (n)
|
|
638
|
-
if (B(b)) {
|
|
639
|
-
for (var x = 0; x < b.length; x++)
|
|
640
|
-
ye(b[x], e);
|
|
641
|
-
Object.freeze && Object.freeze(b);
|
|
642
|
-
} else
|
|
643
|
-
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
644
|
-
else
|
|
645
|
-
ye(b, e);
|
|
646
|
-
}
|
|
647
|
-
if (F.call(r, "key")) {
|
|
648
|
-
var C = _(e), g = Object.keys(r).filter(function(cr) {
|
|
649
|
-
return cr !== "key";
|
|
650
|
-
}), z = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
651
|
-
if (!_e[C + z]) {
|
|
652
|
-
var lr = g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}";
|
|
653
|
-
d(`A props object containing a "key" prop is being spread into JSX:
|
|
280
|
+
writable: !0,
|
|
281
|
+
value: w
|
|
282
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
283
|
+
configurable: !1,
|
|
284
|
+
enumerable: !1,
|
|
285
|
+
writable: !0,
|
|
286
|
+
value: x
|
|
287
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
288
|
+
}
|
|
289
|
+
function P(e, t, a, u, m, d, w, x) {
|
|
290
|
+
var c = t.children;
|
|
291
|
+
if (c !== void 0)
|
|
292
|
+
if (u)
|
|
293
|
+
if (re(c)) {
|
|
294
|
+
for (u = 0; u < c.length; u++)
|
|
295
|
+
O(c[u]);
|
|
296
|
+
Object.freeze && Object.freeze(c);
|
|
297
|
+
} else
|
|
298
|
+
console.error(
|
|
299
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
300
|
+
);
|
|
301
|
+
else O(c);
|
|
302
|
+
if (j.call(t, "key")) {
|
|
303
|
+
c = o(e);
|
|
304
|
+
var E = Object.keys(t).filter(function(te) {
|
|
305
|
+
return te !== "key";
|
|
306
|
+
});
|
|
307
|
+
u = 0 < E.length ? "{key: someKey, " + E.join(": ..., ") + ": ...}" : "{key: someKey}", Y[c + u] || (E = 0 < E.length ? "{" + E.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
308
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
654
309
|
let props = %s;
|
|
655
310
|
<%s {...props} />
|
|
656
311
|
React keys must be passed directly to JSX without using spread:
|
|
657
312
|
let props = %s;
|
|
658
|
-
<%s key={someKey} {...props} />`,
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
313
|
+
<%s key={someKey} {...props} />`,
|
|
314
|
+
u,
|
|
315
|
+
c,
|
|
316
|
+
E,
|
|
317
|
+
c
|
|
318
|
+
), Y[c + u] = !0);
|
|
662
319
|
}
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
return
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
320
|
+
if (c = null, a !== void 0 && (r(a), c = "" + a), v(t) && (r(t.key), c = "" + t.key), "key" in t) {
|
|
321
|
+
a = {};
|
|
322
|
+
for (var k in t)
|
|
323
|
+
k !== "key" && (a[k] = t[k]);
|
|
324
|
+
} else a = t;
|
|
325
|
+
return c && b(
|
|
326
|
+
a,
|
|
327
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
328
|
+
), U(
|
|
329
|
+
e,
|
|
330
|
+
c,
|
|
331
|
+
d,
|
|
332
|
+
m,
|
|
333
|
+
n(),
|
|
334
|
+
a,
|
|
335
|
+
w,
|
|
336
|
+
x
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
function O(e) {
|
|
340
|
+
typeof e == "object" && e !== null && e.$$typeof === y && e._store && (e._store.validated = 1);
|
|
341
|
+
}
|
|
342
|
+
var p = oe, y = Symbol.for("react.transitional.element"), q = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), J = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), G = Symbol.for("react.context"), X = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), Z = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), h = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, re = Array.isArray, T = console.createTask ? console.createTask : function() {
|
|
343
|
+
return null;
|
|
344
|
+
};
|
|
345
|
+
p = {
|
|
346
|
+
react_stack_bottom_frame: function(e) {
|
|
347
|
+
return e();
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
var C, N = {}, $ = p.react_stack_bottom_frame.bind(
|
|
351
|
+
p,
|
|
352
|
+
i
|
|
353
|
+
)(), F = T(l(i)), Y = {};
|
|
354
|
+
_.Fragment = g, _.jsx = function(e, t, a, u, m) {
|
|
355
|
+
var d = 1e4 > h.recentlyCreatedOwnerStacks++;
|
|
356
|
+
return P(
|
|
357
|
+
e,
|
|
358
|
+
t,
|
|
359
|
+
a,
|
|
360
|
+
!1,
|
|
361
|
+
u,
|
|
362
|
+
m,
|
|
363
|
+
d ? Error("react-stack-top-frame") : $,
|
|
364
|
+
d ? T(l(e)) : F
|
|
365
|
+
);
|
|
366
|
+
}, _.jsxs = function(e, t, a, u, m) {
|
|
367
|
+
var d = 1e4 > h.recentlyCreatedOwnerStacks++;
|
|
368
|
+
return P(
|
|
369
|
+
e,
|
|
370
|
+
t,
|
|
371
|
+
a,
|
|
372
|
+
!0,
|
|
373
|
+
u,
|
|
374
|
+
m,
|
|
375
|
+
d ? Error("react-stack-top-frame") : $,
|
|
376
|
+
d ? T(l(e)) : F
|
|
377
|
+
);
|
|
378
|
+
};
|
|
379
|
+
}()), _;
|
|
673
380
|
}
|
|
674
|
-
var
|
|
675
|
-
function
|
|
676
|
-
return
|
|
381
|
+
var D;
|
|
382
|
+
function de() {
|
|
383
|
+
return D || (D = 1, process.env.NODE_ENV === "production" ? S.exports = le() : S.exports = fe()), S.exports;
|
|
677
384
|
}
|
|
678
|
-
var
|
|
679
|
-
function
|
|
680
|
-
|
|
385
|
+
var me = de();
|
|
386
|
+
function _e({ stores: o, children: s }) {
|
|
387
|
+
try {
|
|
388
|
+
if (!o || typeof o != "object") {
|
|
389
|
+
const r = "QuantaProvider: Invalid stores prop provided";
|
|
390
|
+
throw f.error(r), new Error(r);
|
|
391
|
+
}
|
|
392
|
+
for (const [r, l] of Object.entries(o))
|
|
393
|
+
if (!l || typeof l != "object") {
|
|
394
|
+
const n = `QuantaProvider: Invalid store "${r}" provided`;
|
|
395
|
+
throw f.error(n), new Error(n);
|
|
396
|
+
}
|
|
397
|
+
return /* @__PURE__ */ me.jsx(L.Provider, { value: { stores: o }, children: s });
|
|
398
|
+
} catch (r) {
|
|
399
|
+
throw f.error(
|
|
400
|
+
`QuantaProvider: Failed to render provider: ${r instanceof Error ? r.message : String(r)}`
|
|
401
|
+
), r;
|
|
402
|
+
}
|
|
681
403
|
}
|
|
682
404
|
export {
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
405
|
+
L as QuantaContext,
|
|
406
|
+
_e as QuantaProvider,
|
|
407
|
+
ge as computed,
|
|
408
|
+
he as createStore,
|
|
409
|
+
Te as logger,
|
|
410
|
+
we as reactive,
|
|
411
|
+
Re as useCreateStore,
|
|
412
|
+
ie as useQuantaContext,
|
|
413
|
+
I as useQuantaStore,
|
|
414
|
+
be as useStore,
|
|
415
|
+
xe as watch
|
|
693
416
|
};
|