drizzle-cube 0.3.25 → 0.3.28

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 (113) hide show
  1. package/README.md +6 -0
  2. package/dist/adapters/express/index.cjs +1 -1
  3. package/dist/adapters/express/index.js +1 -1
  4. package/dist/adapters/fastify/index.cjs +1 -1
  5. package/dist/adapters/fastify/index.js +1 -1
  6. package/dist/adapters/hono/index.cjs +1 -1
  7. package/dist/adapters/hono/index.js +1 -1
  8. package/dist/adapters/{mcp-transport-B4BZSsMC.js → mcp-transport-CXGL1hg7.js} +1655 -1624
  9. package/dist/adapters/{mcp-transport-C8pLznZG.cjs → mcp-transport-ConlvewL.cjs} +73 -73
  10. package/dist/adapters/nextjs/index.cjs +1 -1
  11. package/dist/adapters/nextjs/index.js +1 -1
  12. package/dist/adapters/utils.cjs +1 -1
  13. package/dist/adapters/utils.js +5 -5
  14. package/dist/client/charts.js +12 -12
  15. package/dist/client/chunks/{DashboardEditModal-CVMSvpJ-.js → DashboardEditModal-t5XeTZom.js} +45 -45
  16. package/dist/client/chunks/DashboardEditModal-t5XeTZom.js.map +1 -0
  17. package/dist/client/chunks/{RetentionCombinedChart-BVKWmxc-.js → RetentionCombinedChart-SsBGHJWi.js} +9 -9
  18. package/dist/client/chunks/RetentionCombinedChart-SsBGHJWi.js.map +1 -0
  19. package/dist/client/chunks/{RetentionHeatmap-BiqfhGYk.js → RetentionHeatmap-BHYU8MXY.js} +8 -8
  20. package/dist/client/chunks/RetentionHeatmap-BHYU8MXY.js.map +1 -0
  21. package/dist/client/chunks/{analysis-builder-CuTR61Ct.js → analysis-builder-CKVYG9jJ.js} +67 -67
  22. package/dist/client/chunks/analysis-builder-CKVYG9jJ.js.map +1 -0
  23. package/dist/client/chunks/{analysis-builder-shared-D7iqklYk.js → analysis-builder-shared-CF8Vx1oD.js} +8 -8
  24. package/dist/client/chunks/analysis-builder-shared-CF8Vx1oD.js.map +1 -0
  25. package/dist/client/chunks/{chart-activity-grid-BcMRkaq4.js → chart-activity-grid-Bpu_-8uT.js} +5 -5
  26. package/dist/client/chunks/{chart-activity-grid-BcMRkaq4.js.map → chart-activity-grid-Bpu_-8uT.js.map} +1 -1
  27. package/dist/client/chunks/{chart-area-KlBSb_ur.js → chart-area-DcvLkvGb.js} +8 -8
  28. package/dist/client/chunks/chart-area-DcvLkvGb.js.map +1 -0
  29. package/dist/client/chunks/{chart-bar-D1i2jmIg.js → chart-bar-CNfm5iMY.js} +7 -7
  30. package/dist/client/chunks/chart-bar-CNfm5iMY.js.map +1 -0
  31. package/dist/client/chunks/{chart-bubble-BFjnOwNZ.js → chart-bubble-KA-RYWR8.js} +4 -4
  32. package/dist/client/chunks/{chart-bubble-BFjnOwNZ.js.map → chart-bubble-KA-RYWR8.js.map} +1 -1
  33. package/dist/client/chunks/{chart-data-table-CYMMAHau.js → chart-data-table-Cq14arji.js} +9 -9
  34. package/dist/client/chunks/chart-data-table-Cq14arji.js.map +1 -0
  35. package/dist/client/chunks/{chart-funnel-BH7r4HWZ.js → chart-funnel-DFKWS49U.js} +7 -7
  36. package/dist/client/chunks/chart-funnel-DFKWS49U.js.map +1 -0
  37. package/dist/client/chunks/{chart-heat-map-DyGtODLE.js → chart-heat-map-D2g0dbKz.js} +5 -5
  38. package/dist/client/chunks/chart-heat-map-D2g0dbKz.js.map +1 -0
  39. package/dist/client/chunks/{chart-kpi-delta-Bk396suk.js → chart-kpi-delta-Cc-jiBd0.js} +30 -30
  40. package/dist/client/chunks/chart-kpi-delta-Cc-jiBd0.js.map +1 -0
  41. package/dist/client/chunks/{chart-kpi-number-CIGqZ5Dw.js → chart-kpi-number-BXolYaZA.js} +8 -8
  42. package/dist/client/chunks/chart-kpi-number-BXolYaZA.js.map +1 -0
  43. package/dist/client/chunks/{chart-kpi-text-iwlaSQCi.js → chart-kpi-text-PA8oyypA.js} +7 -7
  44. package/dist/client/chunks/chart-kpi-text-PA8oyypA.js.map +1 -0
  45. package/dist/client/chunks/{chart-line-BKqhoW9A.js → chart-line-BOrtUdOD.js} +8 -8
  46. package/dist/client/chunks/chart-line-BOrtUdOD.js.map +1 -0
  47. package/dist/client/chunks/{chart-markdown-CiPhRY9s.js → chart-markdown-Cget3iEq.js} +6 -6
  48. package/dist/client/chunks/chart-markdown-Cget3iEq.js.map +1 -0
  49. package/dist/client/chunks/{chart-pie-BNr-GgTh.js → chart-pie-B-Sbsvd2.js} +7 -7
  50. package/dist/client/chunks/chart-pie-B-Sbsvd2.js.map +1 -0
  51. package/dist/client/chunks/{chart-radar-CYrGVYEQ.js → chart-radar-CezgvXhm.js} +6 -6
  52. package/dist/client/chunks/chart-radar-CezgvXhm.js.map +1 -0
  53. package/dist/client/chunks/{chart-radial-bar-2PR3ucIR.js → chart-radial-bar-COBPiBxm.js} +6 -6
  54. package/dist/client/chunks/chart-radial-bar-COBPiBxm.js.map +1 -0
  55. package/dist/client/chunks/{chart-sankey-C7w7h2ZV.js → chart-sankey-O4WQBRDk.js} +27 -27
  56. package/dist/client/chunks/{chart-sankey-C7w7h2ZV.js.map → chart-sankey-O4WQBRDk.js.map} +1 -1
  57. package/dist/client/chunks/{chart-scatter-D3Z9bl8H.js → chart-scatter-BVF0n9DR.js} +22 -22
  58. package/dist/client/chunks/chart-scatter-BVF0n9DR.js.map +1 -0
  59. package/dist/client/chunks/{chart-sunburst-C4ydFeaK.js → chart-sunburst-DZzVj_6S.js} +4 -4
  60. package/dist/client/chunks/{chart-sunburst-C4ydFeaK.js.map → chart-sunburst-DZzVj_6S.js.map} +1 -1
  61. package/dist/client/chunks/{chart-tree-map-DCCmMyz1.js → chart-tree-map-CeEtNuo6.js} +6 -6
  62. package/dist/client/chunks/chart-tree-map-CeEtNuo6.js.map +1 -0
  63. package/dist/client/chunks/{charts-core-DIW3Dd7n.js → charts-core-DF99lItO.js} +4 -4
  64. package/dist/client/chunks/charts-core-DF99lItO.js.map +1 -0
  65. package/dist/client/chunks/{charts-loader-BCBnMYjH.js → charts-loader-AkRviD9H.js} +22 -22
  66. package/dist/client/chunks/{charts-loader-BCBnMYjH.js.map → charts-loader-AkRviD9H.js.map} +1 -1
  67. package/dist/client/chunks/{core-BITzuqYm.js → core-Bso4ultM.js} +2 -2
  68. package/dist/client/chunks/{core-BITzuqYm.js.map → core-Bso4ultM.js.map} +1 -1
  69. package/dist/client/chunks/{hooks-Dd_nnv0J.js → hooks-B69r8rwU.js} +4 -4
  70. package/dist/client/chunks/{hooks-Dd_nnv0J.js.map → hooks-B69r8rwU.js.map} +1 -1
  71. package/dist/client/chunks/{providers-BjxD1ZmC.js → providers-CxlSRYvE.js} +2 -2
  72. package/dist/client/chunks/{providers-BjxD1ZmC.js.map → providers-CxlSRYvE.js.map} +1 -1
  73. package/dist/client/chunks/{syntaxHighlighting-Cmqp7_Mx.js → syntaxHighlighting-yTdSle2t.js} +2 -2
  74. package/dist/client/chunks/{syntaxHighlighting-Cmqp7_Mx.js.map → syntaxHighlighting-yTdSle2t.js.map} +1 -1
  75. package/dist/client/chunks/{useDirtyStateTracking-B5g-bw7a.js → useDirtyStateTracking-GZtwGRu7.js} +3 -3
  76. package/dist/client/chunks/{useDirtyStateTracking-B5g-bw7a.js.map → useDirtyStateTracking-GZtwGRu7.js.map} +1 -1
  77. package/dist/client/chunks/{vendor-CJRtj0__.js → vendor-B_H-VRhj.js} +97 -99
  78. package/dist/client/chunks/vendor-B_H-VRhj.js.map +1 -0
  79. package/dist/client/components.js +4 -4
  80. package/dist/client/components.js.map +1 -1
  81. package/dist/client/hooks.js +3 -3
  82. package/dist/client/index.js +10 -10
  83. package/dist/client/index.js.map +1 -1
  84. package/dist/client/providers.js +1 -1
  85. package/dist/client/styles.css +1 -1
  86. package/dist/client/utils.js +6 -6
  87. package/dist/client-bundle-stats.html +1 -1
  88. package/dist/server/index.cjs +20 -20
  89. package/dist/server/index.d.ts +10 -0
  90. package/dist/server/index.js +674 -643
  91. package/package.json +1 -1
  92. package/dist/client/chunks/DashboardEditModal-CVMSvpJ-.js.map +0 -1
  93. package/dist/client/chunks/RetentionCombinedChart-BVKWmxc-.js.map +0 -1
  94. package/dist/client/chunks/RetentionHeatmap-BiqfhGYk.js.map +0 -1
  95. package/dist/client/chunks/analysis-builder-CuTR61Ct.js.map +0 -1
  96. package/dist/client/chunks/analysis-builder-shared-D7iqklYk.js.map +0 -1
  97. package/dist/client/chunks/chart-area-KlBSb_ur.js.map +0 -1
  98. package/dist/client/chunks/chart-bar-D1i2jmIg.js.map +0 -1
  99. package/dist/client/chunks/chart-data-table-CYMMAHau.js.map +0 -1
  100. package/dist/client/chunks/chart-funnel-BH7r4HWZ.js.map +0 -1
  101. package/dist/client/chunks/chart-heat-map-DyGtODLE.js.map +0 -1
  102. package/dist/client/chunks/chart-kpi-delta-Bk396suk.js.map +0 -1
  103. package/dist/client/chunks/chart-kpi-number-CIGqZ5Dw.js.map +0 -1
  104. package/dist/client/chunks/chart-kpi-text-iwlaSQCi.js.map +0 -1
  105. package/dist/client/chunks/chart-line-BKqhoW9A.js.map +0 -1
  106. package/dist/client/chunks/chart-markdown-CiPhRY9s.js.map +0 -1
  107. package/dist/client/chunks/chart-pie-BNr-GgTh.js.map +0 -1
  108. package/dist/client/chunks/chart-radar-CYrGVYEQ.js.map +0 -1
  109. package/dist/client/chunks/chart-radial-bar-2PR3ucIR.js.map +0 -1
  110. package/dist/client/chunks/chart-scatter-D3Z9bl8H.js.map +0 -1
  111. package/dist/client/chunks/chart-tree-map-DCCmMyz1.js.map +0 -1
  112. package/dist/client/chunks/charts-core-DIW3Dd7n.js.map +0 -1
  113. package/dist/client/chunks/vendor-CJRtj0__.js.map +0 -1
