atomirx 0.0.7 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +198 -2234
  2. package/bin/cli.js +90 -0
  3. package/dist/core/derived.d.ts +2 -2
  4. package/dist/core/effect.d.ts +3 -2
  5. package/dist/core/onCreateHook.d.ts +15 -2
  6. package/dist/core/onErrorHook.d.ts +4 -1
  7. package/dist/core/pool.d.ts +78 -0
  8. package/dist/core/pool.test.d.ts +1 -0
  9. package/dist/core/select-boolean.test.d.ts +1 -0
  10. package/dist/core/select-pool.test.d.ts +1 -0
  11. package/dist/core/select.d.ts +278 -86
  12. package/dist/core/types.d.ts +233 -1
  13. package/dist/core/withAbort.d.ts +95 -0
  14. package/dist/core/withReady.d.ts +3 -3
  15. package/dist/devtools/constants.d.ts +41 -0
  16. package/dist/devtools/index.cjs +1 -0
  17. package/dist/devtools/index.d.ts +29 -0
  18. package/dist/devtools/index.js +429 -0
  19. package/dist/devtools/registry.d.ts +98 -0
  20. package/dist/devtools/registry.test.d.ts +1 -0
  21. package/dist/devtools/setup.d.ts +61 -0
  22. package/dist/devtools/types.d.ts +311 -0
  23. package/dist/index-BZEnfIcB.cjs +1 -0
  24. package/dist/index-BbPZhsDl.js +1653 -0
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.d.ts +4 -3
  27. package/dist/index.js +18 -14
  28. package/dist/onDispatchHook-C8yLzr-o.cjs +1 -0
  29. package/dist/onDispatchHook-SKbiIUaJ.js +5 -0
  30. package/dist/onErrorHook-BGGy3tqK.js +38 -0
  31. package/dist/onErrorHook-DHBASmYw.cjs +1 -0
  32. package/dist/react/index.cjs +1 -30
  33. package/dist/react/index.js +206 -791
  34. package/dist/react/onDispatchHook.d.ts +106 -0
  35. package/dist/react/useAction.d.ts +4 -1
  36. package/dist/react-devtools/DevToolsPanel.d.ts +93 -0
  37. package/dist/react-devtools/EntityDetails.d.ts +10 -0
  38. package/dist/react-devtools/EntityList.d.ts +15 -0
  39. package/dist/react-devtools/LogList.d.ts +12 -0
  40. package/dist/react-devtools/hooks.d.ts +50 -0
  41. package/dist/react-devtools/index.cjs +1 -0
  42. package/dist/react-devtools/index.d.ts +31 -0
  43. package/dist/react-devtools/index.js +1589 -0
  44. package/dist/react-devtools/styles.d.ts +148 -0
  45. package/package.json +26 -2
  46. package/skills/atomirx/SKILL.md +456 -0
  47. package/skills/atomirx/references/async-patterns.md +188 -0
  48. package/skills/atomirx/references/atom-patterns.md +238 -0
  49. package/skills/atomirx/references/deferred-loading.md +191 -0
  50. package/skills/atomirx/references/derived-patterns.md +428 -0
  51. package/skills/atomirx/references/effect-patterns.md +426 -0
  52. package/skills/atomirx/references/error-handling.md +140 -0
  53. package/skills/atomirx/references/hooks.md +322 -0
  54. package/skills/atomirx/references/pool-patterns.md +229 -0
  55. package/skills/atomirx/references/react-integration.md +411 -0
  56. package/skills/atomirx/references/rules.md +407 -0
  57. package/skills/atomirx/references/select-context.md +309 -0
  58. package/skills/atomirx/references/service-template.md +172 -0
  59. package/skills/atomirx/references/store-template.md +205 -0
  60. package/skills/atomirx/references/testing-patterns.md +431 -0
  61. package/coverage/base.css +0 -224
  62. package/coverage/block-navigation.js +0 -87
  63. package/coverage/clover.xml +0 -1440
  64. package/coverage/coverage-final.json +0 -14
  65. package/coverage/favicon.png +0 -0
  66. package/coverage/index.html +0 -131
  67. package/coverage/prettify.css +0 -1
  68. package/coverage/prettify.js +0 -2
  69. package/coverage/sort-arrow-sprite.png +0 -0
  70. package/coverage/sorter.js +0 -210
  71. package/coverage/src/core/atom.ts.html +0 -889
  72. package/coverage/src/core/batch.ts.html +0 -223
  73. package/coverage/src/core/define.ts.html +0 -805
  74. package/coverage/src/core/emitter.ts.html +0 -919
  75. package/coverage/src/core/equality.ts.html +0 -631
  76. package/coverage/src/core/hook.ts.html +0 -460
  77. package/coverage/src/core/index.html +0 -281
  78. package/coverage/src/core/isAtom.ts.html +0 -100
  79. package/coverage/src/core/isPromiseLike.ts.html +0 -133
  80. package/coverage/src/core/onCreateHook.ts.html +0 -138
  81. package/coverage/src/core/scheduleNotifyHook.ts.html +0 -94
  82. package/coverage/src/core/types.ts.html +0 -523
  83. package/coverage/src/core/withUse.ts.html +0 -253
  84. package/coverage/src/index.html +0 -116
  85. package/coverage/src/index.ts.html +0 -106
  86. package/dist/index-CBVj1kSj.js +0 -1350
  87. package/dist/index-Cxk9v0um.cjs +0 -1
  88. package/scripts/publish.js +0 -198
  89. package/src/core/atom.test.ts +0 -633
  90. package/src/core/atom.ts +0 -311
  91. package/src/core/atomState.test.ts +0 -342
  92. package/src/core/atomState.ts +0 -256
  93. package/src/core/batch.test.ts +0 -257
  94. package/src/core/batch.ts +0 -172
  95. package/src/core/define.test.ts +0 -343
  96. package/src/core/define.ts +0 -243
  97. package/src/core/derived.test.ts +0 -1215
  98. package/src/core/derived.ts +0 -450
  99. package/src/core/effect.test.ts +0 -802
  100. package/src/core/effect.ts +0 -188
  101. package/src/core/emitter.test.ts +0 -364
  102. package/src/core/emitter.ts +0 -392
  103. package/src/core/equality.test.ts +0 -392
  104. package/src/core/equality.ts +0 -182
  105. package/src/core/getAtomState.ts +0 -69
  106. package/src/core/hook.test.ts +0 -227
  107. package/src/core/hook.ts +0 -177
  108. package/src/core/isAtom.ts +0 -27
  109. package/src/core/isPromiseLike.test.ts +0 -72
  110. package/src/core/isPromiseLike.ts +0 -16
  111. package/src/core/onCreateHook.ts +0 -107
  112. package/src/core/onErrorHook.test.ts +0 -350
  113. package/src/core/onErrorHook.ts +0 -52
  114. package/src/core/promiseCache.test.ts +0 -241
  115. package/src/core/promiseCache.ts +0 -284
  116. package/src/core/scheduleNotifyHook.ts +0 -53
  117. package/src/core/select.ts +0 -729
  118. package/src/core/selector.test.ts +0 -799
  119. package/src/core/types.ts +0 -389
  120. package/src/core/withReady.test.ts +0 -534
  121. package/src/core/withReady.ts +0 -191
  122. package/src/core/withUse.test.ts +0 -249
  123. package/src/core/withUse.ts +0 -56
  124. package/src/index.test.ts +0 -80
  125. package/src/index.ts +0 -65
  126. package/src/react/index.ts +0 -21
  127. package/src/react/rx.test.tsx +0 -571
  128. package/src/react/rx.tsx +0 -531
  129. package/src/react/strictModeTest.tsx +0 -71
  130. package/src/react/useAction.test.ts +0 -987
  131. package/src/react/useAction.ts +0 -607
  132. package/src/react/useSelector.test.ts +0 -182
  133. package/src/react/useSelector.ts +0 -292
  134. package/src/react/useStable.test.ts +0 -553
  135. package/src/react/useStable.ts +0 -288
  136. package/tsconfig.json +0 -9
  137. package/v2.md +0 -725
  138. package/vite.config.ts +0 -39
