@ahoo-wang/fetcher-react 3.6.9 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,41 +1,41 @@
1
- var H = Object.defineProperty;
2
- var s = (r, e) => H(r, "name", { value: e, configurable: !0 });
1
+ var Z = Object.defineProperty;
2
+ var s = (r, e) => Z(r, "name", { value: e, configurable: !0 });
3
3
  import { c as S } from "react/compiler-runtime";
4
- import { useRef as L, useEffect as I, useState as A, useCallback as Q, useMemo as M, useReducer as X, useSyncExternalStore as Z, createContext as ee, useContext as te } from "react";
5
- import { jsx as V, Fragment as re } from "react/jsx-runtime";
6
- import { nameGenerator as ne } from "@ahoo-wang/fetcher-eventbus";
4
+ import { useRef as I, useEffect as C, useState as M, useCallback as Q, useMemo as T, useReducer as ee, useSyncExternalStore as te, createContext as re, useContext as ne } from "react";
5
+ import { jsx as p, Fragment as z } from "react/jsx-runtime";
6
+ import { nameGenerator as se } from "@ahoo-wang/fetcher-eventbus";
7
7
  import { produce as ce } from "immer";
8
- import { fetcherRegistrar as se, getFetcher as ue, JsonResultExtractor as oe } from "@ahoo-wang/fetcher";
9
- import { JsonEventStreamResultExtractor as le } from "@ahoo-wang/fetcher-eventstream";
10
- function O(r) {
11
- const e = L(r);
8
+ import { fetcherRegistrar as ue, getFetcher as oe, JsonResultExtractor as le } from "@ahoo-wang/fetcher";
9
+ import { JsonEventStreamResultExtractor as ie } from "@ahoo-wang/fetcher-eventstream";
10
+ function $(r) {
11
+ const e = I(r);
12
12
  return e.current = r, e;
13
13
  }
14
- s(O, "useLatest");
15
- function D(r, e) {
14
+ s($, "useLatest");
15
+ function k(r, e) {
16
16
  const t = S(19);
17
17
  if (e.leading === !1 && e.trailing === !1)
18
18
  throw new Error("useDebouncedCallback: at least one of leading or trailing must be true");
19
- const n = L(void 0), u = L(null), l = L(null), c = O(r), f = O(e);
19
+ const n = I(void 0), l = I(null), u = I(null), c = $(r), f = $(e);
20
20
  let o;
21
21
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ s(() => {
22
22
  n.current !== void 0 && (clearTimeout(n.current), n.current = void 0);
23
23
  }, "t0"), t[0] = o) : o = t[0];
24
24
  const y = o;
25
25
  let a;
26
- t[1] !== f ? (a = /* @__PURE__ */ s((_) => l.current ? _ - l.current >= f.current.delay : !0, "t1"), t[1] = f, t[2] = a) : a = t[2];
26
+ t[1] !== f ? (a = /* @__PURE__ */ s((_) => u.current ? _ - u.current >= f.current.delay : !0, "t1"), t[1] = f, t[2] = a) : a = t[2];
27
27
  const i = a;
28
28
  let d;
29
29
  t[3] !== c ? (d = /* @__PURE__ */ s((_, q) => {
30
- l.current = _, c.current(...q);
30
+ u.current = _, c.current(...q);
31
31
  }, "t2"), t[3] = c, t[4] = d) : d = t[4];
32
32
  const m = d;
33
33
  let h;
34
34
  t[5] !== m || t[6] !== f ? (h = /* @__PURE__ */ s(() => {
35
35
  n.current = setTimeout(() => {
36
- if (u.current) {
36
+ if (l.current) {
37
37
  const _ = Date.now();
38
- m(_, u.current);
38
+ m(_, l.current);
39
39
  }
40
40
  n.current = void 0;
41
41
  }, f.current.delay);
@@ -46,65 +46,65 @@ function D(r, e) {
46
46
  const q = _;
47
47
  y();
48
48
  const {
49
- leading: U,
50
- trailing: k
51
- } = f.current, G = U === void 0 ? !1 : U, K = k === void 0 ? !0 : k;
52
- if (u.current = q, K && !G) {
49
+ leading: N,
50
+ trailing: G
51
+ } = f.current, K = N === void 0 ? !1 : N, V = G === void 0 ? !0 : G;
52
+ if (l.current = q, V && !K) {
53
53
  g();
54
54
  return;
55
55
  }
56
- const N = Date.now();
57
- if (G && i(N)) {
58
- m(N, q);
56
+ const W = Date.now();
57
+ if (K && i(W)) {
58
+ m(W, q);
59
59
  return;
60
60
  }
61
- K && g();
61
+ V && g();
62
62
  }, "t4"), t[8] = m, t[9] = f, t[10] = g, t[11] = i, t[12] = E) : E = t[12];
63
63
  const b = E;
64
64
  let x;
65
65
  t[13] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ s(() => {
66
- y(), u.current = null;
66
+ y(), l.current = null;
67
67
  }, "t5"), t[13] = x) : x = t[13];
68
68
  const F = x;
69
69
  let v;
70
70
  t[14] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ s(() => n.current !== void 0, "t6"), t[14] = v) : v = t[14];
71
71
  const w = v;
72
- let R, C;
72
+ let R, L;
73
73
  t[15] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ s(() => () => {
74
74
  F();
75
- }, "t7"), C = [F], t[15] = R, t[16] = C) : (R = t[15], C = t[16]), I(R, C);
76
- let $;
77
- return t[17] !== b ? ($ = {
75
+ }, "t7"), L = [F], t[15] = R, t[16] = L) : (R = t[15], L = t[16]), C(R, L);
76
+ let O;
77
+ return t[17] !== b ? (O = {
78
78
  run: b,
79
79
  cancel: F,
80
80
  isPending: w
81
- }, t[17] = b, t[18] = $) : $ = t[18], $;
81
+ }, t[17] = b, t[18] = O) : O = t[18], O;
82
82
  }
83
- s(D, "useDebouncedCallback");
84
- function W() {
85
- const r = S(3), e = L(!1);
83
+ s(k, "useDebouncedCallback");
84
+ function j() {
85
+ const r = S(3), e = I(!1);
86
86
  let t;
87
87
  r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(() => e.current, "t0"), r[0] = t) : t = r[0];
88
88
  const n = t;
89
- let u, l;
90
- return r[1] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(() => (e.current = !0, () => {
89
+ let l, u;
90
+ return r[1] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(() => (e.current = !0, () => {
91
91
  e.current = !1;
92
- }), "t1"), l = [], r[1] = u, r[2] = l) : (u = r[1], l = r[2]), I(u, l), n;
92
+ }), "t1"), u = [], r[1] = l, r[2] = u) : (l = r[1], u = r[2]), C(l, u), n;
93
93
  }
