@gen-epix/ui-client-common 4.0.0 → 4.0.2

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 (243) hide show
  1. package/dist/@types/{ui.d.ts → ui-client-common.d.ts} +1 -1
  2. package/dist/_chunks/ApplicationFooter.js +1 -1
  3. package/dist/_chunks/ApplicationFooter.js.map +1 -1
  4. package/dist/_chunks/Breadcrumbs.js +1 -1
  5. package/dist/_chunks/Breadcrumbs.js.map +1 -1
  6. package/dist/_chunks/CrudPage.js +293 -293
  7. package/dist/_chunks/CrudPage.js.map +1 -1
  8. package/dist/_chunks/GeoFilter.js +1 -1
  9. package/dist/_chunks/GeoFilter.js.map +1 -1
  10. package/dist/_chunks/Notifications.js.map +1 -1
  11. package/dist/_chunks/OutageList.js.map +1 -1
  12. package/dist/_chunks/QueryClientProvider.js +1 -1
  13. package/dist/_chunks/QueryClientProvider.js.map +1 -1
  14. package/dist/_chunks/QueryClientService.js +79 -66
  15. package/dist/_chunks/QueryClientService.js.map +1 -1
  16. package/dist/_chunks/Table.js +953 -945
  17. package/dist/_chunks/Table.js.map +1 -1
  18. package/dist/_chunks/TableUtil.js.map +1 -1
  19. package/dist/_chunks/TextFilter.js +4 -4
  20. package/dist/_chunks/TextFilter.js.map +1 -1
  21. package/dist/_chunks/UserInvitationsAdminPage.js +110 -110
  22. package/dist/_chunks/UserInvitationsAdminPage.js.map +1 -1
  23. package/dist/_chunks/_baseFlatten.js +1 -1
  24. package/dist/_chunks/_baseGet.js +26 -26
  25. package/dist/_chunks/_baseGet.js.map +1 -1
  26. package/dist/_chunks/_baseIteratee.js +25 -26
  27. package/dist/_chunks/_baseIteratee.js.map +1 -1
  28. package/dist/_chunks/_setToString.js.map +1 -1
  29. package/dist/_chunks/{chunk-KS7C4IRE.js → chunk-BV7QT456.js} +1041 -1128
  30. package/dist/_chunks/chunk-BV7QT456.js.map +1 -0
  31. package/dist/_chunks/format.js +199 -198
  32. package/dist/_chunks/format.js.map +1 -1
  33. package/dist/_chunks/index.esm.js +797 -692
  34. package/dist/_chunks/index.esm.js.map +1 -1
  35. package/dist/_chunks/isArrayLike.js +1 -2
  36. package/dist/_chunks/isArrayLike.js.map +1 -1
  37. package/dist/_chunks/isObject.js +38 -2
  38. package/dist/_chunks/isObject.js.map +1 -1
  39. package/dist/_chunks/isSymbol.js +2 -2
  40. package/dist/_chunks/middleware.js +11 -9
  41. package/dist/_chunks/middleware.js.map +1 -1
  42. package/dist/_chunks/oidc-client-ts.js +12 -9
  43. package/dist/_chunks/oidc-client-ts.js.map +1 -1
  44. package/dist/_chunks/omit.js +38 -39
  45. package/dist/_chunks/omit.js.map +1 -1
  46. package/dist/_chunks/query.js +210 -228
  47. package/dist/_chunks/query.js.map +1 -1
  48. package/dist/_chunks/react-oidc-context.js +1 -1
  49. package/dist/_chunks/react-oidc-context.js.map +1 -1
  50. package/dist/_chunks/react.js +1 -1
  51. package/dist/_chunks/react.js.map +1 -1
  52. package/dist/_chunks/rolldown-runtime.js +2 -2
  53. package/dist/_chunks/tableStore.js +79 -78
  54. package/dist/_chunks/tableStore.js.map +1 -1
  55. package/dist/_chunks/toDate.js +1 -1
  56. package/dist/_chunks/toDate.js.map +1 -1
  57. package/dist/_chunks/uniq.js +1 -1
  58. package/dist/_chunks/uniq.js.map +1 -1
  59. package/dist/_chunks/useColumnsMenu.js +7 -6
  60. package/dist/_chunks/useColumnsMenu.js.map +1 -1
  61. package/dist/_chunks/useMutation.js +19 -16
  62. package/dist/_chunks/useMutation.js.map +1 -1
  63. package/dist/_chunks/useQueryMemo.js +156 -169
  64. package/dist/_chunks/useQueryMemo.js.map +1 -1
  65. package/dist/_chunks/vanilla.js +1 -1
  66. package/dist/_chunks/vanilla.js.map +1 -1
  67. package/dist/_chunks/yup.js +5 -5
  68. package/dist/_chunks/yup.js.map +1 -1
  69. package/dist/classes/filters/GeoFilter.d.ts +1 -1
  70. package/dist/classes/filters/MultiSelectFilter.d.ts +1 -1
  71. package/dist/classes/services/AuthenticationService/index.js +41 -44
  72. package/dist/classes/services/AuthenticationService/index.js.map +1 -1
  73. package/dist/classes/services/BreadcrumbService/index.js.map +1 -1
  74. package/dist/classes/services/InactivityService/index.js +10 -11
  75. package/dist/classes/services/InactivityService/index.js.map +1 -1
  76. package/dist/classes/services/RouterService/index.js +1 -1
  77. package/dist/components/app/App/index.js +48 -38
  78. package/dist/components/app/App/index.js.map +1 -1
  79. package/dist/components/app/ApplicationBootstrap/index.js +54 -54
  80. package/dist/components/app/ApplicationBootstrap/index.js.map +1 -1
  81. package/dist/components/app/AuthenticationWrapper/index.js +45 -45
  82. package/dist/components/app/AuthenticationWrapper/index.js.map +1 -1
  83. package/dist/components/app/AuthorizationWrapper/index.js +7 -7
  84. package/dist/components/app/AuthorizationWrapper/index.js.map +1 -1
  85. package/dist/components/app/RouterRoot/index.js +53 -53
  86. package/dist/components/app/RouterRoot/index.js.map +1 -1
  87. package/dist/components/epi/EpiContactDetailsDialog/EpiContactDetailsDialog.d.ts +2 -2
  88. package/dist/components/epi/EpiContactDetailsDialog/index.js +28 -26
  89. package/dist/components/epi/EpiContactDetailsDialog/index.js.map +1 -1
  90. package/dist/components/filters/BooleanFilterField/index.js +1 -1
  91. package/dist/components/filters/BooleanFilterField/index.js.map +1 -1
  92. package/dist/components/filters/DateFilterField/index.js +1 -1
  93. package/dist/components/filters/DateFilterField/index.js.map +1 -1
  94. package/dist/components/filters/GeoFilterField/index.js +2 -2
  95. package/dist/components/filters/GeoFilterField/index.js.map +1 -1
  96. package/dist/components/filters/MultiSelectFilterField/index.js +2 -2
  97. package/dist/components/filters/MultiSelectFilterField/index.js.map +1 -1
  98. package/dist/components/filters/NumberRangeFilterField/index.js +1 -1
  99. package/dist/components/filters/NumberRangeFilterField/index.js.map +1 -1
  100. package/dist/components/filters/TextFilterField/index.js +1 -1
  101. package/dist/components/filters/TextFilterField/index.js.map +1 -1
  102. package/dist/components/ui/ApplicationBar/index.js +132 -132
  103. package/dist/components/ui/ApplicationBar/index.js.map +1 -1
  104. package/dist/components/ui/ConsentDialog/ConsentDialog.d.ts +2 -2
  105. package/dist/components/ui/ConsentDialog/index.js +11 -11
  106. package/dist/components/ui/ConsentDialog/index.js.map +1 -1
  107. package/dist/components/ui/GenericErrorMessage/index.js +1 -1
  108. package/dist/components/ui/GenericErrorMessage/index.js.map +1 -1
  109. package/dist/components/ui/LicensesDialog/LicensesDialog.d.ts +2 -2
  110. package/dist/components/ui/LicensesDialog/index.js +40 -40
  111. package/dist/components/ui/LicensesDialog/index.js.map +1 -1
  112. package/dist/components/ui/MyPermissionsDialog/MyPermissionsDialog.d.ts +2 -2
  113. package/dist/components/ui/MyPermissionsDialog/index.js +21 -21
  114. package/dist/components/ui/MyPermissionsDialog/index.js.map +1 -1
  115. package/dist/components/ui/NavLink/index.js +1 -1
  116. package/dist/components/ui/NavLink/index.js.map +1 -1
  117. package/dist/components/ui/OrganizationSwitcherDialog/OrganizationSwitcherDialog.d.ts +2 -2
  118. package/dist/components/ui/OrganizationSwitcherDialog/index.js +43 -43
  119. package/dist/components/ui/OrganizationSwitcherDialog/index.js.map +1 -1
  120. package/dist/components/ui/OutagesDialog/OutagesDialog.d.ts +2 -2
  121. package/dist/components/ui/OutagesDialog/index.js +14 -14
  122. package/dist/components/ui/OutagesDialog/index.js.map +1 -1
  123. package/dist/components/ui/PageContainer/index.js +2 -2
  124. package/dist/components/ui/PageContainer/index.js.map +1 -1
  125. package/dist/components/ui/ResponseHandler/index.js +8 -8
  126. package/dist/components/ui/ResponseHandler/index.js.map +1 -1
  127. package/dist/components/ui/Sidebar/index.js.map +1 -1
  128. package/dist/components/ui/Table/TableColumnsEditorDialog.d.ts +2 -2
  129. package/dist/components/ui/UserFeedbackDialog/UserFeedbackDialog.d.ts +2 -2
  130. package/dist/components/ui/UserFeedbackDialog/index.js +38 -38
  131. package/dist/components/ui/UserFeedbackDialog/index.js.map +1 -1
  132. package/dist/components/ui/UserInactivityConfirmation/index.js +14 -14
  133. package/dist/components/ui/UserInactivityConfirmation/index.js.map +1 -1
  134. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContext.d.ts +5 -0
  135. package/dist/context/uiClientCommonConfigContext/UiClientCommonConfigContextProvider.d.ts +6 -0
  136. package/dist/context/uiClientCommonConfigContext/index.d.ts +3 -0
  137. package/dist/context/uiClientCommonConfigContext/index.js +18 -0
  138. package/dist/context/uiClientCommonConfigContext/index.js.map +1 -0
  139. package/dist/context/uiClientCommonConfigContext/useUiClientCommonConfigContext.d.ts +2 -0
  140. package/dist/dataHooks/useIdentifierIssuerOwnOrganizationQuery/index.js +4 -4
  141. package/dist/dataHooks/useIdentifierIssuerQuery/index.js +4 -4
  142. package/dist/dataHooks/useInviteUserConstraintsQuery/index.js +4 -4
  143. package/dist/dataHooks/useOrganizationAdminPoliciesQuery/index.js +4 -4
  144. package/dist/dataHooks/useOrganizationIdentifierIssuerLinksQuery/index.js +4 -4
  145. package/dist/dataHooks/useOrganizationsQuery/index.js +4 -4
  146. package/dist/dataHooks/useUsersQuery/index.js +4 -4
  147. package/dist/hooks/useColumnsMenu/useColumnsMenu.d.ts +1 -1
  148. package/dist/hooks/useEditMutation/index.js +6 -6
  149. package/dist/hooks/useEditMutation/index.js.map +1 -1
  150. package/dist/hooks/useItemQuery/index.js +8 -8
  151. package/dist/hooks/useItemQuery/index.js.map +1 -1
  152. package/dist/locale/en.json +0 -10
  153. package/dist/locale/nl.json +0 -10
  154. package/dist/models/dataHooks.d.ts +1 -1
  155. package/dist/models/table.d.ts +1 -1
  156. package/dist/models/table.js.map +1 -1
  157. package/dist/pages/AcceptInvitationPage/index.js +5 -5
  158. package/dist/pages/AcceptInvitationPage/index.js.map +1 -1
  159. package/dist/pages/AdminPage/index.js +1 -1
  160. package/dist/pages/AdminPage/index.js.map +1 -1
  161. package/dist/pages/ChooseIdentityProviderPage/index.js.map +1 -1
  162. package/dist/pages/CrudPage/CrudPage.d.ts +2 -2
  163. package/dist/pages/CrudPage/CrudPageDeleteDialog.d.ts +2 -2
  164. package/dist/pages/CrudPage/CrudPageEditDialog.d.ts +4 -4
  165. package/dist/pages/ErrorPage/index.js.map +1 -1
  166. package/dist/pages/IdentifierIssuersAdminPage/index.js +2 -2
  167. package/dist/pages/IdentifierIssuersAdminPage/index.js.map +1 -1
  168. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js +1 -1
  169. package/dist/pages/OrganizationAdminPoliciesAdminPage/index.js.map +1 -1
  170. package/dist/pages/OrganizationContactsAdminPage/index.js +3 -3
  171. package/dist/pages/OrganizationContactsAdminPage/index.js.map +1 -1
  172. package/dist/pages/OrganizationSitesAdminPage/index.js +3 -3
  173. package/dist/pages/OrganizationSitesAdminPage/index.js.map +1 -1
  174. package/dist/pages/OrganizationsAdminPage/index.js +2 -2
  175. package/dist/pages/OrganizationsAdminPage/index.js.map +1 -1
  176. package/dist/pages/OutagesAdminPage/index.js +2 -2
  177. package/dist/pages/OutagesAdminPage/index.js.map +1 -1
  178. package/dist/pages/PostLoginPage/index.js.map +1 -1
  179. package/dist/pages/PostLogoutPage/index.js.map +1 -1
  180. package/dist/pages/RouterErrorPage/index.js +1 -1
  181. package/dist/pages/RouterErrorPage/index.js.map +1 -1
  182. package/dist/pages/UserInvitationsAdminPage/UserInvitationConsumeDialog.d.ts +2 -2
  183. package/dist/pages/UserInvitationsAdminPage/UserInvitationShareDialog.d.ts +2 -2
  184. package/dist/pages/UsersAdminPage/index.js +47 -47
  185. package/dist/pages/UsersAdminPage/index.js.map +1 -1
  186. package/dist/setup/setup.js +1 -1
  187. package/dist/setup/setup.js.map +1 -1
  188. package/dist/utils/MenuDataUtil/MenuDataUtil.d.ts +1 -1
  189. package/dist/utils/MenuDataUtil/index.js.map +1 -1
  190. package/dist/utils/StandardConfigUtil/index.js +4 -4
  191. package/dist/utils/StandardConfigUtil/index.js.map +1 -1
  192. package/dist/utils/TableUtil/TableUtil.d.ts +1 -1
  193. package/package.json +7 -7
  194. package/dist/_chunks/chunk-KS7C4IRE.js.map +0 -1
  195. package/dist/_chunks/isObjectLike.js +0 -43
  196. package/dist/_chunks/isObjectLike.js.map +0 -1
  197. package/dist/components/ui/BackdropSpinner/BackdropSpinner.d.ts +0 -5
  198. package/dist/components/ui/BackdropSpinner/index.d.ts +0 -1
  199. package/dist/components/ui/BackdropSpinner/index.js +0 -19
  200. package/dist/components/ui/BackdropSpinner/index.js.map +0 -1
  201. package/dist/components/ui/Confirmation/Confirmation.d.ts +0 -2
  202. package/dist/components/ui/Confirmation/ConfirmationRender.d.ts +0 -11
  203. package/dist/components/ui/Confirmation/index.d.ts +0 -2
  204. package/dist/components/ui/Confirmation/index.js +0 -58
  205. package/dist/components/ui/Confirmation/index.js.map +0 -1
  206. package/dist/components/ui/CopyToClipboardButton/CopyToClipboardButton.d.ts +0 -13
  207. package/dist/components/ui/CopyToClipboardButton/index.d.ts +0 -1
  208. package/dist/components/ui/CopyToClipboardButton/index.js +0 -101
  209. package/dist/components/ui/CopyToClipboardButton/index.js.map +0 -1
  210. package/dist/components/ui/Dialog/Dialog.d.ts +0 -27
  211. package/dist/components/ui/Dialog/index.d.ts +0 -1
  212. package/dist/components/ui/Dialog/index.js +0 -83
  213. package/dist/components/ui/Dialog/index.js.map +0 -1
  214. package/dist/components/ui/LinearProgressWithLabel/LinearProgressWithLabel.d.ts +0 -5
  215. package/dist/components/ui/LinearProgressWithLabel/index.d.ts +0 -1
  216. package/dist/components/ui/LinearProgressWithLabel/index.js +0 -31
  217. package/dist/components/ui/LinearProgressWithLabel/index.js.map +0 -1
  218. package/dist/components/ui/LoadingIndicator/LoadingIndicator.d.ts +0 -2
  219. package/dist/components/ui/LoadingIndicator/index.d.ts +0 -1
  220. package/dist/components/ui/LoadingIndicator/index.js +0 -12
  221. package/dist/components/ui/LoadingIndicator/index.js.map +0 -1
  222. package/dist/components/ui/NestedMenu/IconMenuItem.d.ts +0 -18
  223. package/dist/components/ui/NestedMenu/NestedDropdown.d.ts +0 -17
  224. package/dist/components/ui/NestedMenu/NestedMenuItem.d.ts +0 -22
  225. package/dist/components/ui/NestedMenu/index.d.ts +0 -4
  226. package/dist/components/ui/NestedMenu/index.js +0 -240
  227. package/dist/components/ui/NestedMenu/index.js.map +0 -1
  228. package/dist/components/ui/NestedMenu/nestedMenuItemsFromObject.d.ts +0 -11
  229. package/dist/components/ui/Spinner/Spinner.d.ts +0 -11
  230. package/dist/components/ui/Spinner/index.d.ts +0 -1
  231. package/dist/components/ui/Spinner/index.js +0 -63
  232. package/dist/components/ui/Spinner/index.js.map +0 -1
  233. package/dist/components/ui/Stepper/Stepper.d.ts +0 -17
  234. package/dist/components/ui/Stepper/index.d.ts +0 -2
  235. package/dist/components/ui/Stepper/index.js +0 -126
  236. package/dist/components/ui/Stepper/index.js.map +0 -1
  237. package/dist/components/ui/Stepper/stepperModel.d.ts +0 -4
  238. package/dist/hoc/withDialog/index.d.ts +0 -1
  239. package/dist/hoc/withDialog/index.js +0 -69
  240. package/dist/hoc/withDialog/index.js.map +0 -1
  241. package/dist/hoc/withDialog/withDialog.d.ts +0 -33
  242. package/dist/models/nestedMenu.d.ts +0 -17
  243. package/dist/models/nestedMenu.js +0 -0
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
1
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
2
2
  var e = {
3
3
  setTimeout: (e, t) => setTimeout(e, t),
4
4
  clearTimeout: (e) => clearTimeout(e),
@@ -30,7 +30,7 @@ function n(e) {
30
30
  setTimeout(e, 0);
31
31
  }
32
32
  //#endregion
33
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/utils.js
33
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/utils.js
34
34
  var r = typeof window > "u" || "Deno" in globalThis;
35
35
  function i() {}
36
36
  function a(e, t) {
@@ -46,14 +46,11 @@ function c(e, t) {
46
46
  return typeof e == "function" ? e(t) : e;
47
47
  }
48
48
  function l(e, t) {
49
- return typeof e == "function" ? e(t) : e;
50
- }
51
- function u(e, t) {
52
49
  let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
53
50
  if (o) {
54
51
  if (r) {
55
- if (t.queryHash !== f(o, t.options)) return !1;
56
- } else if (!m(t.queryKey, o)) return !1;
52
+ if (t.queryHash !== d(o, t.options)) return !1;
53
+ } else if (!p(t.queryKey, o)) return !1;
57
54
  }
58
55
  if (n !== "all") {
59
56
  let e = t.isActive();
@@ -61,98 +58,109 @@ function u(e, t) {
61
58
  }
62
59
  return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
63
60
  }
64
- function d(e, t) {
61
+ function u(e, t) {
65
62
  let { exact: n, status: r, predicate: i, mutationKey: a } = e;
66
63
  if (a) {
67
64
  if (!t.options.mutationKey) return !1;
68
65
  if (n) {
69
- if (p(t.options.mutationKey) !== p(a)) return !1;
70
- } else if (!m(t.options.mutationKey, a)) return !1;
66
+ if (f(t.options.mutationKey) !== f(a)) return !1;
67
+ } else if (!p(t.options.mutationKey, a)) return !1;
71
68
  }
72
69
  return !(r && t.state.status !== r || i && !i(t));
73
70
  }
74
- function f(e, t) {
75
- return (t?.queryKeyHashFn || p)(e);
76
- }
77
- function p(e) {
78
- return JSON.stringify(e, (e, t) => y(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
79
- }
80
- function m(e, t) {
81
- return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => m(e[n], t[n])) : !1;
71
+ function d(e, t) {
72
+ return (t?.queryKeyHashFn || f)(e);
73
+ }
74
+ function f(e) {
75
+ return JSON.stringify(e, (e, t) => v(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
76
+ }
77
+ function p(e, t) {
78
+ if (e === t) return !0;
79
+ if (typeof e != typeof t) return !1;
80
+ if (e && t && typeof e == "object" && typeof t == "object") {
81
+ if (Array.isArray(e) && Array.isArray(t)) {
82
+ for (let n = 0; n < t.length; n++) if (!p(e[n], t[n])) return !1;
83
+ return !0;
84
+ }
85
+ let n = Object.keys(t);
86
+ for (let r of n) if (!p(e[r], t[r])) return !1;
87
+ return !0;
88
+ }
89
+ return !1;
82
90
  }
83
- var h = Object.prototype.hasOwnProperty;
84
- function g(e, t, n = 0) {
91
+ var m = Object.prototype.hasOwnProperty;
92
+ function h(e, t, n = 0) {
85
93
  if (e === t) return e;
86
94
  if (n > 500) return t;
87
- let r = v(e) && v(t);
88
- if (!r && !(y(e) && y(t))) return t;
95
+ let r = _(e) && _(t);
96
+ if (!r && !(v(e) && v(t))) return t;
89
97
  let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
90
98
  for (let l = 0; l < o; l++) {
91
99
  let o = r ? l : a[l], u = e[o], d = t[o];
92
100
  if (u === d) {
93
- s[o] = u, (r ? l < i : h.call(e, o)) && c++;
101
+ s[o] = u, (r ? l < i : m.call(e, o)) && c++;
94
102
  continue;
95
103
  }
96
104
  if (u === null || d === null || typeof u != "object" || typeof d != "object") {
97
105
  s[o] = d;
98
106
  continue;
99
107
  }
100
- let f = g(u, d, n + 1);
108
+ let f = h(u, d, n + 1);
101
109
  s[o] = f, f === u && c++;
102
110
  }
103
111
  return i === o && c === i ? e : s;
104
112
  }
105
- function _(e, t) {
113
+ function g(e, t) {
106
114
  if (!t || Object.keys(e).length !== Object.keys(t).length) return !1;
107
115
  for (let n in e) if (e[n] !== t[n]) return !1;
108
116
  return !0;
109
117
  }
110
- function v(e) {
118
+ function _(e) {
111
119
  return Array.isArray(e) && e.length === Object.keys(e).length;
112
120
  }
113
- function y(e) {
114
- if (!b(e)) return !1;
121
+ function v(e) {
122
+ if (!y(e)) return !1;
115
123
  let t = e.constructor;
116
124
  if (t === void 0) return !0;
117
125
  let n = t.prototype;
118
- return !(!b(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
126
+ return !(!y(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
119
127
  }
120
- function b(e) {
128
+ function y(e) {
121
129
  return Object.prototype.toString.call(e) === "[object Object]";
122
130
  }
123
- function x(e) {
131
+ function b(e) {
124
132
  return new Promise((n) => {
125
133
  t.setTimeout(n, e);
126
134
  });
127
135
  }
128
- function S(e, t, n) {
136
+ function x(e, t, n) {
129
137
  if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
130
138
  if (n.structuralSharing !== !1) {
131
139
  if (process.env.NODE_ENV !== "production") try {
132
- return g(e, t);
140
+ return h(e, t);
133
141
  } catch (e) {
134
142
  throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
135
143
  }
136
- return g(e, t);
144
+ return h(e, t);
137
145
  }
138
146
  return t;
139
147
  }
140
- function C(e, t, n = 0) {
148
+ function S(e, t, n = 0) {
141
149
  let r = [...e, t];
142
150
  return n && r.length > n ? r.slice(1) : r;
143
151
  }
144
- function w(e, t, n = 0) {
152
+ function C(e, t, n = 0) {
145
153
  let r = [t, ...e];
146
154
  return n && r.length > n ? r.slice(0, -1) : r;
147
155
  }
148
- var T = /* @__PURE__ */ Symbol();
149
- function E(e, t) {
150
- return process.env.NODE_ENV !== "production" && e.queryFn === T && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === T ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
156
+ var w = Symbol();
157
+ function T(e, t) {
158
+ return process.env.NODE_ENV !== "production" && e.queryFn === w && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === w ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
151
159
  }
152
- function D(e, t) {
160
+ function E(e, t) {
153
161
  return typeof e == "function" ? e(...t) : !!e;
154
162
  }
155
- function O(e, t, n) {
163
+ function D(e, t, n) {
156
164
  let r = !1, i;
157
165
  return Object.defineProperty(e, "signal", {
158
166
  enumerable: !0,
@@ -160,82 +168,8 @@ function O(e, t, n) {
160
168
  }), e;
161
169
  }
162
170
  //#endregion
163
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/environmentManager.js
164
- var k = /* @__PURE__ */ (() => {
165
- let e = () => r;
166
- return {
167
- isServer() {
168
- return e();
169
- },
170
- setIsServer(t) {
171
- e = t;
172
- }
173
- };
174
- })(), A = n;
175
- function j() {
176
- let e = [], t = 0, n = (e) => {
177
- e();
178
- }, r = (e) => {
179
- e();
180
- }, i = A, a = (r) => {
181
- t ? e.push(r) : i(() => {
182
- n(r);
183
- });
184
- }, o = () => {
185
- let t = e;
186
- e = [], t.length && i(() => {
187
- r(() => {
188
- t.forEach((e) => {
189
- n(e);
190
- });
191
- });
192
- });
193
- };
194
- return {
195
- batch: (e) => {
196
- let n;
197
- t++;
198
- try {
199
- n = e();
200
- } finally {
201
- t--, t || o();
202
- }
203
- return n;
204
- },
205
- batchCalls: (e) => (...t) => {
206
- a(() => {
207
- e(...t);
208
- });
209
- },
210
- schedule: a,
211
- setNotifyFunction: (e) => {
212
- n = e;
213
- },
214
- setBatchNotifyFunction: (e) => {
215
- r = e;
216
- },
217
- setScheduler: (e) => {
218
- i = e;
219
- }
220
- };
221
- }
222
- var M = j(), N = class {
223
- #e;
224
- destroy() {
225
- this.clearGcTimeout();
226
- }
227
- scheduleGc() {
228
- this.clearGcTimeout(), o(this.gcTime) && (this.#e = t.setTimeout(() => {
229
- this.optionalRemove();
230
- }, this.gcTime));
231
- }
232
- updateGcTime(e) {
233
- this.gcTime = Math.max(this.gcTime || 0, e ?? (k.isServer() ? Infinity : 300 * 1e3));
234
- }
235
- clearGcTimeout() {
236
- this.#e !== void 0 && (t.clearTimeout(this.#e), this.#e = void 0);
237
- }
238
- }, P = class {
171
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/environmentManager.js
172
+ var O = () => r, k = () => O(), A = class {
239
173
  constructor() {
240
174
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
241
175
  }
@@ -249,7 +183,7 @@ var M = j(), N = class {
249
183
  }
250
184
  onSubscribe() {}
251
185
  onUnsubscribe() {}
252
- }, F = new class extends P {
186
+ }, j = new class extends A {
253
187
  #e;
254
188
  #t;
255
189
  #n;
@@ -286,7 +220,55 @@ var M = j(), N = class {
286
220
  isFocused() {
287
221
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
288
222
  }
289
- }(), I = new class extends P {
223
+ }(), M = n;
224
+ function N() {
225
+ let e = [], t = 0, n = (e) => {
226
+ e();
227
+ }, r = (e) => {
228
+ e();
229
+ }, i = M, a = (r) => {
230
+ t ? e.push(r) : i(() => {
231
+ n(r);
232
+ });
233
+ }, o = () => {
234
+ let t = e;
235
+ e = [], t.length && i(() => {
236
+ r(() => {
237
+ t.forEach((e) => {
238
+ n(e);
239
+ });
240
+ });
241
+ });
242
+ };
243
+ return {
244
+ batch: (e) => {
245
+ let n;
246
+ t++;
247
+ try {
248
+ n = e();
249
+ } finally {
250
+ t--, t || o();
251
+ }
252
+ return n;
253
+ },
254
+ batchCalls: (e) => (...t) => {
255
+ a(() => {
256
+ e(...t);
257
+ });
258
+ },
259
+ schedule: a,
260
+ setNotifyFunction: (e) => {
261
+ n = e;
262
+ },
263
+ setBatchNotifyFunction: (e) => {
264
+ r = e;
265
+ },
266
+ setScheduler: (e) => {
267
+ i = e;
268
+ }
269
+ };
270
+ }
271
+ var P = N(), F = new class extends A {
290
272
  #e = !0;
291
273
  #t;
292
274
  #n;
@@ -319,105 +301,106 @@ var M = j(), N = class {
319
301
  }
320
302
  }();
321
303
  //#endregion
322
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/thenable.js
323
- function L() {
324
- let e, t, n = new Promise((n, r) => {
325
- e = n, t = r;
326
- });
327
- n.status = "pending", n.catch(() => {});
328
- function r(e) {
329
- Object.assign(n, e), delete n.resolve, delete n.reject;
330
- }
331
- return n.resolve = (t) => {
332
- r({
333
- status: "fulfilled",
334
- value: t
335
- }), e(t);
336
- }, n.reject = (e) => {
337
- r({
338
- status: "rejected",
339
- reason: e
340
- }), t(e);
341
- }, n;
342
- }
343
- //#endregion
344
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/retryer.js
345
- function R(e) {
304
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/retryer.js
305
+ function I(e) {
346
306
  return Math.min(1e3 * 2 ** e, 3e4);
347
307
  }
348
- function z(e) {
349
- return (e ?? "online") === "online" ? I.isOnline() : !0;
308
+ function L(e) {
309
+ return (e ?? "online") !== "online" || F.isOnline();
350
310
  }
351
- var B = class extends Error {
311
+ var R = class extends Error {
352
312
  constructor(e) {
353
313
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
354
314
  }
355
315
  };
356
- function V(e) {
357
- let t = !1, n = 0, r, i = L(), a = () => i.status !== "pending", o = (t) => {
358
- if (!a()) {
359
- let n = new B(t);
360
- f(n), e.onCancel?.(n);
316
+ function z(e) {
317
+ let t = !1, n = 0, r, a = "pending", o, s, c = new Promise((e, t) => {
318
+ o = e, s = t;
319
+ });
320
+ c.catch(i);
321
+ let l = () => a !== "pending", u = (t) => {
322
+ if (!l()) {
323
+ let n = new R(t);
324
+ g(n), e.onCancel?.(n);
361
325
  }
362
- }, s = () => {
326
+ }, d = () => {
363
327
  t = !0;
364
- }, c = () => {
328
+ }, f = () => {
365
329
  t = !1;
366
- }, l = () => F.isFocused() && (e.networkMode === "always" || I.isOnline()) && e.canRun(), u = () => z(e.networkMode) && e.canRun(), d = (e) => {
367
- a() || (r?.(), i.resolve(e));
368
- }, f = (e) => {
369
- a() || (r?.(), i.reject(e));
370
- }, p = () => new Promise((t) => {
330
+ }, p = () => j.isFocused() && (e.networkMode === "always" || F.isOnline()) && e.canRun(), m = () => L(e.networkMode) && e.canRun(), h = (e) => {
331
+ l() || (r?.(), a = "resolved", o(e));
332
+ }, g = (e) => {
333
+ l() || (r?.(), a = "rejected", s(e));
334
+ }, _ = () => new Promise((t) => {
371
335
  r = (e) => {
372
- (a() || l()) && t(e);
336
+ (l() || p()) && t(e);
373
337
  }, e.onPause?.();
374
338
  }).then(() => {
375
- r = void 0, a() || e.onContinue?.();
376
- }), m = () => {
377
- if (a()) return;
339
+ r = void 0, l() || e.onContinue?.();
340
+ }), v = () => {
341
+ if (l()) return;
378
342
  let r, i = n === 0 ? e.initialPromise : void 0;
379
343
  try {
380
344
  r = i ?? e.fn();
381
345
  } catch (e) {
382
346
  r = Promise.reject(e);
383
347
  }
384
- Promise.resolve(r).then(d).catch((r) => {
385
- if (a()) return;
386
- let i = e.retry ?? (k.isServer() ? 0 : 3), o = e.retryDelay ?? R, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
387
- if (t || !c) {
388
- f(r);
348
+ Promise.resolve(r).then(h).catch((r) => {
349
+ if (l()) return;
350
+ let i = e.retry ?? (k() ? 0 : 3), a = e.retryDelay ?? I, o = typeof a == "function" ? a(n, r) : a, s = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
351
+ if (t || !s) {
352
+ g(r);
389
353
  return;
390
354
  }
391
- n++, e.onFail?.(n, r), x(s).then(() => l() ? void 0 : p()).then(() => {
392
- t ? f(r) : m();
355
+ n++, e.onFail?.(n, r), b(o).then(() => p() ? void 0 : _()).then(() => {
356
+ t ? g(r) : v();
393
357
  });
394
358
  });
395
359
  };
396
360
  return {
397
- promise: i,
398
- status: () => i.status,
399
- cancel: o,
400
- continue: () => (r?.(), i),
401
- cancelRetry: s,
402
- continueRetry: c,
403
- canStart: u,
404
- start: () => (u() ? m() : p().then(m), i)
361
+ promise: c,
362
+ status: () => a,
363
+ cancel: u,
364
+ continue: () => (r?.(), c),
365
+ cancelRetry: d,
366
+ continueRetry: f,
367
+ canStart: m,
368
+ start: () => (m() ? v() : _().then(v), c)
405
369
  };
406
370
  }
407
371
  //#endregion
408
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
409
- function H(e) {
372
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/removable.js
373
+ var B = class {
374
+ #e;
375
+ destroy() {
376
+ this.clearGcTimeout();
377
+ }
378
+ scheduleGc() {
379
+ this.clearGcTimeout(), o(this.gcTime) && (this.#e = t.setTimeout(() => {
380
+ this.optionalRemove();
381
+ }, this.gcTime));
382
+ }
383
+ updateGcTime(e) {
384
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (k() ? Infinity : 3e5));
385
+ }
386
+ clearGcTimeout() {
387
+ this.#e !== void 0 && (t.clearTimeout(this.#e), this.#e = void 0);
388
+ }
389
+ };
390
+ //#endregion
391
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
392
+ function V(e) {
410
393
  return { onFetch: (t, n) => {
411
394
  let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
412
395
  pages: [],
413
396
  pageParams: []
414
397
  }, c = 0, l = async () => {
415
398
  let n = !1, l = (e) => {
416
- O(e, () => t.signal, () => n = !0);
417
- }, u = E(t.options, t.fetchOptions), d = async (e, r, i) => {
399
+ D(e, () => t.signal, () => n = !0);
400
+ }, u = T(t.options, t.fetchOptions), d = async (e, r, i) => {
418
401
  if (n) return Promise.reject(t.signal.reason);
419
402
  if (r == null && e.pages.length) return Promise.resolve(e);
420
- let a = await u((() => {
403
+ let a = (() => {
421
404
  let e = {
422
405
  client: t.client,
423
406
  queryKey: t.queryKey,
@@ -426,14 +409,14 @@ function H(e) {
426
409
  meta: t.options.meta
427
410
  };
428
411
  return l(e), e;
429
- })()), { maxPages: o } = t.options, s = i ? w : C;
412
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? C : S;
430
413
  return {
431
- pages: s(e.pages, a, o),
432
- pageParams: s(e.pageParams, r, o)
414
+ pages: c(e.pages, o, s),
415
+ pageParams: c(e.pageParams, r, s)
433
416
  };
434
417
  };
435
418
  if (i && a.length) {
436
- let e = i === "backward", t = e ? W : U, n = {
419
+ let e = i === "backward", t = e ? U : H, n = {
437
420
  pages: a,
438
421
  pageParams: o
439
422
  };
@@ -441,31 +424,31 @@ function H(e) {
441
424
  } else {
442
425
  let t = e ?? a.length;
443
426
  do {
444
- let e = c === 0 ? o[0] ?? r.initialPageParam : U(r, s);
427
+ let e = c === 0 ? o[0] ?? r.initialPageParam : H(r, s);
445
428
  if (c > 0 && e == null) break;
446
429
  s = await d(s, e), c++;
447
430
  } while (c < t);
448
431
  }
449
432
  return s;
450
433
  };
451
- t.options.persister ? t.fetchFn = () => t.options.persister?.(l, {
434
+ t.fetchFn = t.options.persister ? () => t.options.persister?.(l, {
452
435
  client: t.client,
453
436
  queryKey: t.queryKey,
454
437
  meta: t.options.meta,
455
438
  signal: t.signal
456
- }, n) : t.fetchFn = l;
439
+ }, n) : l;
457
440
  } };
458
441
  }
459
- function U(e, { pages: t, pageParams: n }) {
442
+ function H(e, { pages: t, pageParams: n }) {
460
443
  let r = t.length - 1;
461
444
  return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
462
445
  }
463
- function W(e, { pages: t, pageParams: n }) {
446
+ function U(e, { pages: t, pageParams: n }) {
464
447
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
465
448
  }
466
449
  //#endregion
467
- //#region ../../node_modules/.pnpm/@tanstack+query-core@5.101.2/node_modules/@tanstack/query-core/build/modern/query.js
468
- var G = class extends N {
450
+ //#region ../../node_modules/.pnpm/@tanstack+query-core@5.102.8/node_modules/@tanstack/query-core/build/modern/query.js
451
+ var W = class extends B {
469
452
  #e;
470
453
  #t;
471
454
  #n;
@@ -475,7 +458,7 @@ var G = class extends N {
475
458
  #o;
476
459
  #s;
477
460
  constructor(e) {
478
- super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = J(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
461
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = q(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
479
462
  }
480
463
  get meta() {
481
464
  return this.options.meta;
@@ -491,16 +474,16 @@ var G = class extends N {
491
474
  ...this.#o,
492
475
  ...e
493
476
  }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
494
- let e = J(this.options);
495
- e.data !== void 0 && (this.setState(q(e.data, e.dataUpdatedAt)), this.#t = e);
477
+ let e = q(this.options);
478
+ e.data !== void 0 && (this.setState(K(e.data, e.dataUpdatedAt)), this.#t = e);
496
479
  }
497
480
  }
498
481
  optionalRemove() {
499
482
  !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
500
483
  }
501
484
  setData(e, t) {
502
- let n = S(this.state.data, e, this.options);
503
- return this.#l({
485
+ let n = x(this.state.data, e, this.options);
486
+ return this.#c({
504
487
  data: n,
505
488
  type: "success",
506
489
  dataUpdatedAt: t?.updatedAt,
@@ -508,7 +491,7 @@ var G = class extends N {
508
491
  }), n;
509
492
  }
510
493
  setState(e) {
511
- this.#l({
494
+ this.#c({
512
495
  type: "setState",
513
496
  state: e
514
497
  });
@@ -527,16 +510,16 @@ var G = class extends N {
527
510
  this.destroy(), this.setState(this.resetState);
528
511
  }
529
512
  isActive() {
530
- return this.observers.some((e) => l(e.options.enabled, this) !== !1);
513
+ return this.observers.some((e) => c(e.options.enabled, this) !== !1);
531
514
  }
532
515
  isDisabled() {
533
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === T || !this.isFetched();
516
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === w || !this.isFetched();
534
517
  }
535
518
  isFetched() {
536
519
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
537
520
  }
538
521
  isStatic() {
539
- return this.getObserversCount() > 0 ? this.observers.some((e) => c(e.options.staleTime, this) === "static") : !1;
522
+ return this.getObserversCount() > 0 && this.observers.some((e) => c(e.options.staleTime, this) === "static");
540
523
  }
541
524
  isStale() {
542
525
  return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
@@ -558,7 +541,8 @@ var G = class extends N {
558
541
  }));
559
542
  }
560
543
  removeObserver(e) {
561
- this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
544
+ let t = this.observers.indexOf(e);
545
+ t !== -1 && (this.observers.splice(t, 1), this.observers.length || (this.#a && (this.#s || this.state.fetchStatus === "paused" && this.state.status === "pending" ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
562
546
  type: "observerRemoved",
563
547
  query: this,
564
548
  observer: e
@@ -567,11 +551,8 @@ var G = class extends N {
567
551
  getObserversCount() {
568
552
  return this.observers.length;
569
553
  }
570
- #c() {
571
- return this.state.fetchStatus === "paused" && this.state.status === "pending";
572
- }
573
554
  invalidate() {
574
- this.state.isInvalidated || this.#l({ type: "invalidate" });
555
+ this.state.isInvalidated || this.#c({ type: "invalidate" });
575
556
  }
576
557
  async fetch(e, t) {
577
558
  if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
@@ -589,7 +570,7 @@ var G = class extends N {
589
570
  get: () => (this.#s = !0, n.signal)
590
571
  });
591
572
  }, i = () => {
592
- let e = E(this.options, t), n = (() => {
573
+ let e = T(this.options, t), n = (() => {
593
574
  let e = {
594
575
  client: this.#i,
595
576
  queryKey: this.queryKey,
@@ -609,30 +590,31 @@ var G = class extends N {
609
590
  };
610
591
  return r(e), e;
611
592
  })();
612
- (this.#e === "infinite" ? H(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
593
+ (this.#e === "infinite" ? V(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#c({
613
594
  type: "fetch",
614
595
  meta: a.fetchOptions?.meta
615
- }), this.#a = V({
596
+ });
597
+ let o = this.#a = z({
616
598
  initialPromise: t?.initialPromise,
617
599
  fn: a.fetchFn,
618
600
  onCancel: (e) => {
619
- e instanceof B && e.revert && this.setState({
601
+ e instanceof R && e.revert && this.setState({
620
602
  ...this.#n,
621
603
  fetchStatus: "idle"
622
604
  }), n.abort();
623
605
  },
624
606
  onFail: (e, t) => {
625
- this.#l({
607
+ this.#c({
626
608
  type: "failed",
627
609
  failureCount: e,
628
610
  error: t
629
611
  });
630
612
  },
631
613
  onPause: () => {
632
- this.#l({ type: "pause" });
614
+ this.#c({ type: "pause" });
633
615
  },
634
616
  onContinue: () => {
635
- this.#l({ type: "continue" });
617
+ this.#c({ type: "continue" });
636
618
  },
637
619
  retry: a.options.retry,
638
620
  retryDelay: a.options.retryDelay,
@@ -640,26 +622,26 @@ var G = class extends N {
640
622
  canRun: () => !0
641
623
  });
642
624
  try {
643
- let e = await this.#a.start();
625
+ let e = await o.start();
644
626
  if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
645
627
  return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
646
628
  } catch (e) {
647
- if (e instanceof B) {
629
+ if (e instanceof R) {
648
630
  if (e.silent) return this.#a.promise;
649
631
  if (e.revert) {
650
632
  if (this.state.data === void 0) throw e;
651
633
  return this.state.data;
652
634
  }
653
635
  }
654
- throw this.#l({
636
+ throw this.#c({
655
637
  type: "error",
656
638
  error: e
657
639
  }), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
658
640
  } finally {
659
- this.scheduleGc();
641
+ this.#a === o && (this.#a = void 0), this.scheduleGc();
660
642
  }
661
643
  }
662
- #l(e) {
644
+ #c(e) {
663
645
  let t = (t) => {
664
646
  switch (e.type) {
665
647
  case "failed": return {
@@ -677,13 +659,13 @@ var G = class extends N {
677
659
  };
678
660
  case "fetch": return {
679
661
  ...t,
680
- ...K(t.data, this.options),
662
+ ...G(t.data, this.options),
681
663
  fetchMeta: e.meta ?? null
682
664
  };
683
665
  case "success":
684
666
  let n = {
685
667
  ...t,
686
- ...q(e.data, e.dataUpdatedAt),
668
+ ...K(e.data, e.dataUpdatedAt),
687
669
  dataUpdateCount: t.dataUpdateCount + 1,
688
670
  ...!e.manual && {
689
671
  fetchStatus: "idle",
@@ -715,8 +697,8 @@ var G = class extends N {
715
697
  };
716
698
  }
717
699
  };
718
- this.state = t(this.state), M.batch(() => {
719
- this.observers.forEach((e) => {
700
+ this.state = t(this.state), P.batch(() => {
701
+ this.observers.slice().forEach((e) => {
720
702
  e.onQueryUpdate();
721
703
  }), this.#r.notify({
722
704
  query: this,
@@ -726,18 +708,18 @@ var G = class extends N {
726
708
  });
727
709
  }
728
710
  };
729
- function K(e, t) {
711
+ function G(e, t) {
730
712
  return {
731
713
  fetchFailureCount: 0,
732
714
  fetchFailureReason: null,
733
- fetchStatus: z(t.networkMode) ? "fetching" : "paused",
715
+ fetchStatus: L(t.networkMode) ? "fetching" : "paused",
734
716
  ...e === void 0 && {
735
717
  error: null,
736
718
  status: "pending"
737
719
  }
738
720
  };
739
721
  }
740
- function q(e, t) {
722
+ function K(e, t) {
741
723
  return {
742
724
  data: e,
743
725
  dataUpdatedAt: t ?? Date.now(),
@@ -746,7 +728,7 @@ function q(e, t) {
746
728
  status: "success"
747
729
  };
748
730
  }
749
- function J(e) {
731
+ function q(e) {
750
732
  let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
751
733
  return {
752
734
  data: t,
@@ -764,6 +746,6 @@ function J(e) {
764
746
  };
765
747
  }
766
748
  //#endregion
767
- export { D as C, t as E, _ as S, s as T, i as _, I as a, l as b, N as c, a as d, p as f, u as g, d as h, L as i, M as l, o as m, K as n, F as o, f as p, V as r, P as s, G as t, k as u, m as v, T as w, c as x, S as y };
749
+ export { s as C, w as S, p as _, F as a, g as b, A as c, f as d, d as f, i as g, l as h, z as i, k as l, u as m, G as n, P as o, o as p, B as r, j as s, W as t, a as u, x as v, t as w, E as x, c as y };
768
750
 
769
751
  //# sourceMappingURL=query.js.map