@@ -1,868 +1,283 @@
1
- var _r = Object.defineProperty;
2
- var Sr = (n, a, l) => a in n ? _r(n, a, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[a] = l;
3
- var Ae = (n, a, l) => Sr(n, typeof a != "symbol" ? a + "" : a, l);
4
- import Le, { useRef as A, useCallback as U, useSyncExternalStore as Or, useReducer as Tr, useEffect as De, memo as jr, Suspense as xr, Component as wr } from "react";
5
- import { i as z, r as ae, s as Fe, t as Ie, w as Cr, a as Pr, b as We } from "../index-CBVj1kSj.js";
6
- import { A as Gr, c as Hr, e as Xr, f as Zr, g as Qr, h as et, j as rt, l as tt, k as nt, n as at, m as ot, o as it, q as st, v as ut, x as ct, d as lt, p as ft, u as dt } from "../index-CBVj1kSj.js";
7
- function Ue(n, a) {
8
- const l = z(n) ? ({ read: d }) => d(n) : n, b = ae(a ?? "shallow"), g = A(l), T = A(b);
9
- g.current = l, T.current = b;
10
- const h = A(/* @__PURE__ */ new Map()), v = A(/* @__PURE__ */ new Set()), i = A({
1
+ var M = Object.defineProperty;
2
+ var V = (r, e, t) => e in r ? M(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var _ = (r, e, t) => V(r, typeof e != "symbol" ? e + "" : e, t);
4
+ import { useRef as p, useCallback as D, useSyncExternalStore as W, useReducer as B, useEffect as P, memo as G, Suspense as N, Component as J } from "react";
5
+ import { i as O, r as w, s as F, t as I, d as K, a as q, w as Q, b as X } from "../index-BbPZhsDl.js";
6
+ import { A as he, c as Re, f as Ee, g as ye, h as Se, j as Ae, k as ve, o as ge, l as De, u as Oe, q as je, m as ke, v as xe, n as Ce, p as we, z as qe, e as Te, x as ze, y as _e } from "../index-BbPZhsDl.js";
7
+ import { o as E } from "../onDispatchHook-SKbiIUaJ.js";
8
+ import { jsx as b, Fragment as j } from "react/jsx-runtime";
9
+ import { o as Fe, a as Ie } from "../onErrorHook-BGGy3tqK.js";
10
+ function L(r, e) {
11
+ const t = O(r) ? ({ read: f }) => f(r) : r, l = w(e ?? "shallow"), n = p(t), h = p(l);
12
+ n.current = t, h.current = l;
13
+ const u = p(/* @__PURE__ */ new Map()), s = p(/* @__PURE__ */ new Set()), o = p([]), m = p(/* @__PURE__ */ new Map()), a = p({
11
14
  value: void 0,
12
15
  initialized: !1
13
- }), S = U(() => {
14
- const d = Fe(g.current);
15
- if (v.current = d.dependencies, d.promise !== void 0)
16
- throw d.promise;
17
- if (d.error !== void 0)
18
- throw d.error;
19
- const E = d.value;
20
- return (!i.current.initialized || !T.current(E, i.current.value)) && (i.current = { value: E, initialized: !0 }), i.current.value;
21
- }, []), f = U((d) => {
22
- const E = h.current, P = () => {
23
- const D = v.current;
24
- for (const [k, R] of E)
25
- D.has(k) || (R(), E.delete(k));
26
- for (const k of D)
27
- if (!E.has(k)) {
28
- const R = k.on(() => {
29
- const j = Fe(g.current);
30
- v.current = j.dependencies, P(), d();
31
- });
32
- E.set(k, R);
33
- }
16
+ }), y = D(() => {
17
+ const { result: f } = F(n.current);
18
+ if (s.current = f._atomDeps, m.current = f._poolDeps, f.promise !== void 0)
19
+ throw f.promise;
20
+ if (f.error !== void 0)
21
+ throw f.error;
22
+ const R = f.value;
23
+ return (!a.current.initialized || !h.current(R, a.current.value)) && (a.current = { value: R, initialized: !0 }), a.current.value;
24
+ }, []), A = D((f) => {
25
+ const R = u.current, k = () => {
26
+ const { result: i } = F(n.current);
27
+ s.current = i._atomDeps, m.current = i._poolDeps, c(), f();
28
+ }, c = () => {
29
+ const i = s.current, x = m.current;
30
+ for (const [d, v] of R)
31
+ i.has(d) || (v(), R.delete(d));
32
+ for (const d of i)
33
+ R.has(d) || R.set(d, d.on(k));
34
+ for (const d of o.current)
35
+ d();
36
+ o.current = [];
37
+ for (const [d, v] of x)
38
+ for (const C of v)
39
+ o.current.push(d._onRemove(C, k));
34
40
  };
35
- return P(), () => {
36
- for (const D of E.values())
37
- D();
38
- E.clear();
41
+ return c(), () => {
42
+ for (const i of R.values())
43
+ i();
44
+ R.clear();
45
+ for (const i of o.current)
46
+ i();
47
+ o.current = [];
39
48
  };
40
49
  }, []);
41
- return Or(f, S, S);
50
+ return W(A, y, y);
42
51
  }
43
- function kr(n) {
44
- return n == null ? "strict" : Array.isArray(n) ? "shallow" : n instanceof Date ? "deep" : typeof n == "object" ? "shallow" : "strict";
52
+ function Y(r) {
53
+ return r == null ? Object.is : Array.isArray(r) ? "shallow" : r instanceof Date ? K : typeof r == "object" ? q : Object.is;
45
54
  }
46
- function Nr(n, a) {
47
- const l = A({}), b = A(null);
48
- b.current === null && (b.current = {});
49
- const g = l.current, T = b.current;
50
- for (const h of Object.keys(n)) {
51
- const v = n[h], i = g[h];
52
- if (typeof v == "function") {
53
- const [E] = Ie(
54
- i,
55
- v,
55
+ function fe(r, e) {
56
+ const t = p({}), l = p(null);
57
+ l.current === null && (l.current = {});
58
+ const n = t.current, h = l.current;
59
+ for (const u of Object.keys(r)) {
60
+ const s = r[u], o = n[u];
61
+ if (typeof s == "function") {
62
+ const [A] = I(
63
+ o,
64
+ s,
56
65
  () => !1
57
66
  // Equality doesn't matter for functions
58
67
  );
59
- g[h] = { value: E }, T[h] = E;
68
+ n[u] = { value: A }, h[u] = A;
60
69
  continue;
61
70
  }
62
- const S = a == null ? void 0 : a[h], f = S ? ae(S) : ae(kr(v)), [d] = Ie(
63
- i,
64
- v,
65
- f
71
+ const m = e == null ? void 0 : e[u], a = m ? w(m) : w(Y(s)), [y] = I(
72
+ o,
73
+ s,
74
+ a
66
75
  );
67
- g[h] = { value: d }, T[h] = d;
76
+ n[u] = { value: y }, h[u] = y;
68
77
  }
69
- for (const h of Object.keys(g))
70
- h in n || (delete g[h], delete T[h]);
71
- return T;
78
+ for (const u of Object.keys(n))
79
+ u in r || (delete n[u], delete h[u]);
80
+ return h;
72
81
  }
73
- const Ve = {
82
+ const U = {
74
83
  status: "idle",
75
84
  result: void 0,
76
85
  error: void 0
77
- }, qe = {
86
+ }, H = {
78
87
  status: "loading",
79
88
  result: void 0,
80
89
  error: void 0
81
90
  };
82
- function Ar(n, a) {
83
- switch (a.type) {
91
+ function Z(r, e) {
92
+ switch (e.type) {
84
93
  case "START":
85
- return qe;
94
+ return H;
86
95
  case "SUCCESS":
87
96
  return {
88
97
  status: "success",
89
- result: a.result,
98
+ result: e.result,
90
99
  error: void 0
91
100
  };
92
101
  case "ERROR":
93
102
  return {
94
103
  status: "error",
95
104
  result: void 0,
96
- error: a.error
105
+ error: e.error
97
106
  };
98
107
  case "RESET":
99
- return Ve;
108
+ return U;
100
109
  default:
101
- return n;
110
+ return r;
102
111
  }
103
112
  }
104
- function zr(n, a = {}) {
105
- const { lazy: l = !0, exclusive: b = !0, deps: g = [] } = a, T = l ? Ve : qe, [h, v] = Tr(
106
- Ar,
107
- T
108
- ), i = A(null), S = A(n);
109
- S.current = n;
110
- const f = U(() => {
111
- const R = i.current;
112
- return R ? (R.abort(), i.current = null, !0) : !1;
113
- }, []), d = (l ? [] : g ?? []).filter(z), E = Ue(({ read: R }) => d.map((j) => R(j))), P = U(() => {
114
- b && f();
115
- const R = new AbortController();
116
- i.current = R, v({ type: "START" });
117
- let j;
113
+ function de(r, e = {}) {
114
+ const { lazy: t = !0, exclusive: l = !0, deps: n = [] } = e, h = t ? U : H, [u, s] = B(
115
+ Z,
116
+ h
117
+ ), o = p(null), m = p(r);
118
+ m.current = r;
119
+ const a = D(() => {
120
+ const c = o.current;
121
+ return c ? (c.abort(), o.current = null, !0) : !1;
122
+ }, []), y = (t ? [] : n ?? []).filter(O), A = L(({ read: c }) => y.map((i) => c(i))), f = D(() => {
123
+ var x, d, v, C, T, z;
124
+ l && a();
125
+ const c = new AbortController();
126
+ o.current = c, s({ type: "START" }), (d = (x = E).current) == null || d.call(x, { type: "start", meta: e.meta, deps: n });
127
+ let i;
118
128
  try {
119
- j = S.current(Cr({ signal: R.signal }));
120
- } catch (m) {
121
- return v({ type: "ERROR", error: m }), Object.assign(Promise.reject(m), {
122
- abort: () => R.abort()
129
+ i = m.current(Q({ signal: c.signal }));
130
+ } catch (g) {
131
+ return s({ type: "ERROR", error: g }), (C = (v = E).current) == null || C.call(v, {
132
+ type: "error",
133
+ meta: e.meta,
134
+ deps: n,
135
+ error: g
136
+ }), Object.assign(Promise.reject(g), {
137
+ abort: () => c.abort()
123
138
  });
124
139
  }
125
- if (Pr(j)) {
126
- const m = j;
127
- return m.then(
128
- (F) => {
129
- i.current === R && v({ type: "SUCCESS", result: F });
140
+ if (X(i)) {
141
+ const g = i;
142
+ return (z = (T = E).current) == null || z.call(T, {
143
+ type: "loading",
144
+ meta: e.meta,
145
+ deps: n
146
+ }), g.then(
147
+ (S) => {
148
+ o.current === c && (s({ type: "SUCCESS", result: S }), E.current && E.current({
149
+ type: "resolved",
150
+ meta: e.meta,
151
+ deps: n
152
+ }));
130
153
  },
131
- (F) => {
132
- if (F instanceof DOMException && F.name === "AbortError") {
133
- (i.current === null || i.current === R) && v({ type: "ERROR", error: F });
154
+ (S) => {
155
+ if (S instanceof DOMException && S.name === "AbortError") {
156
+ (o.current === null || o.current === c) && (s({ type: "ERROR", error: S }), E.current && E.current({
157
+ type: "abort",
158
+ meta: e.meta,
159
+ deps: n,
160
+ error: S
161
+ }));
134
162
  return;
135
163
  }
136
- i.current === R && v({ type: "ERROR", error: F });
164
+ o.current === c && (s({ type: "ERROR", error: S }), E.current && E.current({
165
+ type: "rejected",
166
+ meta: e.meta,
167
+ deps: n,
168
+ error: S
169
+ }));
137
170
  }
138
- ), Object.assign(m, {
171
+ ), Object.assign(g, {
139
172
  abort: () => {
140
- R.abort(), i.current === R && (i.current = null);
173
+ c.abort(), o.current === c && (o.current = null);
141
174
  }
142
175
  });
143
- }
144
- return v({ type: "SUCCESS", result: j }), Object.assign(Promise.resolve(j), {
145
- abort: () => R.abort()
176
+ } else
177
+ E.current && E.current({
178
+ type: "success",
179
+ meta: e.meta,
180
+ deps: n
181
+ });
182
+ return s({ type: "SUCCESS", result: i }), Object.assign(Promise.resolve(i), {
183
+ abort: () => c.abort()
146
184
  });
147
- }, [b, f]), D = (g ?? []).filter((R) => !z(R));
148
- De(() => {
149
- l || P();
150
- }, [l, ...E, ...D]), De(() => () => {
151
- b && f();
152
- }, [b, f]);
153
- const k = U(() => {
154
- b && f(), v({ type: "RESET" });
155
- }, [b, f]);
156
- return Object.assign(P, {
157
- ...h,
158
- abort: f,
185
+ }, [l, a]), R = (n ?? []).filter((c) => !O(c));
186
+ P(() => {
187
+ t || f();
188
+ }, [t, ...A, ...R]), P(() => () => {
189
+ l && a();
190
+ }, [l, a]);
191
+ const k = D(() => {
192
+ l && a(), s({ type: "RESET" });
193
+ }, [l, a]);
194
+ return Object.assign(f, {
195
+ ...u,
196
+ abort: a,
159
197
  reset: k
160
198
  });
161
199
  }
162
- var oe = { exports: {} }, M = {};
163
- /**
164
- * @license React
165
- * react-jsx-runtime.production.min.js
166
- *
167
- * Copyright (c) Facebook, Inc. and its affiliates.
168
- *
169
- * This source code is licensed under the MIT license found in the
170
- * LICENSE file in the root directory of this source tree.
171
- */
172
- var $e;
173
- function Dr() {
174
- if ($e) return M;
175
- $e = 1;
176
- var n = Le, a = Symbol.for("react.element"), l = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, g = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, T = { key: !0, ref: !0, __self: !0, __source: !0 };
177
- function h(v, i, S) {
178
- var f, d = {}, E = null, P = null;
179
- S !== void 0 && (E = "" + S), i.key !== void 0 && (E = "" + i.key), i.ref !== void 0 && (P = i.ref);
180
- for (f in i) b.call(i, f) && !T.hasOwnProperty(f) && (d[f] = i[f]);
181
- if (v && v.defaultProps) for (f in i = v.defaultProps, i) d[f] === void 0 && (d[f] = i[f]);
182
- return { $$typeof: a, type: v, key: E, ref: P, props: d, _owner: g.current };
183
- }
184
- return M.Fragment = l, M.jsx = h, M.jsxs = h, M;
185
- }
186
- var N = {};
187
- /**
188
- * @license React
189
- * react-jsx-runtime.development.js
190
- *
191
- * Copyright (c) Facebook, Inc. and its affiliates.
192
- *
193
- * This source code is licensed under the MIT license found in the
194
- * LICENSE file in the root directory of this source tree.
195
- */
196
- var Ye;
197
- function Fr() {
198
- return Ye || (Ye = 1, process.env.NODE_ENV !== "production" && function() {
199
- var n = Le, a = Symbol.for("react.element"), l = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), v = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), D = Symbol.iterator, k = "@@iterator";
200
- function R(e) {
201
- if (e === null || typeof e != "object")
202
- return null;
203
- var r = D && e[D] || e[k];
204
- return typeof r == "function" ? r : null;
205
- }
206
- var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
207
- function m(e) {
208
- {
209
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
210
- t[o - 1] = arguments[o];
211
- F("error", e, t);
212
- }
213
- }
214
- function F(e, r, t) {
215
- {
216
- var o = j.ReactDebugCurrentFrame, c = o.getStackAddendum();
217
- c !== "" && (r += "%s", t = t.concat([c]));
218
- var p = t.map(function(u) {
219
- return String(u);
220
- });
221
- p.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, p);
222
- }
223
- }
224
- var ie = !1, Me = !1, Ne = !1, ze = !1, Be = !1, se;
225
- se = Symbol.for("react.module.reference");
226
- function Je(e) {
227
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === T || Be || e === g || e === S || e === f || ze || e === P || ie || Me || Ne || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === d || e.$$typeof === h || e.$$typeof === v || e.$$typeof === i || // This needs to include all possible module reference object
228
- // types supported by any Flight configuration anywhere since
229
- // we don't know which Flight build this will end up being used
230
- // with.
231
- e.$$typeof === se || e.getModuleId !== void 0));
232
- }
233
- function Ke(e, r, t) {
234
- var o = e.displayName;
235
- if (o)
236
- return o;
237
- var c = r.displayName || r.name || "";
238
- return c !== "" ? t + "(" + c + ")" : t;
239
- }
240
- function ue(e) {
241
- return e.displayName || "Context";
242
- }
243
- function I(e) {
244
- if (e == null)
245
- return null;
246
- if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
247
- return e.displayName || e.name || null;
248
- if (typeof e == "string")
249
- return e;
250
- switch (e) {
251
- case b:
252
- return "Fragment";
253
- case l:
254
- return "Portal";
255
- case T:
256
- return "Profiler";
257
- case g:
258
- return "StrictMode";
259
- case S:
260
- return "Suspense";
261
- case f:
262
- return "SuspenseList";
263
- }
264
- if (typeof e == "object")
265
- switch (e.$$typeof) {
266
- case v:
267
- var r = e;
268
- return ue(r) + ".Consumer";
269
- case h:
270
- var t = e;
271
- return ue(t._context) + ".Provider";
272
- case i:
273
- return Ke(e, e.render, "ForwardRef");
274
- case d:
275
- var o = e.displayName || null;
276
- return o !== null ? o : I(e.type) || "Memo";
277
- case E: {
278
- var c = e, p = c._payload, u = c._init;
279
- try {
280
- return I(u(p));
281
- } catch {
282
- return null;
283
- }
284
- }
285
- }
286
- return null;
287
- }
288
- var W = Object.assign, V = 0, ce, le, fe, de, ve, pe, be;
289
- function he() {
290
- }
291
- he.__reactDisabledLog = !0;
292
- function Ge() {
293
- {
294
- if (V === 0) {
295
- ce = console.log, le = console.info, fe = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, be = console.groupEnd;
296
- var e = {
297
- configurable: !0,
298
- enumerable: !0,
299
- value: he,
300
- writable: !0
301
- };
302
- Object.defineProperties(console, {
303
- info: e,
304
- log: e,
305
- warn: e,
306
- error: e,
307
- group: e,
308
- groupCollapsed: e,
309
- groupEnd: e
310
- });
311
- }
312
- V++;
313
- }
314
- }
315
- function He() {
316
- {
317
- if (V--, V === 0) {
318
- var e = {
319
- configurable: !0,
320
- enumerable: !0,
321
- writable: !0
322
- };
323
- Object.defineProperties(console, {
324
- log: W({}, e, {
325
- value: ce
326
- }),
327
- info: W({}, e, {
328
- value: le
329
- }),
330
- warn: W({}, e, {
331
- value: fe
332
- }),
333
- error: W({}, e, {
334
- value: de
335
- }),
336
- group: W({}, e, {
337
- value: ve
338
- }),
339
- groupCollapsed: W({}, e, {
340
- value: pe
341
- }),
342
- groupEnd: W({}, e, {
343
- value: be
344
- })
345
- });
346
- }
347
- V < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
348
- }
349
- }
350
- var H = j.ReactCurrentDispatcher, X;
351
- function B(e, r, t) {
352
- {
353
- if (X === void 0)
354
- try {
355
- throw Error();
356
- } catch (c) {
357
- var o = c.stack.trim().match(/\n( *(at )?)/);
358
- X = o && o[1] || "";
359
- }
360
- return `
361
- ` + X + e;
362
- }
363
- }
364
- var Z = !1, J;
365
- {
366
- var Xe = typeof WeakMap == "function" ? WeakMap : Map;
367
- J = new Xe();
368
- }
369
- function Ee(e, r) {
370
- if (!e || Z)
371
- return "";
372
- {
373
- var t = J.get(e);
374
- if (t !== void 0)
375
- return t;
376
- }
377
- var o;
378
- Z = !0;
379
- var c = Error.prepareStackTrace;
380
- Error.prepareStackTrace = void 0;
381
- var p;
382
- p = H.current, H.current = null, Ge();
383
- try {
384
- if (r) {
385
- var u = function() {
386
- throw Error();
387
- };
388
- if (Object.defineProperty(u.prototype, "props", {
389
- set: function() {
390
- throw Error();
391
- }
392
- }), typeof Reflect == "object" && Reflect.construct) {
393
- try {
394
- Reflect.construct(u, []);
395
- } catch (w) {
396
- o = w;
397
- }
398
- Reflect.construct(e, [], u);
399
- } else {
400
- try {
401
- u.call();
402
- } catch (w) {
403
- o = w;
404
- }
405
- e.call(u.prototype);
406
- }
407
- } else {
408
- try {
409
- throw Error();
410
- } catch (w) {
411
- o = w;
412
- }
413
- e();
414
- }
415
- } catch (w) {
416
- if (w && o && typeof w.stack == "string") {
417
- for (var s = w.stack.split(`
418
- `), x = o.stack.split(`
419
- `), y = s.length - 1, _ = x.length - 1; y >= 1 && _ >= 0 && s[y] !== x[_]; )
420
- _--;
421
- for (; y >= 1 && _ >= 0; y--, _--)
422
- if (s[y] !== x[_]) {
423
- if (y !== 1 || _ !== 1)
424
- do
425
- if (y--, _--, _ < 0 || s[y] !== x[_]) {
426
- var C = `
427
- ` + s[y].replace(" at new ", " at ");
428
- return e.displayName && C.includes("<anonymous>") && (C = C.replace("<anonymous>", e.displayName)), typeof e == "function" && J.set(e, C), C;
429
- }
430
- while (y >= 1 && _ >= 0);
431
- break;
432
- }
433
- }
434
- } finally {
435
- Z = !1, H.current = p, He(), Error.prepareStackTrace = c;
436
- }
437
- var L = e ? e.displayName || e.name : "", $ = L ? B(L) : "";
438
- return typeof e == "function" && J.set(e, $), $;
439
- }
440
- function Ze(e, r, t) {
441
- return Ee(e, !1);
442
- }
443
- function Qe(e) {
444
- var r = e.prototype;
445
- return !!(r && r.isReactComponent);
446
- }
447
- function K(e, r, t) {
448
- if (e == null)
449
- return "";
450
- if (typeof e == "function")
451
- return Ee(e, Qe(e));
452
- if (typeof e == "string")
453
- return B(e);
454
- switch (e) {
455
- case S:
456
- return B("Suspense");
457
- case f:
458
- return B("SuspenseList");
459
- }
460
- if (typeof e == "object")
461
- switch (e.$$typeof) {
462
- case i:
463
- return Ze(e.render);
464
- case d:
465
- return K(e.type, r, t);
466
- case E: {
467
- var o = e, c = o._payload, p = o._init;
468
- try {
469
- return K(p(c), r, t);
470
- } catch {
471
- }
472
- }
473
- }
474
- return "";
475
- }
476
- var q = Object.prototype.hasOwnProperty, Re = {}, me = j.ReactDebugCurrentFrame;
477
- function G(e) {
478
- if (e) {
479
- var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
480
- me.setExtraStackFrame(t);
481
- } else
482
- me.setExtraStackFrame(null);
483
- }
484
- function er(e, r, t, o, c) {
485
- {
486
- var p = Function.call.bind(q);
487
- for (var u in e)
488
- if (p(e, u)) {
489
- var s = void 0;
490
- try {
491
- if (typeof e[u] != "function") {
492
- var x = Error((o || "React class") + ": " + t + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
493
- throw x.name = "Invariant Violation", x;
494
- }
495
- s = e[u](r, u, o, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
496
- } catch (y) {
497
- s = y;
498
- }
499
- s && !(s instanceof Error) && (G(c), m("%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).", o || "React class", t, u, typeof s), G(null)), s instanceof Error && !(s.message in Re) && (Re[s.message] = !0, G(c), m("Failed %s type: %s", t, s.message), G(null));
500
- }
501
- }
502
- }
503
- var rr = Array.isArray;
504
- function Q(e) {
505
- return rr(e);
506
- }
507
- function tr(e) {
508
- {
509
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
510
- return t;
511
- }
512
- }
513
- function nr(e) {
514
- try {
515
- return ye(e), !1;
516
- } catch {
517
- return !0;
518
- }
519
- }
520
- function ye(e) {
521
- return "" + e;
522
- }
523
- function ge(e) {
524
- if (nr(e))
525
- return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(e)), ye(e);
526
- }
527
- var _e = j.ReactCurrentOwner, ar = {
528
- key: !0,
529
- ref: !0,
530
- __self: !0,
531
- __source: !0
532
- }, Se, Oe;
533
- function or(e) {
534
- if (q.call(e, "ref")) {
535
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
536
- if (r && r.isReactWarning)
537
- return !1;
538
- }
539
- return e.ref !== void 0;
540
- }
541
- function ir(e) {
542
- if (q.call(e, "key")) {
543
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
544
- if (r && r.isReactWarning)
545
- return !1;
546
- }
547
- return e.key !== void 0;
548
- }
549
- function sr(e, r) {
550
- typeof e.ref == "string" && _e.current;
551
- }
552
- function ur(e, r) {
553
- {
554
- var t = function() {
555
- Se || (Se = !0, m("%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));
556
- };
557
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
558
- get: t,
559
- configurable: !0
560
- });
561
- }
562
- }
563
- function cr(e, r) {
564
- {
565
- var t = function() {
566
- Oe || (Oe = !0, m("%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)", r));
567
- };
568
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
569
- get: t,
570
- configurable: !0
571
- });
572
- }
573
- }
574
- var lr = function(e, r, t, o, c, p, u) {
575
- var s = {
576
- // This tag allows us to uniquely identify this as a React Element
577
- $$typeof: a,
578
- // Built-in properties that belong on the element
579
- type: e,
580
- key: r,
581
- ref: t,
582
- props: u,
583
- // Record the component responsible for creating this element.
584
- _owner: p
585
- };
586
- return s._store = {}, Object.defineProperty(s._store, "validated", {
587
- configurable: !1,
588
- enumerable: !1,
589
- writable: !0,
590
- value: !1
591
- }), Object.defineProperty(s, "_self", {
592
- configurable: !1,
593
- enumerable: !1,
594
- writable: !1,
595
- value: o
596
- }), Object.defineProperty(s, "_source", {
597
- configurable: !1,
598
- enumerable: !1,
599
- writable: !1,
600
- value: c
601
- }), Object.freeze && (Object.freeze(s.props), Object.freeze(s)), s;
602
- };
603
- function fr(e, r, t, o, c) {
604
- {
605
- var p, u = {}, s = null, x = null;
606
- t !== void 0 && (ge(t), s = "" + t), ir(r) && (ge(r.key), s = "" + r.key), or(r) && (x = r.ref, sr(r, c));
607
- for (p in r)
608
- q.call(r, p) && !ar.hasOwnProperty(p) && (u[p] = r[p]);
609
- if (e && e.defaultProps) {
610
- var y = e.defaultProps;
611
- for (p in y)
612
- u[p] === void 0 && (u[p] = y[p]);
613
- }
614
- if (s || x) {
615
- var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
616
- s && ur(u, _), x && cr(u, _);
617
- }
618
- return lr(e, s, x, c, o, _e.current, u);
619
- }
620
- }
621
- var ee = j.ReactCurrentOwner, Te = j.ReactDebugCurrentFrame;
622
- function Y(e) {
623
- if (e) {
624
- var r = e._owner, t = K(e.type, e._source, r ? r.type : null);
625
- Te.setExtraStackFrame(t);
626
- } else
627
- Te.setExtraStackFrame(null);
628
- }
629
- var re;
630
- re = !1;
631
- function te(e) {
632
- return typeof e == "object" && e !== null && e.$$typeof === a;
633
- }
634
- function je() {
635
- {
636
- if (ee.current) {
637
- var e = I(ee.current.type);
638
- if (e)
639
- return `
640
-
641
- Check the render method of \`` + e + "`.";
642
- }
643
- return "";
644
- }
645
- }
646
- function dr(e) {
647
- return "";
648
- }
649
- var xe = {};
650
- function vr(e) {
651
- {
652
- var r = je();
653
- if (!r) {
654
- var t = typeof e == "string" ? e : e.displayName || e.name;
655
- t && (r = `
656
-
657
- Check the top-level render call using <` + t + ">.");
658
- }
659
- return r;
660
- }
661
- }
662
- function we(e, r) {
663
- {
664
- if (!e._store || e._store.validated || e.key != null)
665
- return;
666
- e._store.validated = !0;
667
- var t = vr(r);
668
- if (xe[t])
669
- return;
670
- xe[t] = !0;
671
- var o = "";
672
- e && e._owner && e._owner !== ee.current && (o = " It was passed a child from " + I(e._owner.type) + "."), Y(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, o), Y(null);
673
- }
674
- }
675
- function Ce(e, r) {
676
- {
677
- if (typeof e != "object")
678
- return;
679
- if (Q(e))
680
- for (var t = 0; t < e.length; t++) {
681
- var o = e[t];
682
- te(o) && we(o, r);
683
- }
684
- else if (te(e))
685
- e._store && (e._store.validated = !0);
686
- else if (e) {
687
- var c = R(e);
688
- if (typeof c == "function" && c !== e.entries)
689
- for (var p = c.call(e), u; !(u = p.next()).done; )
690
- te(u.value) && we(u.value, r);
691
- }
692
- }
693
- }
694
- function pr(e) {
695
- {
696
- var r = e.type;
697
- if (r == null || typeof r == "string")
698
- return;
699
- var t;
700
- if (typeof r == "function")
701
- t = r.propTypes;
702
- else if (typeof r == "object" && (r.$$typeof === i || // Note: Memo only checks outer props here.
703
- // Inner props are checked in the reconciler.
704
- r.$$typeof === d))
705
- t = r.propTypes;
706
- else
707
- return;
708
- if (t) {
709
- var o = I(r);
710
- er(t, e.props, "prop", o, e);
711
- } else if (r.PropTypes !== void 0 && !re) {
712
- re = !0;
713
- var c = I(r);
714
- m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", c || "Unknown");
715
- }
716
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
717
- }
718
- }
719
- function br(e) {
720
- {
721
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
722
- var o = r[t];
723
- if (o !== "children" && o !== "key") {
724
- Y(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", o), Y(null);
725
- break;
726
- }
727
- }
728
- e.ref !== null && (Y(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), Y(null));
729
- }
730
- }
731
- var Pe = {};
732
- function ke(e, r, t, o, c, p) {
733
- {
734
- var u = Je(e);
735
- if (!u) {
736
- var s = "";
737
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (s += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
738
- var x = dr();
739
- x ? s += x : s += je();
740
- var y;
741
- e === null ? y = "null" : Q(e) ? y = "array" : e !== void 0 && e.$$typeof === a ? (y = "<" + (I(e.type) || "Unknown") + " />", s = " Did you accidentally export a JSX literal instead of a component?") : y = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, s);
742
- }
743
- var _ = fr(e, r, t, c, p);
744
- if (_ == null)
745
- return _;
746
- if (u) {
747
- var C = r.children;
748
- if (C !== void 0)
749
- if (o)
750
- if (Q(C)) {
751
- for (var L = 0; L < C.length; L++)
752
- Ce(C[L], e);
753
- Object.freeze && Object.freeze(C);
754
- } else
755
- m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
756
- else
757
- Ce(C, e);
758
- }
759
- if (q.call(r, "key")) {
760
- var $ = I(e), w = Object.keys(r).filter(function(gr) {
761
- return gr !== "key";
762
- }), ne = w.length > 0 ? "{key: someKey, " + w.join(": ..., ") + ": ...}" : "{key: someKey}";
763
- if (!Pe[$ + ne]) {
764
- var yr = w.length > 0 ? "{" + w.join(": ..., ") + ": ...}" : "{}";
765
- m(`A props object containing a "key" prop is being spread into JSX:
766
- let props = %s;
767
- <%s {...props} />
768
- React keys must be passed directly to JSX without using spread:
769
- let props = %s;
770
- <%s key={someKey} {...props} />`, ne, $, yr, $), Pe[$ + ne] = !0;
771
- }
772
- }
773
- return e === b ? br(_) : pr(_), _;
774
- }
775
- }
776
- function hr(e, r, t) {
777
- return ke(e, r, t, !0);
778
- }
779
- function Er(e, r, t) {
780
- return ke(e, r, t, !1);
781
- }
782
- var Rr = Er, mr = hr;
783
- N.Fragment = b, N.jsx = Rr, N.jsxs = mr;
784
- }()), N;
785
- }
786
- process.env.NODE_ENV === "production" ? oe.exports = Dr() : oe.exports = Fr();
787
- var O = oe.exports;
788
- function Br(n, a) {
789
- const l = a === void 0 ? void 0 : typeof a == "object" && a !== null && !Array.isArray(a) && ("equals" in a || "loading" in a || "error" in a) ? a : { equals: a };
790
- return /* @__PURE__ */ O.jsx(
791
- Ur,
200
+ function me(r, e) {
201
+ const t = e === void 0 ? void 0 : typeof e == "object" && e !== null && !Array.isArray(e) && ("equals" in e || "loading" in e || "error" in e) ? e : { equals: e };
202
+ return /* @__PURE__ */ b(
203
+ oe,
792
204
  {
793
- selectorOrAtom: n,
794
- options: l
205
+ selectorOrAtom: r,
206
+ options: t
795
207
  }
796
208
  );
797
209
  }
798
- class Ir extends wr {
210
+ class $ extends J {
799
211
  constructor() {
800
212
  super(...arguments);
801
- Ae(this, "state", { error: null });
213
+ _(this, "state", { error: null });
802
214
  }
803
- static getDerivedStateFromError(l) {
804
- return { error: l };
215
+ static getDerivedStateFromError(t) {
216
+ return { error: t };
805
217
  }
806
218
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
807
- componentDidCatch(l, b) {
219
+ componentDidCatch(t, l) {
808
220
  }
809
221
  render() {
810
222
  if (this.state.error !== null && this.props.onError)
811
- return /* @__PURE__ */ O.jsx(O.Fragment, { children: this.props.onError({ error: this.state.error }) });
223
+ return /* @__PURE__ */ b(j, { children: this.props.onError({ error: this.state.error }) });
812
224
  if (this.state.error !== null)
813
225
  throw this.state.error;
814
226
  return this.props.children;
815
227
  }
816
228
  }
817
- function Wr(n) {
818
- const a = Ue(n.selector, n.equals);
819
- return /* @__PURE__ */ O.jsx(O.Fragment, { children: a ?? null });
229
+ function ee(r) {
230
+ const e = L(r.selector, r.equals);
231
+ return /* @__PURE__ */ b(j, { children: e ?? null });
820
232
  }
821
- function $r(n) {
822
- return /* @__PURE__ */ O.jsx(O.Fragment, { children: n.render() });
233
+ function re(r) {
234
+ return /* @__PURE__ */ b(j, { children: r.render() });
823
235
  }
824
- function Yr(n) {
825
- return n.fallback ? /* @__PURE__ */ O.jsx(xr, { fallback: /* @__PURE__ */ O.jsx($r, { render: n.fallback }), children: n.children }) : /* @__PURE__ */ O.jsx(O.Fragment, { children: n.children });
236
+ function te(r) {
237
+ return r.fallback ? /* @__PURE__ */ b(N, { fallback: /* @__PURE__ */ b(re, { render: r.fallback }), children: r.children }) : /* @__PURE__ */ b(j, { children: r.children });
826
238
  }
827
- function Lr(n) {
828
- return n.onError ? /* @__PURE__ */ O.jsx(Ir, { onError: n.onError, children: n.children }) : /* @__PURE__ */ O.jsx(O.Fragment, { children: n.children });
239
+ function ne(r) {
240
+ return r.onError ? /* @__PURE__ */ b($, { onError: r.onError, children: r.children }) : /* @__PURE__ */ b(j, { children: r.children });
829
241
  }
830
- const Ur = jr(
831
- function(a) {
832
- var v, i, S, f;
833
- const l = A(a.selectorOrAtom);
834
- l.current = a.selectorOrAtom;
835
- const b = z(a.selectorOrAtom), g = (v = a.options) == null ? void 0 : v.deps, T = b ? [a.selectorOrAtom, ...g ?? []] : g ?? [{}], h = U(
836
- (d) => z(l.current) ? d.read(l.current) : l.current(d),
837
- T
242
+ const oe = G(
243
+ function(e) {
244
+ var s, o, m, a;
245
+ const t = p(e.selectorOrAtom);
246
+ t.current = e.selectorOrAtom;
247
+ const l = O(e.selectorOrAtom), n = (s = e.options) == null ? void 0 : s.deps, h = l ? [e.selectorOrAtom, ...n ?? []] : n ?? [{}], u = D(
248
+ (y) => O(t.current) ? y.read(t.current) : t.current(y),
249
+ h
838
250
  );
839
- return /* @__PURE__ */ O.jsx(Lr, { onError: (i = a.options) == null ? void 0 : i.error, children: /* @__PURE__ */ O.jsx(Yr, { fallback: (S = a.options) == null ? void 0 : S.loading, children: /* @__PURE__ */ O.jsx(Wr, { selector: h, equals: (f = a.options) == null ? void 0 : f.equals }) }) });
251
+ return /* @__PURE__ */ b(ne, { onError: (o = e.options) == null ? void 0 : o.error, children: /* @__PURE__ */ b(te, { fallback: (m = e.options) == null ? void 0 : m.loading, children: /* @__PURE__ */ b(ee, { selector: u, equals: (a = e.options) == null ? void 0 : a.equals }) }) });
840
252
  },
841
- (n, a) => We(n.selectorOrAtom, a.selectorOrAtom) && We(n.options, a.options)
253
+ (r, e) => q(r.selectorOrAtom, e.selectorOrAtom) && q(r.options, e.options)
842
254
  );
843
255
  export {
844
- Gr as AllAtomsRejectedError,
845
- Hr as atom,
846
- Xr as batch,
847
- Zr as define,
848
- Qr as derived,
849
- et as effect,
850
- rt as emitter,
851
- tt as getAtomState,
852
- z as isAtom,
853
- nt as isDerived,
854
- at as isFulfilled,
855
- ot as isPending,
856
- it as isRejected,
857
- st as onCreateHook,
858
- ut as onErrorHook,
859
- ct as promisesEqual,
860
- lt as readonly,
861
- Br as rx,
862
- Fe as select,
863
- ft as trackPromise,
864
- dt as unwrap,
865
- zr as useAction,
866
- Ue as useSelector,
867
- Nr as useStable
256
+ he as AllAtomsRejectedError,
257
+ Re as atom,
258
+ Ee as batch,
259
+ ye as define,
260
+ Se as derived,
261
+ Ae as effect,
262
+ ve as emitter,
263
+ ge as getAtomState,
264
+ O as isAtom,
265
+ De as isDerived,
266
+ Oe as isFulfilled,
267
+ je as isPending,
268
+ ke as isPool,
269
+ xe as isRejected,
270
+ Ce as isScopedAtom,
271
+ Fe as onCreateHook,
272
+ Ie as onErrorHook,
273
+ we as pool,
274
+ qe as promisesEqual,
275
+ Te as readonly,
276
+ me as rx,
277
+ F as select,
278
+ ze as trackPromise,
279
+ _e as unwrap,
280
+ de as useAction,
281
+ L as useSelector,
282
+ fe as useStable
868
283
  };