@@ -1,18 +1,18 @@
1
1
  import * as C from "react";
2
2
  import D from "react";
3
- import { jsx as Jt } from "react/jsx-runtime";
4
- var Z = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new WeakMap(), dt = 0, Wt;
5
- function $t(t) {
3
+ import { jsx as Gt } from "react/jsx-runtime";
4
+ var V = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new WeakMap(), dt = 0, Jt;
5
+ function Wt(t) {
6
6
  return t ? (H.has(t) || (dt += 1, H.set(t, dt.toString())), H.get(t)) : "0";
7
7
  }
8
- function Vt(t) {
8
+ function $t(t) {
9
9
  return Object.keys(t).sort().filter(
10
10
  (e) => t[e] !== void 0
11
- ).map((e) => `${e}_${e === "root" ? $t(t.root) : t[e]}`).toString();
11
+ ).map((e) => `${e}_${e === "root" ? Wt(t.root) : t[e]}`).toString();
12
12
  }
13
- function Zt(t) {
14
- const e = Vt(t);
15
- let s = Z.get(e);
13
+ function Vt(t) {
14
+ const e = $t(t);
15
+ let s = V.get(e);
16
16
  if (!s) {
17
17
  const r = /* @__PURE__ */ new Map();
18
18
  let i;
@@ -29,11 +29,11 @@ function Zt(t) {
29
29
  id: e,
30
30
  observer: o,
31
31
  elements: r
32
- }, Z.set(e, s);
32
+ }, V.set(e, s);
33
33
  }
34
34
  return s;
35
35
  }
36
- function Xt(t, e, s = {}, r = Wt) {
36
+ function Zt(t, e, s = {}, r = Jt) {
37
37
  if (typeof window.IntersectionObserver > "u" && r !== void 0) {
38
38
  const u = t.getBoundingClientRect();
39
39
  return e(r, {
@@ -47,9 +47,9 @@ function Xt(t, e, s = {}, r = Wt) {
47
47
  }), () => {
48
48
  };
49
49
  }
50
- const { id: i, observer: o, elements: c } = Zt(s), n = c.get(t) || [];
50
+ const { id: i, observer: o, elements: c } = Vt(s), n = c.get(t) || [];
51
51
  return c.has(t) || c.set(t, n), n.push(e), o.observe(t), function() {
52
- n.splice(n.indexOf(e), 1), n.length === 0 && (c.delete(t), o.unobserve(t)), c.size === 0 && (o.disconnect(), Z.delete(i));
52
+ n.splice(n.indexOf(e), 1), n.length === 0 && (c.delete(t), o.unobserve(t)), c.size === 0 && (o.disconnect(), V.delete(i));
53
53
  };
54
54
  }
55
55
  function Ne({
@@ -73,7 +73,7 @@ function Ne({
73
73
  () => {
74
74
  if (O.current === void 0 && (O.current = n), c || !l) return;
75
75
  let S;
76
- return S = Xt(
76
+ return S = Zt(
77
77
  l,
78
78
  (R, d) => {
79
79
  const b = O.current;
@@ -134,7 +134,7 @@ var x = class {
134
134
  }
135
135
  onUnsubscribe() {
136
136
  }
137
- }, Yt = {
137
+ }, Xt = {
138
138
  // We need the wrapper function syntax below instead of direct references to
139
139
  // global setTimeout etc.
140
140
  //
@@ -149,14 +149,14 @@ var x = class {
149
149
  clearTimeout: (t) => clearTimeout(t),
150
150
  setInterval: (t, e) => setInterval(t, e),
151
151
  clearInterval: (t) => clearInterval(t)
152
- }, te = class {
152
+ }, Yt = class {
153
153
  // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
154
154
  // type at app boot; and if we leave that type, then any new timer provider
155
155
  // would need to support ReturnType<typeof setTimeout>, which is infeasible.
156
156
  //
157
157
  // We settle for type safety for the TimeoutProvider type, and accept that
158
158
  // this class is unsafe internally to allow for extension.
159
- #e = Yt;
159
+ #e = Xt;
160
160
  #t = !1;
161
161
  setTimeoutProvider(t) {
162
162
  process.env.NODE_ENV !== "production" && this.#t && t !== this.#e && console.error(
@@ -176,17 +176,17 @@ var x = class {
176
176
  clearInterval(t) {
177
177
  this.#e.clearInterval(t);
178
178
  }
179
- }, _ = new te();
180
- function ee(t) {
179
+ }, _ = new Yt();
180
+ function te(t) {
181
181
  setTimeout(t, 0);
182
182
  }
183
183
  var I = typeof window > "u" || "Deno" in globalThis;
184
184
  function P() {
185
185
  }
186
- function se(t, e) {
186
+ function ee(t, e) {
187
187
  return typeof t == "function" ? t(e) : t;
188
188
  }
189
- function X(t) {
189
+ function Z(t) {
190
190
  return typeof t == "number" && t >= 0 && t !== 1 / 0;
191
191
  }
192
192
  function Qt(t, e) {
@@ -240,25 +240,25 @@ function ot(t, e) {
240
240
  function Q(t) {
241
241
  return JSON.stringify(
242
242
  t,
243
- (e, s) => Y(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s
243
+ (e, s) => X(s) ? Object.keys(s).sort().reduce((r, i) => (r[i] = s[i], r), {}) : s
244
244
  );
245
245
  }
246
246
  function j(t, e) {
247
247
  return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((s) => j(t[s], e[s])) : !1;
248
248
  }
249
- var re = Object.prototype.hasOwnProperty;
249
+ var se = Object.prototype.hasOwnProperty;
250
250
  function B(t, e, s = 0) {
251
251
  if (t === e)
252
252
  return t;
253
253
  if (s > 500) return e;
254
254
  const r = vt(t) && vt(e);
255
- if (!r && !(Y(t) && Y(e))) return e;
255
+ if (!r && !(X(t) && X(e))) return e;
256
256
  const o = (r ? t : Object.keys(t)).length, c = r ? e : Object.keys(e), n = c.length, u = r ? new Array(n) : {};
257
257
  let h = 0;
258
258
  for (let a = 0; a < n; a++) {
259
259
  const l = r ? a : c[a], f = t[l], m = e[l];
260
260
  if (f === m) {
261
- u[l] = f, (r ? a < o : re.call(t, l)) && h++;
261
+ u[l] = f, (r ? a < o : se.call(t, l)) && h++;
262
262
  continue;
263
263
  }
264
264
  if (f === null || m === null || typeof f != "object" || typeof m != "object") {
@@ -281,7 +281,7 @@ function q(t, e) {
281
281
  function vt(t) {
282
282
  return Array.isArray(t) && t.length === Object.keys(t).length;
283
283
  }
284
- function Y(t) {
284
+ function X(t) {
285
285
  if (!mt(t))
286
286
  return !1;
287
287
  const e = t.constructor;
@@ -293,12 +293,12 @@ function Y(t) {
293
293
  function mt(t) {
294
294
  return Object.prototype.toString.call(t) === "[object Object]";
295
295
  }
296
- function ie(t) {
296
+ function re(t) {
297
297
  return new Promise((e) => {
298
298
  _.setTimeout(e, t);
299
299
  });
300
300
  }
301
- function tt(t, e, s) {
301
+ function Y(t, e, s) {
302
302
  if (typeof s.structuralSharing == "function")
303
303
  return s.structuralSharing(t, e);
304
304
  if (s.structuralSharing !== !1) {
@@ -314,11 +314,11 @@ function tt(t, e, s) {
314
314
  }
315
315
  return e;
316
316
  }
317
- function ne(t, e, s = 0) {
317
+ function ie(t, e, s = 0) {
318
318
  const r = [...t, e];
319
319
  return s && r.length > s ? r.slice(1) : r;
320
320
  }
321
- function oe(t, e, s = 0) {
321
+ function ne(t, e, s = 0) {
322
322
  const r = [e, ...t];
323
323
  return s && r.length > s ? r.slice(0, -1) : r;
324
324
  }
@@ -331,14 +331,14 @@ function xt(t, e) {
331
331
  function at(t, e) {
332
332
  return typeof t == "function" ? t(...e) : !!t;
333
333
  }
334
- function ae(t, e, s) {
334
+ function oe(t, e, s) {
335
335
  let r = !1, i;
336
336
  return Object.defineProperty(t, "signal", {
337
337
  enumerable: !0,
338
338
  get: () => (i ??= e(), r || (r = !0, i.aborted ? s() : i.addEventListener("abort", s, { once: !0 })), i)
339
339
  }), t;
340
340
  }
341
- var ue = class extends x {
341
+ var ae = class extends x {
342
342
  #e;
343
343
  #t;
344
344
  #s;
@@ -375,8 +375,8 @@ var ue = class extends x {
375
375
  isFocused() {
376
376
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
377
377
  }
378
- }, ut = new ue();
379
- function et() {
378
+ }, ut = new ae();
379
+ function tt() {
380
380
  let t, e;
381
381
  const s = new Promise((i, o) => {
382
382
  t = i, e = o;
@@ -398,13 +398,13 @@ function et() {
398
398
  }), e(i);
399
399
  }, s;
400
400
  }
401
- var ce = ee;
402
- function he() {
401
+ var ue = te;
402
+ function ce() {
403
403
  let t = [], e = 0, s = (n) => {
404
404
  n();
405
405
  }, r = (n) => {
406
406
  n();
407
- }, i = ce;
407
+ }, i = ue;
408
408
  const o = (n) => {
409
409
  e ? t.push(n) : i(() => {
410
410
  s(n);
@@ -458,7 +458,7 @@ function he() {
458
458
  }
459
459
  };
460
460
  }
461
- var M = he(), le = class extends x {
461
+ var M = ce(), he = class extends x {
462
462
  #e = !0;
463
463
  #t;
464
464
  #s;
@@ -489,23 +489,23 @@ var M = he(), le = class extends x {
489
489
  isOnline() {
490
490
  return this.#e;
491
491
  }
492
- }, J = new le();
493
- function fe(t) {
492
+ }, J = new he();
493
+ function le(t) {
494
494
  return Math.min(1e3 * 2 ** t, 3e4);
495
495
  }
496
496
  function At(t) {
497
497
  return (t ?? "online") === "online" ? J.isOnline() : !0;
498
498
  }
499
- var st = class extends Error {
499
+ var et = class extends Error {
500
500
  constructor(t) {
501
501
  super("CancelledError"), this.revert = t?.revert, this.silent = t?.silent;
502
502
  }
503
503
  };
504
504
  function Dt(t) {
505
505
  let e = !1, s = 0, r;
506
- const i = et(), o = () => i.status !== "pending", c = (y) => {
506
+ const i = tt(), o = () => i.status !== "pending", c = (y) => {
507
507
  if (!o()) {
508
- const v = new st(y);
508
+ const v = new et(y);
509
509
  f(v), t.onCancel?.(v);
510
510
  }
511
511
  }, n = () => {
@@ -535,12 +535,12 @@ function Dt(t) {
535
535
  Promise.resolve(y).then(l).catch((p) => {
536
536
  if (o())
537
537
  return;
538
- const w = t.retry ?? (I ? 0 : 3), E = t.retryDelay ?? fe, S = typeof E == "function" ? E(s, p) : E, R = w === !0 || typeof w == "number" && s < w || typeof w == "function" && w(s, p);
538
+ const w = t.retry ?? (I ? 0 : 3), E = t.retryDelay ?? le, S = typeof E == "function" ? E(s, p) : E, R = w === !0 || typeof w == "number" && s < w || typeof w == "function" && w(s, p);
539
539
  if (e || !R) {
540
540
  f(p);
541
541
  return;
542
542
  }
543
- s++, t.onFail?.(s, p), ie(S).then(() => h() ? void 0 : m()).then(() => {
543
+ s++, t.onFail?.(s, p), re(S).then(() => h() ? void 0 : m()).then(() => {
544
544
  e ? f(p) : O();
545
545
  });
546
546
  });
@@ -562,7 +562,7 @@ var jt = class {
562
562
  this.clearGcTimeout();
563
563
  }
564
564
  scheduleGc() {
565
- this.clearGcTimeout(), X(this.gcTime) && (this.#e = _.setTimeout(() => {
565
+ this.clearGcTimeout(), Z(this.gcTime) && (this.#e = _.setTimeout(() => {
566
566
  this.optionalRemove();
567
567
  }, this.gcTime));
568
568
  }
@@ -575,7 +575,7 @@ var jt = class {
575
575
  clearGcTimeout() {
576
576
  this.#e && (_.clearTimeout(this.#e), this.#e = void 0);
577
577
  }
578
- }, de = class extends jt {
578
+ }, fe = class extends jt {
579
579
  #e;
580
580
  #t;
581
581
  #s;
@@ -604,7 +604,7 @@ var jt = class {
604
604
  !this.observers.length && this.state.fetchStatus === "idle" && this.#s.remove(this);
605
605
  }
606
606
  setData(t, e) {
607
- const s = tt(this.state.data, t, this.options);
607
+ const s = Y(this.state.data, t, this.options);
608
608
  return this.#o({
609
609
  data: s,
610
610
  type: "success",
@@ -715,7 +715,7 @@ var jt = class {
715
715
  initialPromise: e?.initialPromise,
716
716
  fn: c.fetchFn,
717
717
  onCancel: (n) => {
718
- n instanceof st && n.revert && this.setState({
718
+ n instanceof et && n.revert && this.setState({
719
719
  ...this.#t,
720
720
  fetchStatus: "idle"
721
721
  }), s.abort();
@@ -746,7 +746,7 @@ var jt = class {
746
746
  this
747
747
  ), n;
748
748
  } catch (n) {
749
- if (n instanceof st) {
749
+ if (n instanceof et) {
750
750
  if (n.silent)
751
751
  return this.#r.promise;
752
752
  if (n.revert) {
@@ -880,7 +880,7 @@ function bt(t) {
880
880
  }
881
881
  var ct = class extends x {
882
882
  constructor(t, e) {
883
- super(), this.options = e, this.#e = t, this.#o = null, this.#a = et(), this.bindMethods(), this.setOptions(e);
883
+ super(), this.options = e, this.#e = t, this.#o = null, this.#a = tt(), this.bindMethods(), this.setOptions(e);
884
884
  }
885
885
  #e;
886
886
  #t = void 0;
@@ -909,14 +909,14 @@ var ct = class extends x {
909
909
  this.hasListeners() || this.destroy();
910
910
  }
911
911
  shouldFetchOnReconnect() {
912
- return rt(
912
+ return st(
913
913
  this.#t,
914
914
  this.options,
915
915
  this.options.refetchOnReconnect
916
916
  );
917
917
  }
918
918
  shouldFetchOnWindowFocus() {
919
- return rt(
919
+ return st(
920
920
  this.#t,
921
921
  this.options,
922
922
  this.options.refetchOnWindowFocus
@@ -948,7 +948,7 @@ var ct = class extends x {
948
948
  }
949
949
  getOptimisticResult(t) {
950
950
  const e = this.#e.getQueryCache().build(this.#e, t), s = this.createResult(e, t);
951
- return ye(this, s) && (this.#i = s, this.#n = this.options, this.#r = this.#t.state), s;
951
+ return pe(this, s) && (this.#i = s, this.#n = this.options, this.#r = this.#t.state), s;
952
952
  }
953
953
  getCurrentResult() {
954
954
  return this.#i;
@@ -997,7 +997,7 @@ var ct = class extends x {
997
997
  this.options.staleTime,
998
998
  this.#t
999
999
  );
1000
- if (I || this.#i.isStale || !X(t))
1000
+ if (I || this.#i.isStale || !Z(t))
1001
1001
  return;
1002
1002
  const s = Qt(this.#i.dataUpdatedAt, t) + 1;
1003
1003
  this.#c = _.setTimeout(() => {
@@ -1008,7 +1008,7 @@ var ct = class extends x {
1008
1008
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
1009
1009
  }
1010
1010
  #g(t) {
1011
- this.#O(), this.#u = t, !(I || F(this.options.enabled, this.#t) === !1 || !X(this.#u) || this.#u === 0) && (this.#h = _.setInterval(() => {
1011
+ this.#O(), this.#u = t, !(I || F(this.options.enabled, this.#t) === !1 || !Z(this.#u) || this.#u === 0) && (this.#h = _.setInterval(() => {
1012
1012
  (this.options.refetchIntervalInBackground || ut.isFocused()) && this.#y();
1013
1013
  }, this.#u));
1014
1014
  }
@@ -1039,7 +1039,7 @@ var ct = class extends x {
1039
1039
  i?.isPlaceholderData && e.placeholderData === c?.placeholderData ? (g = i.data, v = !0) : g = typeof e.placeholderData == "function" ? e.placeholderData(
1040
1040
  this.#f?.state.data,
1041
1041
  this.#f
1042
- ) : e.placeholderData, g !== void 0 && (y = "success", f = tt(
1042
+ ) : e.placeholderData, g !== void 0 && (y = "success", f = Y(
1043
1043
  i?.data,
1044
1044
  g,
1045
1045
  e
@@ -1050,7 +1050,7 @@ var ct = class extends x {
1050
1050
  f = this.#l;
1051
1051
  else
1052
1052
  try {
1053
- this.#p = e.select, f = e.select(f), f = tt(i?.data, f, e), this.#l = f, this.#o = null;
1053
+ this.#p = e.select, f = e.select(f), f = Y(i?.data, f, e), this.#l = f, this.#o = null;
1054
1054
  } catch (g) {
1055
1055
  this.#o = g;
1056
1056
  }
@@ -1087,7 +1087,7 @@ var ct = class extends x {
1087
1087
  const g = b.data !== void 0, A = b.status === "error" && !g, U = (L) => {
1088
1088
  A ? L.reject(b.error) : g && L.resolve(b.data);
1089
1089
  }, ft = () => {
1090
- const L = this.#a = b.promise = et();
1090
+ const L = this.#a = b.promise = tt();
1091
1091
  U(L);
1092
1092
  }, N = this.#a;
1093
1093
  switch (N.status) {
@@ -1146,13 +1146,13 @@ var ct = class extends x {
1146
1146
  });
1147
1147
  }
1148
1148
  };
1149
- function pe(t, e) {
1149
+ function de(t, e) {
1150
1150
  return F(e.enabled, t) !== !1 && t.state.data === void 0 && !(t.state.status === "error" && e.retryOnMount === !1);
1151
1151
  }
1152
1152
  function St(t, e) {
1153
- return pe(t, e) || t.state.data !== void 0 && rt(t, e, e.refetchOnMount);
1153
+ return de(t, e) || t.state.data !== void 0 && st(t, e, e.refetchOnMount);
1154
1154
  }
1155
- function rt(t, e, s) {
1155
+ function st(t, e, s) {
1156
1156
  if (F(e.enabled, t) !== !1 && T(e.staleTime, t) !== "static") {
1157
1157
  const r = typeof s == "function" ? s(t) : s;
1158
1158
  return r === "always" || r !== !1 && ht(t, e);
@@ -1165,7 +1165,7 @@ function Ot(t, e, s, r) {
1165
1165
  function ht(t, e) {
1166
1166
  return F(e.enabled, t) !== !1 && t.isStaleByTime(T(e.staleTime, t));
1167
1167
  }
1168
- function ye(t, e) {
1168
+ function pe(t, e) {
1169
1169
  return !q(t.getCurrentResult(), e);
1170
1170
  }
1171
1171
  function wt(t) {
@@ -1176,7 +1176,7 @@ function wt(t) {
1176
1176
  const h = async () => {
1177
1177
  let a = !1;
1178
1178
  const l = (O) => {
1179
- ae(
1179
+ oe(
1180
1180
  O,
1181
1181
  () => e.signal,
1182
1182
  () => a = !0
@@ -1195,14 +1195,14 @@ function wt(t) {
1195
1195
  meta: e.options.meta
1196
1196
  };
1197
1197
  return l(d), d;
1198
- })(), E = await f(w), { maxPages: S } = e.options, R = v ? oe : ne;
1198
+ })(), E = await f(w), { maxPages: S } = e.options, R = v ? ne : ie;
1199
1199
  return {
1200
1200
  pages: R(O.pages, E, S),
1201
1201
  pageParams: R(O.pageParams, y, S)
1202
1202
  };
1203
1203
  };
1204
1204
  if (i && o.length) {
1205
- const O = i === "backward", y = O ? ve : Rt, v = {
1205
+ const O = i === "backward", y = O ? ye : Rt, v = {
1206
1206
  pages: o,
1207
1207
  pageParams: c
1208
1208
  }, p = y(r, v);
@@ -1240,10 +1240,10 @@ function Rt(t, { pages: e, pageParams: s }) {
1240
1240
  s
1241
1241
  ) : void 0;
1242
1242
  }
1243
- function ve(t, { pages: e, pageParams: s }) {
1243
+ function ye(t, { pages: e, pageParams: s }) {
1244
1244
  return e.length > 0 ? t.getPreviousPageParam?.(e[0], e, s[0], s) : void 0;
1245
1245
  }
1246
- var me = class extends jt {
1246
+ var ve = class extends jt {
1247
1247
  #e;
1248
1248
  #t;
1249
1249
  #s;
@@ -1475,7 +1475,7 @@ function kt() {
1475
1475
  submittedAt: 0
1476
1476
  };
1477
1477
  }
1478
- var ge = class extends x {
1478
+ var me = class extends x {
1479
1479
  constructor(t = {}) {
1480
1480
  super(), this.config = t, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#s = 0;
1481
1481
  }
@@ -1483,7 +1483,7 @@ var ge = class extends x {
1483
1483
  #t;
1484
1484
  #s;
1485
1485
  build(t, e, s) {
1486
- const r = new me({
1486
+ const r = new ve({
1487
1487
  client: t,
1488
1488
  mutationCache: this,
1489
1489
  mutationId: ++this.#s,
@@ -1567,7 +1567,7 @@ var ge = class extends x {
1567
1567
  function K(t) {
1568
1568
  return t.options.scope?.id;
1569
1569
  }
1570
- var be = class extends x {
1570
+ var ge = class extends x {
1571
1571
  #e;
1572
1572
  #t = void 0;
1573
1573
  #s;
@@ -1677,11 +1677,11 @@ function Et(t, e) {
1677
1677
  const s = new Set(e);
1678
1678
  return t.filter((r) => !s.has(r));
1679
1679
  }
1680
- function Se(t, e, s) {
1680
+ function be(t, e, s) {
1681
1681
  const r = t.slice(0);
1682
1682
  return r[e] = s, r;
1683
1683
  }
1684
- var Oe = class extends x {
1684
+ var Se = class extends x {
1685
1685
  #e;
1686
1686
  #t;
1687
1687
  #s;
@@ -1801,7 +1801,7 @@ var Oe = class extends x {
1801
1801
  }
1802
1802
  #u(t, e) {
1803
1803
  const s = this.#r.indexOf(t);
1804
- s !== -1 && (this.#t = Se(this.#t, s, e), this.#d());
1804
+ s !== -1 && (this.#t = be(this.#t, s, e), this.#d());
1805
1805
  }
1806
1806
  #d() {
1807
1807
  if (this.hasListeners()) {
@@ -1813,7 +1813,7 @@ var Oe = class extends x {
1813
1813
  });
1814
1814
  }
1815
1815
  }
1816
- }, we = class extends x {
1816
+ }, Oe = class extends x {
1817
1817
  constructor(t = {}) {
1818
1818
  super(), this.config = t, this.#e = /* @__PURE__ */ new Map();
1819
1819
  }
@@ -1821,7 +1821,7 @@ var Oe = class extends x {
1821
1821
  build(t, e, s) {
1822
1822
  const r = e.queryKey, i = e.queryHash ?? ot(r, e);
1823
1823
  let o = this.get(i);
1824
- return o || (o = new de({
1824
+ return o || (o = new fe({
1825
1825
  client: t,
1826
1826
  queryKey: r,
1827
1827
  queryHash: i,
@@ -1894,7 +1894,7 @@ var Oe = class extends x {
1894
1894
  #a;
1895
1895
  #o;
1896
1896
  constructor(t = {}) {
1897
- this.#e = t.queryCache || new we(), this.#t = t.mutationCache || new ge(), this.#s = t.defaultOptions || {}, this.#i = /* @__PURE__ */ new Map(), this.#r = /* @__PURE__ */ new Map(), this.#n = 0;
1897
+ this.#e = t.queryCache || new Oe(), this.#t = t.mutationCache || new me(), this.#s = t.defaultOptions || {}, this.#i = /* @__PURE__ */ new Map(), this.#r = /* @__PURE__ */ new Map(), this.#n = 0;
1898
1898
  }
1899
1899
  mount() {
1900
1900
  this.#n++, this.#n === 1 && (this.#a = ut.subscribe(async (t) => {
@@ -1936,7 +1936,7 @@ var Oe = class extends x {
1936
1936
  setQueryData(t, e, s) {
1937
1937
  const r = this.defaultQueryOptions({ queryKey: t }), o = this.#e.get(
1938
1938
  r.queryHash
1939
- )?.state.data, c = se(e, o);
1939
+ )?.state.data, c = ee(e, o);
1940
1940
  if (c !== void 0)
1941
1941
  return this.#e.build(this, r).setData(c, { ...s, manual: !0 });
1942
1942
  }
@@ -2099,8 +2099,8 @@ var Oe = class extends x {
2099
2099
  children: e
2100
2100
  }) => (C.useEffect(() => (t.mount(), () => {
2101
2101
  t.unmount();
2102
- }), [t]), /* @__PURE__ */ Jt(Ut.Provider, { value: t, children: e })), Re = C.createContext(!1), Nt = () => C.useContext(Re);
2103
- function Ee() {
2102
+ }), [t]), /* @__PURE__ */ Gt(Ut.Provider, { value: t, children: e })), we = C.createContext(!1), Nt = () => C.useContext(we);
2103
+ function Re() {
2104
2104
  let t = !1;
2105
2105
  return {
2106
2106
  clearReset: () => {
@@ -2112,7 +2112,7 @@ function Ee() {
2112
2112
  isReset: () => t
2113
2113
  };
2114
2114
  }
2115
- var Ce = C.createContext(Ee()), Lt = () => C.useContext(Ce), Ht = (t, e, s) => {
2115
+ var Ee = C.createContext(Re()), Lt = () => C.useContext(Ee), Ht = (t, e, s) => {
2116
2116
  const r = s?.state.error && typeof t.throwOnError == "function" ? at(t.throwOnError, [s.state.error, s]) : t.throwOnError;
2117
2117
  (t.suspense || t.experimental_prefetchInRender || r) && (e.isReset() || (t.retryOnMount = !1));
2118
2118
  }, Kt = (t) => {
@@ -2133,7 +2133,7 @@ var Ce = C.createContext(Ee()), Lt = () => C.useContext(Ce), Ht = (t, e, s) => {
2133
2133
  1e3
2134
2134
  ));
2135
2135
  }
2136
- }, Gt = (t, e) => t.isLoading && t.isFetching && !e, it = (t, e) => t?.suspense && e.isPending, W = (t, e, s) => e.fetchOptimistic(t).catch(() => {
2136
+ }, Ce = (t, e) => t.isLoading && t.isFetching && !e, rt = (t, e) => t?.suspense && e.isPending, it = (t, e, s) => e.fetchOptimistic(t).catch(() => {
2137
2137
  s.clearReset();
2138
2138
  });
2139
2139
  function Ke({
@@ -2155,7 +2155,7 @@ function Ke({
2155
2155
  Ht(y, o, v);
2156
2156
  }), Kt(o);
2157
2157
  const [n] = C.useState(
2158
- () => new Oe(
2158
+ () => new Se(
2159
2159
  r,
2160
2160
  c,
2161
2161
  e
@@ -2178,14 +2178,12 @@ function Ke({
2178
2178
  );
2179
2179
  }, [c, e, n]);
2180
2180
  const m = u.some(
2181
- (y, v) => it(c[v], y)
2181
+ (y, v) => rt(c[v], y)
2182
2182
  ) ? u.flatMap((y, v) => {
2183
2183
  const p = c[v];
2184
- if (p) {
2184
+ if (p && rt(p, y)) {
2185
2185
  const w = new ct(r, p);
2186
- if (it(p, y))
2187
- return W(p, w, o);
2188
- Gt(y, i) && W(p, w, o);
2186
+ return it(p, w, o);
2189
2187
  }
2190
2188
  return [];
2191
2189
  }) : [];
@@ -2238,8 +2236,8 @@ function Me(t, e, s) {
2238
2236
  () => h.getCurrentResult()
2239
2237
  ), C.useEffect(() => {
2240
2238
  h.setOptions(c);
2241
- }, [c, h]), it(c, a))
2242
- throw W(c, h, i);
2239
+ }, [c, h]), rt(c, a))
2240
+ throw it(c, h, i);
2243
2241
  if (zt({
2244
2242
  result: a,
2245
2243
  errorResetBoundary: i,
@@ -2251,9 +2249,9 @@ function Me(t, e, s) {
2251
2249
  return o.getDefaultOptions().queries?._experimental_afterQuery?.(
2252
2250
  c,
2253
2251
  a
2254
- ), c.experimental_prefetchInRender && !I && Gt(a, r) && (u ? (
2252
+ ), c.experimental_prefetchInRender && !I && Ce(a, r) && (u ? (
2255
2253
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
2256
- W(c, h, i)
2254
+ it(c, h, i)
2257
2255
  ) : (
2258
2256
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
2259
2257
  n?.promise
@@ -2266,7 +2264,7 @@ function ze(t, e) {
2266
2264
  }
2267
2265
  function Be(t, e) {
2268
2266
  const s = lt(), [r] = C.useState(
2269
- () => new be(
2267
+ () => new ge(
2270
2268
  s,
2271
2269
  t
2272
2270
  )
@@ -2405,7 +2403,7 @@ const Mt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Pt
2405
2403
  );
2406
2404
  return;
2407
2405
  }
2408
- return $(
2406
+ return W(
2409
2407
  y.payload,
2410
2408
  (p) => {
2411
2409
  if (p.type === "__setState") {
@@ -2440,7 +2438,7 @@ const Mt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Pt
2440
2438
  }
2441
2439
  return a?.init(z(u.name));
2442
2440
  case "ROLLBACK":
2443
- return $(y.state, (p) => {
2441
+ return W(y.state, (p) => {
2444
2442
  if (n === void 0) {
2445
2443
  m(p), a?.init(i.getState());
2446
2444
  return;
@@ -2449,7 +2447,7 @@ const Mt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Pt
2449
2447
  });
2450
2448
  case "JUMP_TO_STATE":
2451
2449
  case "JUMP_TO_ACTION":
2452
- return $(y.state, (p) => {
2450
+ return W(y.state, (p) => {
2453
2451
  if (n === void 0) {
2454
2452
  m(p);
2455
2453
  return;
@@ -2472,7 +2470,7 @@ const Mt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, Pt
2472
2470
  return;
2473
2471
  }
2474
2472
  }), O;
2475
- }, We = Ie, $ = (t, e) => {
2473
+ }, We = Ie, W = (t, e) => {
2476
2474
  let s;
2477
2475
  try {
2478
2476
  s = JSON.parse(t);
@@ -2675,7 +2673,7 @@ function Ze(t) {
2675
2673
  function Xe(t) {
2676
2674
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2677
2675
  }
2678
- var V = { exports: {} }, It;
2676
+ var $ = { exports: {} }, It;
2679
2677
  function qe() {
2680
2678
  return It || (It = 1, (function(t) {
2681
2679
  var e = (function() {
@@ -2871,7 +2869,7 @@ function qe() {
2871
2869
  t != null ? t.exports = e : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
2872
2870
  return e;
2873
2871
  });
2874
- })(V)), V.exports;
2872
+ })($)), $.exports;
2875
2873
  }
2876
2874
  var Ye = /* @__PURE__ */ qe();
2877
2875
  export {
@@ -2891,4 +2889,4 @@ export {
2891
2889
  $e as s,
2892
2890
  lt as u
2893
2891
  };
2894
- //# sourceMappingURL=vendor-CJRtj0__.js.map
2892
+ //# sourceMappingURL=vendor-B_H-VRhj.js.map