94
- s(W, "useMounted");
95
- var ie = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(ie || {});
96
- function ae(r) {
97
- const [e, t] = A(
94
+ s(j, "useMounted");
95
+ var ae = /* @__PURE__ */ ((r) => (r.IDLE = "idle", r.LOADING = "loading", r.SUCCESS = "success", r.ERROR = "error", r))(ae || {});
96
+ function fe(r) {
97
+ const [e, t] = M(
98
98
  r?.initialStatus ?? "idle"
99
99
  /* IDLE */
100
- ), [n, u] = A(void 0), [l, c] = A(void 0), f = W(), o = O(r), y = Q(() => {
100
+ ), [n, l] = M(void 0), [u, c] = M(void 0), f = j(), o = $(r), y = Q(() => {
101
101
  f() && (t(
102
102
  "loading"
103
103
  /* LOADING */
104
104
  ), c(void 0));
105
105
  }, [f]), a = Q(async (m) => {
106
106
  if (f()) {
107
- u(m), t(
107
+ l(m), t(
108
108
  "success"
109
109
  /* SUCCESS */
110
110
  ), c(void 0);
@@ -119,7 +119,7 @@ function ae(r) {
119
119
  c(m), t(
120
120
  "error"
121
121
  /* ERROR */
122
- ), u(void 0);
122
+ ), l(void 0);
123
123
  try {
124
124
  await o.current?.onError?.(m);
125
125
  } catch (h) {
@@ -130,28 +130,28 @@ function ae(r) {
130
130
  f() && (t(
131
131
  "idle"
132
132
  /* IDLE */
133
- ), c(void 0), u(void 0));
133
+ ), c(void 0), l(void 0));
134
134
  }, [f]);
135
- return M(() => ({
135
+ return T(() => ({
136
136
  status: e,
137
137
  loading: e === "loading",
138
138
  result: n,
139
- error: l,
139
+ error: u,
140
140
  setLoading: y,
141
141
  setSuccess: a,
142
142
  setError: i,
143
143
  setIdle: d
144
- }), [e, n, l, y, a, i, d]);
144
+ }), [e, n, u, y, a, i, d]);
145
145
  }
146
- s(ae, "usePromiseState");
147
- function fe() {
148
- const r = S(6), e = L(0);
146
+ s(fe, "usePromiseState");
147
+ function de() {
148
+ const r = S(6), e = I(0);
149
149
  let t;
150
150
  r[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ s(() => e.current = e.current + 1, "t0"), r[0] = t) : t = r[0];
151
151
  const n = t;
152
- let u;
153
- r[1] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ s(() => e.current, "t1"), r[1] = u) : u = r[1];
154
- const l = u;
152
+ let l;
153
+ r[1] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ s(() => e.current, "t1"), r[1] = l) : l = r[1];
154
+ const u = l;
155
155
  let c;
156
156
  r[2] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ s((m) => m === e.current, "t2"), r[2] = c) : c = r[2];
157
157
  const f = c;
@@ -168,24 +168,24 @@ function fe() {
168
168
  let d;
169
169
  return r[5] === Symbol.for("react.memo_cache_sentinel") ? (d = {
170
170
  generate: n,
171
- current: l,
171
+ current: u,
172
172
  isLatest: f,
173
173
  invalidate: y,
174
174
  reset: i
175
175
  }, r[5] = d) : d = r[5], d;
176
176
  }
177
- s(fe, "useRequestId");
178
- function T(r) {
177
+ s(de, "useRequestId");
178
+ function U(r) {
179
179
  const {
180
180
  loading: e,
181
181
  result: t,
182
182
  error: n,
183
- status: u,
184
- setLoading: l,
183
+ status: l,
184
+ setLoading: u,
185
185
  setSuccess: c,
186
186
  setError: f,
187
187
  setIdle: o
188
- } = ae(r), y = W(), a = fe(), i = L(void 0), d = r?.propagateError, m = O(r?.onAbort), h = Q(async () => {
188
+ } = fe(r), y = j(), a = de(), i = I(void 0), d = r?.propagateError, m = $(r?.onAbort), h = Q(async () => {
189
189
  try {
190
190
  await m.current?.();
191
191
  } catch (x) {
@@ -196,7 +196,7 @@ function T(r) {
196
196
  const F = new AbortController();
197
197
  i.current = F;
198
198
  const v = a.generate();
199
- l();
199
+ u();
200
200
  try {
201
201
  const w = await x(F);
202
202
  y() && a.isLatest(v) && await c(w);
@@ -210,61 +210,61 @@ function T(r) {
210
210
  } finally {
211
211
  i.current === F && (i.current = void 0);
212
212
  }
213
- }, [l, c, f, o, y, a, d, h]), E = Q(() => {
213
+ }, [u, c, f, o, y, a, d, h]), E = Q(() => {
214
214
  y() && o();
215
215
  }, [o, y]), b = Q(async () => {
216
216
  E(), i.current && (i.current.abort(), i.current = void 0, await h());
217
217
  }, [E, h]);
218
- return I(() => () => {
218
+ return C(() => () => {
219
219
  b();
220
- }, [b]), M(() => ({
220
+ }, [b]), T(() => ({
221
221
  loading: e,
222
222
  result: t,
223
223
  error: n,
224
- status: u,
224
+ status: l,
225
225
  execute: g,
226
226
  reset: E,
227
227
  abort: b
228
- }), [e, t, n, u, g, E, b]);
228
+ }), [e, t, n, l, g, E, b]);
229
229
  }
230
- s(T, "useExecutePromise");
231
- function Oe(r) {
230
+ s(U, "useExecutePromise");
231
+ function $e(r) {
232
232
  const e = S(10), {
233
233
  loading: t,
234
234
  result: n,
235
- error: u,
236
- execute: l,
235
+ error: l,
236
+ execute: u,
237
237
  reset: c,
238
238
  abort: f,
239
239
  status: o
240
- } = T(r), {
240
+ } = U(r), {
241
241
  run: y,
242
242
  cancel: a,
243
243
  isPending: i
244
- } = D(l, r.debounce);
244
+ } = k(u, r.debounce);
245
245
  let d;
246
- return e[0] !== f || e[1] !== a || e[2] !== u || e[3] !== i || e[4] !== t || e[5] !== c || e[6] !== n || e[7] !== y || e[8] !== o ? (d = {
246
+ return e[0] !== f || e[1] !== a || e[2] !== l || e[3] !== i || e[4] !== t || e[5] !== c || e[6] !== n || e[7] !== y || e[8] !== o ? (d = {
247
247
  loading: t,
248
248
  result: n,
249
- error: u,
249
+ error: l,
250
250
  status: o,
251
251
  reset: c,
252
252
  abort: f,
253
253
  run: y,
254
254
  cancel: a,
255
255
  isPending: i
256
- }, e[0] = f, e[1] = a, e[2] = u, e[3] = i, e[4] = t, e[5] = c, e[6] = n, e[7] = y, e[8] = o, e[9] = d) : d = e[9], d;
256
+ }, e[0] = f, e[1] = a, e[2] = l, e[3] = i, e[4] = t, e[5] = c, e[6] = n, e[7] = y, e[8] = o, e[9] = d) : d = e[9], d;
257
257
  }
258
- s(Oe, "useDebouncedExecutePromise");
259
- function $e(r) {
258
+ s($e, "useDebouncedExecutePromise");
259
+ function Oe(r) {
260
260
  const e = S(22), t = r.autoExecute;
261
261
  let n;
262
262
  e[0] !== r ? (n = {
263
263
  ...r,
264
264
  autoExecute: !1
265
265
  }, e[0] = r, e[1] = n) : n = e[1];
266
- const u = n, {
267
- loading: l,
266
+ const l = n, {
267
+ loading: u,
268
268
  result: c,
269
269
  error: f,
270
270
  status: o,
@@ -273,11 +273,11 @@ function $e(r) {
273
273
  abort: i,
274
274
  getQuery: d,
275
275
  setQuery: m
276
- } = p(u), {
276
+ } = P(l), {
277
277
  run: h,
278
278
  cancel: g,
279
279
  isPending: E
280
- } = D(y, r.debounce);
280
+ } = k(y, r.debounce);
281
281
  let b;
282
282
  e[2] !== t || e[3] !== h || e[4] !== m ? (b = /* @__PURE__ */ s((R) => {
283
283
  m(R), t && h();
@@ -286,10 +286,10 @@ function $e(r) {
286
286
  let F, v;
287
287
  e[6] !== t || e[7] !== h ? (F = /* @__PURE__ */ s(() => {
288
288
  t && h();
289
- }, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]), I(F, v);
289
+ }, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]), C(F, v);
290
290
  let w;
291
- return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !== l || e[16] !== a || e[17] !== c || e[18] !== h || e[19] !== x || e[20] !== o ? (w = {
292
- loading: l,
291
+ return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !== u || e[16] !== a || e[17] !== c || e[18] !== h || e[19] !== x || e[20] !== o ? (w = {
292
+ loading: u,
293
293
  result: c,
294
294
  error: f,
295
295
  status: o,
@@ -300,14 +300,14 @@ function $e(r) {
300
300
  run: h,
301
301
  cancel: g,
302
302
  isPending: E
303
- }, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] = l, e[16] = a, e[17] = c, e[18] = h, e[19] = x, e[20] = o, e[21] = w) : w = e[21], w;
303
+ }, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] = u, e[16] = a, e[17] = c, e[18] = h, e[19] = x, e[20] = o, e[21] = w) : w = e[21], w;
304
304
  }
305
- s($e, "useDebouncedQuery");
306
- function de() {
305
+ s(Oe, "useDebouncedQuery");
306
+ function me() {
307
307
  return document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement;
308
308
  }
309
- s(de, "getFullscreenElement");
310
- async function me(r) {
309
+ s(me, "getFullscreenElement");
310
+ async function ye(r) {
311
311
  try {
312
312
  if (r.requestFullscreen)
313
313
  await r.requestFullscreen();
@@ -323,8 +323,8 @@ async function me(r) {
323
323
  throw console.error("Failed to enter fullscreen:", e), e;
324
324
  }
325
325
  }
326
- s(me, "enterFullscreen");
327
- async function ye() {
326
+ s(ye, "enterFullscreen");
327
+ async function he() {
328
328
  try {
329
329
  if (document.exitFullscreen)
330
330
  await document.exitFullscreen();
@@ -340,39 +340,39 @@ async function ye() {
340
340
  throw console.error("Failed to exit fullscreen:", r), r;
341
341
  }
342
342
  }
343
- s(ye, "exitFullscreen");
344
- function he(r) {
343
+ s(he, "exitFullscreen");
344
+ function ge(r) {
345
345
  document.addEventListener("fullscreenchange", r), document.addEventListener("webkitfullscreenchange", r), document.addEventListener("mozfullscreenchange", r), document.addEventListener("MSFullscreenChange", r);
346
346
  }
347
- s(he, "addFullscreenChangeListener");
348
- function ge(r) {
347
+ s(ge, "addFullscreenChangeListener");
348
+ function be(r) {
349
349
  document.removeEventListener("fullscreenchange", r), document.removeEventListener("webkitfullscreenchange", r), document.removeEventListener("mozfullscreenchange", r), document.removeEventListener("MSFullscreenChange", r);
350
350
  }
351
- s(ge, "removeFullscreenChangeListener");
351
+ s(be, "removeFullscreenChangeListener");
352
352
  function pe(r) {
353
353
  const e = S(18);
354
354
  let t;
355
355
  e[0] !== r ? (t = r === void 0 ? {} : r, e[0] = r, e[1] = t) : t = e[1];
356
356
  const n = t, {
357
- target: u,
358
- onChange: l
359
- } = n, [c, f] = A(!1);
357
+ target: l,
358
+ onChange: u
359
+ } = n, [c, f] = M(!1);
360
360
  let o;
361
- e[2] !== c || e[3] !== l || e[4] !== u ? (o = /* @__PURE__ */ s(() => {
362
- const F = de() === (u?.current || document.documentElement);
363
- F !== c && (f(F), l?.(F));
364
- }, "t2"), e[2] = c, e[3] = l, e[4] = u, e[5] = o) : o = e[5];
361
+ e[2] !== c || e[3] !== u || e[4] !== l ? (o = /* @__PURE__ */ s(() => {
362
+ const F = me() === (l?.current || document.documentElement);
363
+ F !== c && (f(F), u?.(F));
364
+ }, "t2"), e[2] = c, e[3] = u, e[4] = l, e[5] = o) : o = e[5];
365
365
  const y = o;
366
366
  let a, i;
367
- e[6] !== y ? (a = /* @__PURE__ */ s(() => (he(y), () => {
368
- ge(y);
369
- }), "t3"), i = [y], e[6] = y, e[7] = a, e[8] = i) : (a = e[7], i = e[8]), I(a, i);
367
+ e[6] !== y ? (a = /* @__PURE__ */ s(() => (ge(y), () => {
368
+ be(y);
369
+ }), "t3"), i = [y], e[6] = y, e[7] = a, e[8] = i) : (a = e[7], i = e[8]), C(a, i);
370
370
  let d;
371
- e[9] !== u ? (d = /* @__PURE__ */ s(async () => {
372
- const x = u?.current || document.documentElement;
373
- await me(x);
374
- }, "t5"), e[9] = u, e[10] = d) : d = e[10];
375
- const m = d, h = be;
371
+ e[9] !== l ? (d = /* @__PURE__ */ s(async () => {
372
+ const x = l?.current || document.documentElement;
373
+ await ye(x);
374
+ }, "t5"), e[9] = l, e[10] = d) : d = e[10];
375
+ const m = d, h = Ee;
376
376
  let g;
377
377
  e[11] !== m || e[12] !== c ? (g = /* @__PURE__ */ s(async () => {
378
378
  c ? await h() : await m();
@@ -387,23 +387,23 @@ function pe(r) {
387
387
  }, e[14] = m, e[15] = c, e[16] = E, e[17] = b) : b = e[17], b;
388
388
  }
389
389
  s(pe, "useFullscreen");
390
- async function be() {
391
- await ye();
390
+ async function Ee() {
391
+ await he();
392
392
  }
393
- s(be, "_temp$1");
393
+ s(Ee, "_temp$1");
394
394
  function Pe() {
395
- const r = L(/* @__PURE__ */ new Map()), e = Q((i) => r.current.get(i), []), t = Q((i, d) => r.current.set(i, d), []), n = Q((i) => r.current.has(i), []), u = Q((i) => r.current.delete(i), []), l = Q(() => r.current.clear(), []), c = Q(() => r.current.keys(), []), f = Q(() => r.current.values(), []), o = Q(() => r.current.entries(), []), y = Q(() => r.current[Symbol.iterator](), []), a = Q((i) => (d) => {
395
+ const r = I(/* @__PURE__ */ new Map()), e = Q((i) => r.current.get(i), []), t = Q((i, d) => r.current.set(i, d), []), n = Q((i) => r.current.has(i), []), l = Q((i) => r.current.delete(i), []), u = Q(() => r.current.clear(), []), c = Q(() => r.current.keys(), []), f = Q(() => r.current.values(), []), o = Q(() => r.current.entries(), []), y = Q(() => r.current[Symbol.iterator](), []), a = Q((i) => (d) => {
396
396
  d ? r.current.set(i, d) : r.current.delete(i);
397
397
  }, []);
398
- return I(() => () => {
398
+ return C(() => () => {
399
399
  r.current.clear();
400
- }, []), M(() => ({
400
+ }, []), T(() => ({
401
401
  register: a,
402
402
  get: e,
403
403
  set: t,
404
404
  has: n,
405
- delete: u,
406
- clear: l,
405
+ delete: l,
406
+ clear: u,
407
407
  keys: c,
408
408
  values: f,
409
409
  entries: o,
@@ -411,33 +411,33 @@ function Pe() {
411
411
  return r.current.size;
412
412
  },
413
413
  [Symbol.iterator]: y
414
- }), [a, e, t, n, u, l, c, f, o, y]);
414
+ }), [a, e, t, n, l, u, c, f, o, y]);
415
415
  }
416
416
  s(Pe, "useRefs");
417
417
  function Ae() {
418
- const [, r] = X(Ee, 0);
418
+ const [, r] = ee(xe, 0);
419
419
  return r;
420
420
  }
421
421
  s(Ae, "useForceUpdate");
422
- function Ee(r) {
422
+ function xe(r) {
423
423
  return r + 1;
424
424
  }
425
- s(Ee, "_temp");
426
- function j(r) {
425
+ s(xe, "_temp");
426
+ function J(r) {
427
427
  const e = S(12), {
428
428
  initialQuery: t,
429
429
  query: n,
430
- autoExecute: u,
431
- execute: l
432
- } = r, c = u === void 0 ? !0 : u, o = L(n ?? t);
430
+ autoExecute: l,
431
+ execute: u
432
+ } = r, c = l === void 0 ? !0 : l, o = I(n ?? t);
433
433
  let y;
434
434
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ s(() => o.current, "t1"), e[0] = y) : y = e[0];
435
435
  const a = y;
436
436
  let i;
437
- e[1] !== c || e[2] !== l ? (i = /* @__PURE__ */ s(() => {
437
+ e[1] !== c || e[2] !== u ? (i = /* @__PURE__ */ s(() => {
438
438
  const x = a();
439
- c && z(x) && l(x);
440
- }, "t2"), e[1] = c, e[2] = l, e[3] = i) : i = e[3];
439
+ c && D(x) && u(x);
440
+ }, "t2"), e[1] = c, e[2] = u, e[3] = i) : i = e[3];
441
441
  const d = i;
442
442
  let m;
443
443
  e[4] !== d ? (m = /* @__PURE__ */ s((x) => {
@@ -446,29 +446,29 @@ function j(r) {
446
446
  const h = m;
447
447
  let g, E;
448
448
  e[6] !== d || e[7] !== n ? (g = /* @__PURE__ */ s(() => {
449
- z(n) && (o.current = n), d();
450
- }, "t4"), E = [d, n], e[6] = d, e[7] = n, e[8] = g, e[9] = E) : (g = e[8], E = e[9]), I(g, E);
449
+ D(n) && (o.current = n), d();
450
+ }, "t4"), E = [d, n], e[6] = d, e[7] = n, e[8] = g, e[9] = E) : (g = e[8], E = e[9]), C(g, E);
451
451
  let b;
452
452
  return e[10] !== h ? (b = {
453
453
  getQuery: a,
454
454
  setQuery: h
455
455
  }, e[10] = h, e[11] = b) : b = e[11], b;
456
456
  }
457
- s(j, "useQueryState");
458
- function z(r) {
457
+ s(J, "useQueryState");
458
+ function D(r) {
459
459
  return r !== void 0;
460
460
  }
461
- s(z, "isValidateQuery");
462
- function p(r) {
463
- const e = S(21), t = O(r), {
461
+ s(D, "isValidateQuery");
462
+ function P(r) {
463
+ const e = S(21), t = $(r), {
464
464
  loading: n,
465
- result: u,
466
- error: l,
465
+ result: l,
466
+ error: u,
467
467
  status: c,
468
468
  execute: f,
469
469
  reset: o,
470
470
  abort: y
471
- } = T(r);
471
+ } = U(r);
472
472
  let a;
473
473
  e[0] !== t || e[1] !== f ? (a = /* @__PURE__ */ s((x) => f(/* @__PURE__ */ s(async (v) => t.current.execute(x, t.current.attributes, v), "queryExecutor")), "t0"), e[0] = t, e[1] = f, e[2] = a) : a = e[2];
474
474
  const i = a;
@@ -482,42 +482,42 @@ function p(r) {
482
482
  const {
483
483
  getQuery: m,
484
484
  setQuery: h
485
- } = j(d);
485
+ } = J(d);
486
486
  let g;
487
487
  e[8] !== i || e[9] !== m ? (g = /* @__PURE__ */ s(async () => {
488
488
  const x = m();
489
- if (z(x))
489
+ if (D(x))
490
490
  return await i(x);
491
491
  }, "t2"), e[8] = i, e[9] = m, e[10] = g) : g = e[10];
492
492
  const E = g;
493
493
  let b;
494
- return e[11] !== y || e[12] !== l || e[13] !== E || e[14] !== m || e[15] !== n || e[16] !== o || e[17] !== u || e[18] !== h || e[19] !== c ? (b = {
494
+ return e[11] !== y || e[12] !== u || e[13] !== E || e[14] !== m || e[15] !== n || e[16] !== o || e[17] !== l || e[18] !== h || e[19] !== c ? (b = {
495
495
  loading: n,
496
- result: u,
497
- error: l,
496
+ result: l,
497
+ error: u,
498
498
  status: c,
499
499
  execute: E,
500
500
  reset: o,
501
501
  abort: y,
502
502
  getQuery: m,
503
503
  setQuery: h
504
- }, e[11] = y, e[12] = l, e[13] = E, e[14] = m, e[15] = n, e[16] = o, e[17] = u, e[18] = h, e[19] = c, e[20] = b) : b = e[20], b;
504
+ }, e[11] = y, e[12] = u, e[13] = E, e[14] = m, e[15] = n, e[16] = o, e[17] = l, e[18] = h, e[19] = c, e[20] = b) : b = e[20], b;
505
505
  }
506
- s(p, "useQuery");
507
- function J(r, e) {
506
+ s(P, "useQuery");
507
+ function Y(r, e) {
508
508
  const t = S(13);
509
509
  let n;
510
510
  t[0] !== r ? (n = /* @__PURE__ */ s((m) => r.addListener({
511
- name: ne.generate("useKeyStorage"),
511
+ name: se.generate("useKeyStorage"),
512
512
  handle: m
513
513
  }), "t0"), t[0] = r, t[1] = n) : n = t[1];
514
- const u = n;
515
- let l;
516
- t[2] !== e || t[3] !== r ? (l = /* @__PURE__ */ s(() => {
514
+ const l = n;
515
+ let u;
516
+ t[2] !== e || t[3] !== r ? (u = /* @__PURE__ */ s(() => {
517
517
  const m = r.get();
518
518
  return m !== null ? m : e ?? null;
519
- }, "t1"), t[2] = e, t[3] = r, t[4] = l) : l = t[4];
520
- const c = l, f = Z(u, c, c);
519
+ }, "t1"), t[2] = e, t[3] = r, t[4] = u) : u = t[4];
520
+ const c = u, f = te(l, c, c);
521
521
  let o;
522
522
  t[5] !== r ? (o = /* @__PURE__ */ s((m) => r.set(m), "t2"), t[5] = r, t[6] = o) : o = t[6];
523
523
  const y = o;
@@ -527,34 +527,34 @@ function J(r, e) {
527
527
  let d;
528
528
  return t[9] !== i || t[10] !== y || t[11] !== f ? (d = [f, y, i], t[9] = i, t[10] = y, t[11] = f, t[12] = d) : d = t[12], d;
529
529
  }
530
- s(J, "useKeyStorage");
531
- function ze(r, e) {
532
- const t = S(8), [n, u, l] = J(r, e);
530
+ s(Y, "useKeyStorage");
531
+ function Me(r, e) {
532
+ const t = S(8), [n, l, u] = Y(r, e);
533
533
  let c;
534
- t[0] !== l || t[1] !== u || t[2] !== n ? (c = /* @__PURE__ */ s((y) => {
534
+ t[0] !== u || t[1] !== l || t[2] !== n ? (c = /* @__PURE__ */ s((y) => {
535
535
  const a = ce(n, y);
536
536
  if (a === null) {
537
- l();
537
+ u();
538
538
  return;
539
539
  }
540
- return u(a);
541
- }, "t0"), t[0] = l, t[1] = u, t[2] = n, t[3] = c) : c = t[3];
540
+ return l(a);
541
+ }, "t0"), t[0] = u, t[1] = l, t[2] = n, t[3] = c) : c = t[3];
542
542
  const f = c;
543
543
  let o;
544
- return t[4] !== l || t[5] !== f || t[6] !== n ? (o = [n, f, l], t[4] = l, t[5] = f, t[6] = n, t[7] = o) : o = t[7], o;
544
+ return t[4] !== u || t[5] !== f || t[6] !== n ? (o = [n, f, u], t[4] = u, t[5] = f, t[6] = n, t[7] = o) : o = t[7], o;
545
545
  }
546
- s(ze, "useImmerKeyStorage");
547
- const xe = {
546
+ s(Me, "useImmerKeyStorage");
547
+ const Fe = {
548
548
  jti: "",
549
549
  sub: "anonymous",
550
550
  iat: 0,
551
551
  exp: 0
552
552
  };
553
- function Fe(r, e) {
553
+ function ve(r, e) {
554
554
  const t = S(13);
555
555
  let n;
556
556
  t[0] !== e ? (n = e === void 0 ? {} : e, t[0] = e, t[1] = n) : n = t[1];
557
- const u = n, [l, , c] = J(r), f = O(u);
557
+ const l = n, [u, , c] = Y(r), f = $(l);
558
558
  let o;
559
559
  t[2] !== f || t[3] !== r ? (o = /* @__PURE__ */ s(async (g) => {
560
560
  const E = typeof g == "function" ? await g() : g;
@@ -565,7 +565,7 @@ function Fe(r, e) {
565
565
  t[5] !== f || t[6] !== c ? (a = /* @__PURE__ */ s(() => {
566
566
  c(), f.current.onSignOut?.();
567
567
  }, "t3"), t[5] = f, t[6] = c, t[7] = a) : a = t[7];
568
- const i = a, d = l?.access?.payload ?? xe, m = l?.authenticated ?? !1;
568
+ const i = a, d = u?.access?.payload ?? Fe, m = u?.authenticated ?? !1;
569
569
  let h;
570
570
  return t[8] !== y || t[9] !== i || t[10] !== d || t[11] !== m ? (h = {
571
571
  currentUser: d,
@@ -574,67 +574,104 @@ function Fe(r, e) {
574
574
  signOut: i
575
575
  }, t[8] = y, t[9] = i, t[10] = d, t[11] = m, t[12] = h) : h = t[12], h;
576
576
  }
577
- s(Fe, "useSecurity");
578
- const Y = ee(void 0);
579
- function De(r) {
577
+ s(ve, "useSecurity");
578
+ const B = re(void 0);
579
+ function ze(r) {
580
580
  const e = S(7);
581
- let t, n, u;
581
+ let t, n, l;
582
582
  e[0] !== r ? ({
583
583
  tokenStorage: n,
584
584
  children: t,
585
- ...u
586
- } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = u) : (t = e[1], n = e[2], u = e[3]);
587
- const l = Fe(n, u);
585
+ ...l
586
+ } = r, e[0] = r, e[1] = t, e[2] = n, e[3] = l) : (t = e[1], n = e[2], l = e[3]);
587
+ const u = ve(n, l);
588
588
  let c;
589
- return e[4] !== t || e[5] !== l ? (c = /* @__PURE__ */ V(Y.Provider, { value: l, children: t }), e[4] = t, e[5] = l, e[6] = c) : c = e[6], c;
589
+ return e[4] !== t || e[5] !== u ? (c = /* @__PURE__ */ p(B.Provider, { value: u, children: t }), e[4] = t, e[5] = u, e[6] = c) : c = e[6], c;
590
590
  }
591
- s(De, "SecurityProvider");
592
- function ve() {
593
- const r = te(Y);
591
+ s(ze, "SecurityProvider");
592
+ function H() {
593
+ const r = ne(B);
594
594
  if (!r)
595
595
  throw new Error("useSecurityContext must be used within a SecurityProvider");
596
596
  return r;
597
597
  }
598
- s(ve, "useSecurityContext");
599
- function Me(r) {
598
+ s(H, "useSecurityContext");
599
+ function De(r) {
600
600
  const e = S(2), {
601
601
  children: t,
602
602
  fallback: n,
603
- onUnauthorized: u
603
+ onUnauthorized: l
604
604
  } = r, {
605
- authenticated: l
606
- } = ve();
607
- if (l) {
605
+ authenticated: u
606
+ } = H();
607
+ if (u) {
608
608
  let c;
609
- return e[0] !== t ? (c = /* @__PURE__ */ V(re, { children: t }), e[0] = t, e[1] = c) : c = e[1], c;
609
+ return e[0] !== t ? (c = /* @__PURE__ */ p(z, { children: t }), e[0] = t, e[1] = c) : c = e[1], c;
610
+ }
611
+ return l && l(), n;
612
+ }
613
+ s(De, "RouteGuard");
614
+ function ke(r) {
615
+ const e = S(14), {
616
+ children: t,
617
+ fallback: n,
618
+ refreshing: l,
619
+ tokenManager: u
620
+ } = r, {
621
+ authenticated: c
622
+ } = H(), f = u.isRefreshNeeded && u.isRefreshable;
623
+ let o;
624
+ e[0] !== f || e[1] !== u ? (o = /* @__PURE__ */ s(async () => {
625
+ if (f)
626
+ try {
627
+ await u.refresh();
628
+ } catch (g) {
629
+ console.error(g);
630
+ }
631
+ }, "t1"), e[0] = f, e[1] = u, e[2] = o) : o = e[2];
632
+ const y = o;
633
+ let a, i;
634
+ if (e[3] !== y ? (a = /* @__PURE__ */ s(() => {
635
+ y();
636
+ }, "t2"), i = [y], e[3] = y, e[4] = a, e[5] = i) : (a = e[4], i = e[5]), C(a, i), c) {
637
+ let g;
638
+ return e[6] !== t ? (g = /* @__PURE__ */ p(z, { children: t }), e[6] = t, e[7] = g) : g = e[7], g;
639
+ }
640
+ if (!f) {
641
+ let g;
642
+ return e[8] !== n ? (g = /* @__PURE__ */ p(z, { children: n }), e[8] = n, e[9] = g) : g = e[9], g;
610
643
  }
611
- return u && u(), n;
644
+ let d;
645
+ e[10] !== l ? (d = l ?? /* @__PURE__ */ p("p", { children: "Refreshing..." }), e[10] = l, e[11] = d) : d = e[11];
646
+ const m = d;
647
+ let h;
648
+ return e[12] !== m ? (h = /* @__PURE__ */ p(z, { children: m }), e[12] = m, e[13] = h) : h = e[13], h;
612
649
  }
613
- s(Me, "RouteGuard");
614
- function B(r) {
650
+ s(ke, "RefreshableRouteGuard");
651
+ function X(r) {
615
652
  const e = S(21);
616
653
  let t;
617
654
  e[0] !== r ? (t = r || {}, e[0] = r, e[1] = t) : t = e[1];
618
655
  const {
619
656
  fetcher: n
620
- } = t, u = n === void 0 ? se.default : n, {
621
- loading: l,
657
+ } = t, l = n === void 0 ? ue.default : n, {
658
+ loading: u,
622
659
  result: c,
623
660
  error: f,
624
661
  status: o,
625
662
  execute: y,
626
663
  reset: a,
627
664
  abort: i
628
- } = T(r), [d, m] = A(void 0), h = O(r);
665
+ } = U(r), [d, m] = M(void 0), h = $(r);
629
666
  let g;
630
- e[2] !== u ? (g = ue(u), e[2] = u, e[3] = g) : g = e[3];
667
+ e[2] !== l ? (g = oe(l), e[2] = l, e[3] = g) : g = e[3];
631
668
  const E = g;
632
669
  let b;
633
- e[4] !== E || e[5] !== h || e[6] !== y ? (b = /* @__PURE__ */ s(async ($) => {
670
+ e[4] !== E || e[5] !== h || e[6] !== y ? (b = /* @__PURE__ */ s(async (O) => {
634
671
  try {
635
672
  await y(async (_) => {
636
- $.abortController = _;
637
- const q = await E.exchange($, h.current);
673
+ O.abortController = _;
674
+ const q = await E.exchange(O, h.current);
638
675
  return m(q), await q.extractResult();
639
676
  });
640
677
  } catch (_) {
@@ -653,9 +690,9 @@ function B(r) {
653
690
  i(), m(void 0);
654
691
  }, "t5"), e[10] = i, e[11] = w) : w = e[11];
655
692
  const R = w;
656
- let C;
657
- return e[12] !== R || e[13] !== f || e[14] !== d || e[15] !== x || e[16] !== l || e[17] !== v || e[18] !== c || e[19] !== o ? (C = {
658
- loading: l,
693
+ let L;
694
+ return e[12] !== R || e[13] !== f || e[14] !== d || e[15] !== x || e[16] !== u || e[17] !== v || e[18] !== c || e[19] !== o ? (L = {
695
+ loading: u,
659
696
  result: c,
660
697
  error: f,
661
698
  status: o,
@@ -663,37 +700,37 @@ function B(r) {
663
700
  execute: x,
664
701
  reset: v,
665
702
  abort: R
666
- }, e[12] = R, e[13] = f, e[14] = d, e[15] = x, e[16] = l, e[17] = v, e[18] = c, e[19] = o, e[20] = C) : C = e[20], C;
703
+ }, e[12] = R, e[13] = f, e[14] = d, e[15] = x, e[16] = u, e[17] = v, e[18] = c, e[19] = o, e[20] = L) : L = e[20], L;
667
704
  }
668
- s(B, "useFetcher");
705
+ s(X, "useFetcher");
669
706
  function Te(r) {
670
707
  const e = S(11), {
671
708
  loading: t,
672
709
  result: n,
673
- error: u,
674
- status: l,
710
+ error: l,
711
+ status: u,
675
712
  exchange: c,
676
713
  execute: f,
677
714
  reset: o,
678
715
  abort: y
679
- } = B(r), {
716
+ } = X(r), {
680
717
  run: a,
681
718
  cancel: i,
682
719
  isPending: d
683
- } = D(f, r.debounce);
720
+ } = k(f, r.debounce);
684
721
  let m;
685
- return e[0] !== y || e[1] !== i || e[2] !== u || e[3] !== c || e[4] !== d || e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== a || e[9] !== l ? (m = {
722
+ return e[0] !== y || e[1] !== i || e[2] !== l || e[3] !== c || e[4] !== d || e[5] !== t || e[6] !== o || e[7] !== n || e[8] !== a || e[9] !== u ? (m = {
686
723
  loading: t,
687
724
  result: n,
688
- error: u,
689
- status: l,
725
+ error: l,
726
+ status: u,
690
727
  exchange: c,
691
728
  reset: o,
692
729
  abort: y,
693
730
  run: a,
694
731
  cancel: i,
695
732
  isPending: d
696
- }, e[0] = y, e[1] = i, e[2] = u, e[3] = c, e[4] = d, e[5] = t, e[6] = o, e[7] = n, e[8] = a, e[9] = l, e[10] = m) : m = e[10], m;
733
+ }, e[0] = y, e[1] = i, e[2] = l, e[3] = c, e[4] = d, e[5] = t, e[6] = o, e[7] = n, e[8] = a, e[9] = u, e[10] = m) : m = e[10], m;
697
734
  }
698
735
  s(Te, "useDebouncedFetcher");
699
736
  function Ue(r) {
@@ -703,8 +740,8 @@ function Ue(r) {
703
740
  ...r,
704
741
  autoExecute: !1
705
742
  }, e[0] = r, e[1] = n) : n = e[1];
706
- const u = n, {
707
- loading: l,
743
+ const l = n, {
744
+ loading: u,
708
745
  result: c,
709
746
  error: f,
710
747
  status: o,
@@ -713,11 +750,11 @@ function Ue(r) {
713
750
  abort: i,
714
751
  getQuery: d,
715
752
  setQuery: m
716
- } = P(u), {
753
+ } = A(l), {
717
754
  run: h,
718
755
  cancel: g,
719
756
  isPending: E
720
- } = D(y, r.debounce);
757
+ } = k(y, r.debounce);
721
758
  let b;
722
759
  e[2] !== t || e[3] !== h || e[4] !== m ? (b = /* @__PURE__ */ s((R) => {
723
760
  m(R), t && h();
@@ -726,10 +763,10 @@ function Ue(r) {
726
763
  let F, v;
727
764
  e[6] !== t || e[7] !== h ? (F = /* @__PURE__ */ s(() => {
728
765
  t && h();
729
- }, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]), I(F, v);
766
+ }, "t2"), v = [h, t], e[6] = t, e[7] = h, e[8] = F, e[9] = v) : (F = e[8], v = e[9]), C(F, v);
730
767
  let w;
731
- return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !== l || e[16] !== a || e[17] !== c || e[18] !== h || e[19] !== x || e[20] !== o ? (w = {
732
- loading: l,
768
+ return e[10] !== i || e[11] !== g || e[12] !== f || e[13] !== d || e[14] !== E || e[15] !== u || e[16] !== a || e[17] !== c || e[18] !== h || e[19] !== x || e[20] !== o ? (w = {
769
+ loading: u,
733
770
  result: c,
734
771
  error: f,
735
772
  status: o,
@@ -740,34 +777,34 @@ function Ue(r) {
740
777
  run: h,
741
778
  cancel: g,
742
779
  isPending: E
743
- }, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] = l, e[16] = a, e[17] = c, e[18] = h, e[19] = x, e[20] = o, e[21] = w) : w = e[21], w;
780
+ }, e[10] = i, e[11] = g, e[12] = f, e[13] = d, e[14] = E, e[15] = u, e[16] = a, e[17] = c, e[18] = h, e[19] = x, e[20] = o, e[21] = w) : w = e[21], w;
744
781
  }
745
782
  s(Ue, "useDebouncedFetcherQuery");
746
- function P(r) {
783
+ function A(r) {
747
784
  const e = S(23);
748
785
  let t;
749
786
  e[0] !== r ? (t = {
750
- resultExtractor: oe,
787
+ resultExtractor: le,
751
788
  ...r
752
789
  }, e[0] = r, e[1] = t) : t = e[1];
753
- const n = t, u = O(n), {
754
- loading: l,
790
+ const n = t, l = $(n), {
791
+ loading: u,
755
792
  result: c,
756
793
  error: f,
757
794
  status: o,
758
795
  execute: y,
759
796
  reset: a,
760
797
  abort: i
761
- } = B(n);
798
+ } = X(n);
762
799
  let d;
763
- e[2] !== y || e[3] !== u ? (d = /* @__PURE__ */ s((v) => {
800
+ e[2] !== y || e[3] !== l ? (d = /* @__PURE__ */ s((v) => {
764
801
  const w = {
765
- url: u.current.url,
802
+ url: l.current.url,
766
803
  method: "POST",
767
804
  body: v
768
805
  };
769
806
  return y(w);
770
- }, "t1"), e[2] = y, e[3] = u, e[4] = d) : d = e[4];
807
+ }, "t1"), e[2] = y, e[3] = l, e[4] = d) : d = e[4];
771
808
  const m = d;
772
809
  let h;
773
810
  e[5] !== m || e[6] !== n.autoExecute || e[7] !== n.initialQuery || e[8] !== n.query ? (h = {
@@ -779,17 +816,17 @@ function P(r) {
779
816
  const {
780
817
  getQuery: g,
781
818
  setQuery: E
782
- } = j(h);
819
+ } = J(h);
783
820
  let b;
784
821
  e[10] !== m || e[11] !== g ? (b = /* @__PURE__ */ s(async () => {
785
822
  const v = g();
786
- if (z(v))
823
+ if (D(v))
787
824
  return await m(v);
788
825
  }, "t3"), e[10] = m, e[11] = g, e[12] = b) : b = e[12];
789
826
  const x = b;
790
827
  let F;
791
- return e[13] !== i || e[14] !== f || e[15] !== x || e[16] !== g || e[17] !== l || e[18] !== a || e[19] !== c || e[20] !== E || e[21] !== o ? (F = {
792
- loading: l,
828
+ return e[13] !== i || e[14] !== f || e[15] !== x || e[16] !== g || e[17] !== u || e[18] !== a || e[19] !== c || e[20] !== E || e[21] !== o ? (F = {
829
+ loading: u,
793
830
  result: c,
794
831
  error: f,
795
832
  status: o,
@@ -798,15 +835,15 @@ function P(r) {
798
835
  abort: i,
799
836
  getQuery: g,
800
837
  setQuery: E
801
- }, e[13] = i, e[14] = f, e[15] = x, e[16] = g, e[17] = l, e[18] = a, e[19] = c, e[20] = E, e[21] = o, e[22] = F) : F = e[22], F;
838
+ }, e[13] = i, e[14] = f, e[15] = x, e[16] = g, e[17] = u, e[18] = a, e[19] = c, e[20] = E, e[21] = o, e[22] = F) : F = e[22], F;
802
839
  }
803
- s(P, "useFetcherQuery");
804
- function ke(r) {
805
- return P(r);
840
+ s(A, "useFetcherQuery");
841
+ function Ne(r) {
842
+ return A(r);
806
843
  }
807
- s(ke, "useFetcherCountQuery");
844
+ s(Ne, "useFetcherCountQuery");
808
845
  function Ge(r) {
809
- return P(r);
846
+ return A(r);
810
847
  }
811
848
  s(Ge, "useFetcherListQuery");
812
849
  function Ke(r) {
@@ -814,103 +851,104 @@ function Ke(r) {
814
851
  let t;
815
852
  return e[0] !== r ? (t = {
816
853
  ...r,
817
- resultExtractor: le
818
- }, e[0] = r, e[1] = t) : t = e[1], P(t);
854
+ resultExtractor: ie
855
+ }, e[0] = r, e[1] = t) : t = e[1], A(t);
819
856
  }
820
857
  s(Ke, "useFetcherListStreamQuery");
821
- function Ne(r) {
822
- return P(r);
823
- }
824
- s(Ne, "useFetcherPagedQuery");
825
858
  function Ve(r) {
826
- return P(r);
859
+ return A(r);
827
860
  }
828
- s(Ve, "useFetcherSingleQuery");
861
+ s(Ve, "useFetcherPagedQuery");
829
862
  function We(r) {
830
- return p(r);
863
+ return A(r);
831
864
  }
832
- s(We, "useCountQuery");
865
+ s(We, "useFetcherSingleQuery");
833
866
  function je(r) {
834
- return p(r);
867
+ return P(r);
835
868
  }
836
- s(je, "useListQuery");
869
+ s(je, "useCountQuery");
837
870
  function Je(r) {
838
- return p(r);
871
+ return P(r);
839
872
  }
840
- s(Je, "useListStreamQuery");
873
+ s(Je, "useListQuery");
841
874
  function Ye(r) {
842
- return p(r);
875
+ return P(r);
843
876
  }
844
- s(Ye, "usePagedQuery");
877
+ s(Ye, "useListStreamQuery");
845
878
  function Be(r) {
846
- return p(r);
879
+ return P(r);
847
880
  }
848
- s(Be, "useSingleQuery");
881
+ s(Be, "usePagedQuery");
849
882
  function He(r) {
883
+ return P(r);
884
+ }
885
+ s(He, "useSingleQuery");
886
+ function Xe(r) {
850
887
  const e = S(13), {
851
888
  bus: t,
852
889
  handler: n
853
890
  } = r;
854
- let u;
855
- e[0] !== t || e[1] !== n ? (u = /* @__PURE__ */ s(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = u) : u = e[2];
856
- const l = u;
891
+ let l;
892
+ e[0] !== t || e[1] !== n ? (l = /* @__PURE__ */ s(() => t.on(n), "t0"), e[0] = t, e[1] = n, e[2] = l) : l = e[2];
893
+ const u = l;
857
894
  let c;
858
895
  e[3] !== t || e[4] !== n.name ? (c = /* @__PURE__ */ s(() => t.off(n.name), "t1"), e[3] = t, e[4] = n.name, e[5] = c) : c = e[5];
859
896
  const f = c;
860
897
  let o, y;
861
898
  e[6] !== t || e[7] !== n ? (o = /* @__PURE__ */ s(() => (t.on(n) || console.warn(`Failed to subscribe to event bus with handler: ${n.name}`), () => {
862
899
  t.off(n.name);
863
- }), "t2"), y = [t, n], e[6] = t, e[7] = n, e[8] = o, e[9] = y) : (o = e[8], y = e[9]), I(o, y);
900
+ }), "t2"), y = [t, n], e[6] = t, e[7] = n, e[8] = o, e[9] = y) : (o = e[8], y = e[9]), C(o, y);
864
901
  let a;
865
- return e[10] !== l || e[11] !== f ? (a = {
866
- subscribe: l,
902
+ return e[10] !== u || e[11] !== f ? (a = {
903
+ subscribe: u,
867
904
  unsubscribe: f
868
- }, e[10] = l, e[11] = f, e[12] = a) : a = e[12], a;
905
+ }, e[10] = u, e[11] = f, e[12] = a) : a = e[12], a;
869
906
  }
870
- s(He, "useEventSubscription");
907
+ s(Xe, "useEventSubscription");
871
908
  export {
872
- xe as ANONYMOUS_USER,
873
- ie as PromiseStatus,
874
- Me as RouteGuard,
875
- Y as SecurityContext,
876
- De as SecurityProvider,
877
- he as addFullscreenChangeListener,
878
- me as enterFullscreen,
879
- ye as exitFullscreen,
880
- de as getFullscreenElement,
881
- z as isValidateQuery,
882
- ge as removeFullscreenChangeListener,
883
- We as useCountQuery,
884
- D as useDebouncedCallback,
885
- Oe as useDebouncedExecutePromise,
909
+ Fe as ANONYMOUS_USER,
910
+ ae as PromiseStatus,
911
+ ke as RefreshableRouteGuard,
912
+ De as RouteGuard,
913
+ B as SecurityContext,
914
+ ze as SecurityProvider,
915
+ ge as addFullscreenChangeListener,
916
+ ye as enterFullscreen,
917
+ he as exitFullscreen,
918
+ me as getFullscreenElement,
919
+ D as isValidateQuery,
920
+ be as removeFullscreenChangeListener,
921
+ je as useCountQuery,
922
+ k as useDebouncedCallback,
923
+ $e as useDebouncedExecutePromise,
886
924
  Te as useDebouncedFetcher,
887
925
  Ue as useDebouncedFetcherQuery,
888
- $e as useDebouncedQuery,
889
- He as useEventSubscription,
890
- T as useExecutePromise,
891
- B as useFetcher,
892
- ke as useFetcherCountQuery,
926
+ Oe as useDebouncedQuery,
927
+ Xe as useEventSubscription,
928
+ U as useExecutePromise,
929
+ X as useFetcher,
930
+ Ne as useFetcherCountQuery,
893
931
  Ge as useFetcherListQuery,
894
932
  Ke as useFetcherListStreamQuery,
895
- Ne as useFetcherPagedQuery,
896
- P as useFetcherQuery,
897
- Ve as useFetcherSingleQuery,
933
+ Ve as useFetcherPagedQuery,
934
+ A as useFetcherQuery,
935
+ We as useFetcherSingleQuery,
898
936
  Ae as useForceUpdate,
899
937
  pe as useFullscreen,
900
- ze as useImmerKeyStorage,
901
- J as useKeyStorage,
902
- O as useLatest,
903
- je as useListQuery,
904
- Je as useListStreamQuery,
905
- W as useMounted,
906
- Ye as usePagedQuery,
907
- ae as usePromiseState,
908
- p as useQuery,
909
- j as useQueryState,
938
+ Me as useImmerKeyStorage,
939
+ Y as useKeyStorage,
940
+ $ as useLatest,
941
+ Je as useListQuery,
942
+ Ye as useListStreamQuery,
943
+ j as useMounted,
944
+ Be as usePagedQuery,
945
+ fe as usePromiseState,
946
+ P as useQuery,
947
+ J as useQueryState,
910
948
  Pe as useRefs,
911
- fe as useRequestId,
912
- Fe as useSecurity,
913
- ve as useSecurityContext,
914
- Be as useSingleQuery
949
+ de as useRequestId,
950
+ ve as useSecurity,
951
+ H as useSecurityContext,
952
+ He as useSingleQuery
915
953
  };
916
954
  //# sourceMappingURL=index.es.js.map