@tanstack/query-devtools 5.13.5 → 5.14.6

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/build/dev.cjs CHANGED
@@ -2053,10 +2053,10 @@ var init_web = __esm({
2053
2053
  }
2054
2054
  });
2055
2055
 
2056
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/double-indexed-kv.js
2056
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/double-indexed-kv.js
2057
2057
  var DoubleIndexedKV;
2058
2058
  var init_double_indexed_kv = __esm({
2059
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/double-indexed-kv.js"() {
2059
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/double-indexed-kv.js"() {
2060
2060
  DoubleIndexedKV = /** @class */
2061
2061
  function() {
2062
2062
  function DoubleIndexedKV2() {
@@ -2082,10 +2082,10 @@ var init_double_indexed_kv = __esm({
2082
2082
  }
2083
2083
  });
2084
2084
 
2085
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/registry.js
2085
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/registry.js
2086
2086
  var Registry;
2087
2087
  var init_registry = __esm({
2088
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/registry.js"() {
2088
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/registry.js"() {
2089
2089
  init_double_indexed_kv();
2090
2090
  Registry = /** @class */
2091
2091
  function() {
@@ -2116,10 +2116,10 @@ var init_registry = __esm({
2116
2116
  }
2117
2117
  });
2118
2118
 
2119
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
2119
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js
2120
2120
  var __extends, ClassRegistry;
2121
2121
  var init_class_registry = __esm({
2122
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js"() {
2122
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/class-registry.js"() {
2123
2123
  init_registry();
2124
2124
  __extends = function() {
2125
2125
  var extendStatics = function(d, b2) {
@@ -2170,7 +2170,7 @@ var init_class_registry = __esm({
2170
2170
  }
2171
2171
  });
2172
2172
 
2173
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
2173
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/util.js
2174
2174
  function valuesOfObj(record) {
2175
2175
  if ("values" in Object) {
2176
2176
  return Object.values(record);
@@ -2217,7 +2217,7 @@ function findArr(record, predicate) {
2217
2217
  }
2218
2218
  var __read;
2219
2219
  var init_util = __esm({
2220
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js"() {
2220
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/util.js"() {
2221
2221
  __read = function(o2, n2) {
2222
2222
  var m = typeof Symbol === "function" && o2[Symbol.iterator];
2223
2223
  if (!m)
@@ -2242,10 +2242,10 @@ var init_util = __esm({
2242
2242
  }
2243
2243
  });
2244
2244
 
2245
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/custom-transformer-registry.js
2245
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/custom-transformer-registry.js
2246
2246
  var CustomTransformerRegistry;
2247
2247
  var init_custom_transformer_registry = __esm({
2248
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/custom-transformer-registry.js"() {
2248
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/custom-transformer-registry.js"() {
2249
2249
  init_util();
2250
2250
  CustomTransformerRegistry = /** @class */
2251
2251
  function() {
@@ -2268,10 +2268,10 @@ var init_custom_transformer_registry = __esm({
2268
2268
  }
2269
2269
  });
2270
2270
 
2271
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/is.js
2271
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/is.js
2272
2272
  var getType, isUndefined, isNull, isPlainObject, isEmptyObject, isArray, isString, isNumber, isBoolean, isRegExp, isMap, isSet, isSymbol, isDate, isError, isNaNValue, isPrimitive, isBigint, isInfinite, isTypedArray, isURL;
2273
2273
  var init_is = __esm({
2274
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/is.js"() {
2274
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/is.js"() {
2275
2275
  getType = function(payload) {
2276
2276
  return Object.prototype.toString.call(payload).slice(8, -1);
2277
2277
  };
@@ -2344,10 +2344,10 @@ var init_is = __esm({
2344
2344
  }
2345
2345
  });
2346
2346
 
2347
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/pathstringifier.js
2347
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/pathstringifier.js
2348
2348
  var escapeKey, stringifyPath, parsePath;
2349
2349
  var init_pathstringifier = __esm({
2350
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/pathstringifier.js"() {
2350
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/pathstringifier.js"() {
2351
2351
  escapeKey = function(key) {
2352
2352
  return key.replace(/\./g, "\\.");
2353
2353
  };
@@ -2380,7 +2380,7 @@ var init_pathstringifier = __esm({
2380
2380
  }
2381
2381
  });
2382
2382
 
2383
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
2383
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/transformer.js
2384
2384
  function simpleTransformation(isApplicable, annotation, transform, untransform) {
2385
2385
  return {
2386
2386
  isApplicable,
@@ -2406,7 +2406,7 @@ function isInstanceOfRegisteredClass(potentialClass, superJson) {
2406
2406
  }
2407
2407
  var __assign, __read2, __spreadArray, simpleRules, symbolRule, constructorToName, typedArrayRule, classRule, customRule, compositeRules, transformValue, simpleRulesByAnnotation, untransformValue;
2408
2408
  var init_transformer = __esm({
2409
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js"() {
2409
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/transformer.js"() {
2410
2410
  init_is();
2411
2411
  init_util();
2412
2412
  __assign = function() {
@@ -2661,7 +2661,7 @@ var init_transformer = __esm({
2661
2661
  }
2662
2662
  });
2663
2663
 
2664
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
2664
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/accessDeep.js
2665
2665
  function validatePath(path) {
2666
2666
  if (includes(path, "__proto__")) {
2667
2667
  throw new Error("__proto__ is not allowed as a property");
@@ -2675,7 +2675,7 @@ function validatePath(path) {
2675
2675
  }
2676
2676
  var getNthKey, getDeep, setDeep;
2677
2677
  var init_accessDeep = __esm({
2678
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js"() {
2678
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/accessDeep.js"() {
2679
2679
  init_is();
2680
2680
  init_util();
2681
2681
  getNthKey = function(value, n2) {
@@ -2782,7 +2782,7 @@ var init_accessDeep = __esm({
2782
2782
  }
2783
2783
  });
2784
2784
 
2785
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
2785
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/plainer.js
2786
2786
  function traverse(tree, walker2, origin) {
2787
2787
  if (origin === void 0) {
2788
2788
  origin = [];
@@ -2844,22 +2844,25 @@ function addIdentity(object, path, identities) {
2844
2844
  identities.set(object, [path]);
2845
2845
  }
2846
2846
  }
2847
- function generateReferentialEqualityAnnotations(identitites) {
2847
+ function generateReferentialEqualityAnnotations(identitites, dedupe) {
2848
2848
  var result = {};
2849
2849
  var rootEqualityPaths = void 0;
2850
2850
  identitites.forEach(function(paths) {
2851
2851
  if (paths.length <= 1) {
2852
2852
  return;
2853
2853
  }
2854
- var _a = __read3(paths.map(function(path) {
2855
- return path.map(String);
2856
- }).sort(function(a2, b2) {
2857
- return a2.length - b2.length;
2858
- })), shortestPath = _a[0], identicalPaths = _a.slice(1);
2859
- if (shortestPath.length === 0) {
2854
+ if (!dedupe) {
2855
+ paths = paths.map(function(path) {
2856
+ return path.map(String);
2857
+ }).sort(function(a2, b2) {
2858
+ return a2.length - b2.length;
2859
+ });
2860
+ }
2861
+ var _a = __read3(paths), representativePath = _a[0], identicalPaths = _a.slice(1);
2862
+ if (representativePath.length === 0) {
2860
2863
  rootEqualityPaths = identicalPaths.map(stringifyPath);
2861
2864
  } else {
2862
- result[stringifyPath(shortestPath)] = identicalPaths.map(stringifyPath);
2865
+ result[stringifyPath(representativePath)] = identicalPaths.map(stringifyPath);
2863
2866
  }
2864
2867
  });
2865
2868
  if (rootEqualityPaths) {
@@ -2874,7 +2877,7 @@ function generateReferentialEqualityAnnotations(identitites) {
2874
2877
  }
2875
2878
  var __read3, __spreadArray2, isDeep, walker;
2876
2879
  var init_plainer = __esm({
2877
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js"() {
2880
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/plainer.js"() {
2878
2881
  init_is();
2879
2882
  init_pathstringifier();
2880
2883
  init_transformer();
@@ -2910,7 +2913,7 @@ var init_plainer = __esm({
2910
2913
  isDeep = function(object, superJson) {
2911
2914
  return isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
2912
2915
  };
2913
- walker = function(object, identities, superJson, path, objectsInThisPath) {
2916
+ walker = function(object, identities, superJson, dedupe, path, objectsInThisPath, seenObjects) {
2914
2917
  var _a;
2915
2918
  if (path === void 0) {
2916
2919
  path = [];
@@ -2918,21 +2921,31 @@ var init_plainer = __esm({
2918
2921
  if (objectsInThisPath === void 0) {
2919
2922
  objectsInThisPath = [];
2920
2923
  }
2921
- if (!isPrimitive(object)) {
2924
+ if (seenObjects === void 0) {
2925
+ seenObjects = /* @__PURE__ */ new Map();
2926
+ }
2927
+ var primitive = isPrimitive(object);
2928
+ if (!primitive) {
2922
2929
  addIdentity(object, path, identities);
2930
+ var seen = seenObjects.get(object);
2931
+ if (seen) {
2932
+ return dedupe ? {
2933
+ transformedValue: null
2934
+ } : seen;
2935
+ }
2923
2936
  }
2924
2937
  if (!isDeep(object, superJson)) {
2925
2938
  var transformed_1 = transformValue(object, superJson);
2926
- if (transformed_1) {
2927
- return {
2928
- transformedValue: transformed_1.value,
2929
- annotations: [transformed_1.type]
2930
- };
2931
- } else {
2932
- return {
2933
- transformedValue: object
2934
- };
2939
+ var result_1 = transformed_1 ? {
2940
+ transformedValue: transformed_1.value,
2941
+ annotations: [transformed_1.type]
2942
+ } : {
2943
+ transformedValue: object
2944
+ };
2945
+ if (!primitive) {
2946
+ seenObjects.set(object, result_1);
2935
2947
  }
2948
+ return result_1;
2936
2949
  }
2937
2950
  if (includes(objectsInThisPath, object)) {
2938
2951
  return {
@@ -2941,13 +2954,10 @@ var init_plainer = __esm({
2941
2954
  }
2942
2955
  var transformationResult = transformValue(object, superJson);
2943
2956
  var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
2944
- if (!isPrimitive(object)) {
2945
- objectsInThisPath = __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]);
2946
- }
2947
2957
  var transformedValue = isArray(transformed) ? [] : {};
2948
2958
  var innerAnnotations = {};
2949
2959
  forEach(transformed, function(value, index) {
2950
- var recursiveResult = walker(value, identities, superJson, __spreadArray2(__spreadArray2([], __read3(path)), [index]), objectsInThisPath);
2960
+ var recursiveResult = walker(value, identities, superJson, dedupe, __spreadArray2(__spreadArray2([], __read3(path)), [index]), __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]), seenObjects);
2951
2961
  transformedValue[index] = recursiveResult.transformedValue;
2952
2962
  if (isArray(recursiveResult.annotations)) {
2953
2963
  innerAnnotations[index] = recursiveResult.annotations;
@@ -2957,17 +2967,17 @@ var init_plainer = __esm({
2957
2967
  });
2958
2968
  }
2959
2969
  });
2960
- if (isEmptyObject(innerAnnotations)) {
2961
- return {
2962
- transformedValue,
2963
- annotations: !!transformationResult ? [transformationResult.type] : void 0
2964
- };
2965
- } else {
2966
- return {
2967
- transformedValue,
2968
- annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
2969
- };
2970
+ var result = isEmptyObject(innerAnnotations) ? {
2971
+ transformedValue,
2972
+ annotations: !!transformationResult ? [transformationResult.type] : void 0
2973
+ } : {
2974
+ transformedValue,
2975
+ annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
2976
+ };
2977
+ if (!primitive) {
2978
+ seenObjects.set(object, result);
2970
2979
  }
2980
+ return result;
2971
2981
  };
2972
2982
  }
2973
2983
  });
@@ -3029,10 +3039,10 @@ var init_dist2 = __esm({
3029
3039
  }
3030
3040
  });
3031
3041
 
3032
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
3042
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/index.js
3033
3043
  var __assign2, __read4, __spreadArray3, SuperJSON, serialize, stringify;
3034
3044
  var init_esm = __esm({
3035
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js"() {
3045
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/index.js"() {
3036
3046
  init_class_registry();
3037
3047
  init_registry();
3038
3048
  init_custom_transformer_registry();
@@ -3078,25 +3088,27 @@ var init_esm = __esm({
3078
3088
  };
3079
3089
  SuperJSON = /** @class */
3080
3090
  function() {
3081
- function SuperJSON2() {
3091
+ function SuperJSON2(_a) {
3092
+ var _b = _a === void 0 ? {} : _a, _c = _b.dedupe, dedupe = _c === void 0 ? false : _c;
3082
3093
  this.classRegistry = new ClassRegistry();
3083
3094
  this.symbolRegistry = new Registry(function(s2) {
3084
- var _a;
3085
- return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
3095
+ var _a2;
3096
+ return (_a2 = s2.description) !== null && _a2 !== void 0 ? _a2 : "";
3086
3097
  });
3087
3098
  this.customTransformerRegistry = new CustomTransformerRegistry();
3088
3099
  this.allowedErrorProps = [];
3100
+ this.dedupe = dedupe;
3089
3101
  }
3090
3102
  SuperJSON2.prototype.serialize = function(object) {
3091
3103
  var identities = /* @__PURE__ */ new Map();
3092
- var output = walker(object, identities, this);
3104
+ var output = walker(object, identities, this, this.dedupe);
3093
3105
  var res = {
3094
3106
  json: output.transformedValue
3095
3107
  };
3096
3108
  if (output.annotations) {
3097
3109
  res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
3098
3110
  }
3099
- var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
3111
+ var equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
3100
3112
  if (equalityAnnotations) {
3101
3113
  res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
3102
3114
  }
@@ -4207,37 +4219,37 @@ var init_dist4 = __esm({
4207
4219
  }
4208
4220
  });
4209
4221
 
4210
- // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
4222
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
4211
4223
  function createClassnames(props) {
4212
4224
  return createMemo(() => {
4213
4225
  const name = props.name || "s";
4214
4226
  return {
4215
- enterActiveClasses: (props.enterActiveClass || name + "-enter-active").split(" "),
4216
- enterClasses: (props.enterClass || name + "-enter").split(" "),
4217
- enterToClasses: (props.enterToClass || name + "-enter-to").split(" "),
4218
- exitActiveClasses: (props.exitActiveClass || name + "-exit-active").split(" "),
4219
- exitClasses: (props.exitClass || name + "-exit").split(" "),
4220
- exitToClasses: (props.exitToClass || name + "-exit-to").split(" "),
4221
- moveClasses: (props.moveClass || name + "-move").split(" ")
4227
+ enterActive: (props.enterActiveClass || name + "-enter-active").split(" "),
4228
+ enter: (props.enterClass || name + "-enter").split(" "),
4229
+ enterTo: (props.enterToClass || name + "-enter-to").split(" "),
4230
+ exitActive: (props.exitActiveClass || name + "-exit-active").split(" "),
4231
+ exit: (props.exitClass || name + "-exit").split(" "),
4232
+ exitTo: (props.exitToClass || name + "-exit-to").split(" "),
4233
+ move: (props.moveClass || name + "-move").split(" ")
4222
4234
  };
4223
4235
  });
4224
4236
  }
4225
4237
  function nextFrame(fn) {
4226
4238
  requestAnimationFrame(() => requestAnimationFrame(fn));
4227
4239
  }
4228
- function enterTransition(classnames, events, el, done) {
4229
- const { enterClasses, enterActiveClasses, enterToClasses } = classnames, { onBeforeEnter, onEnter, onAfterEnter } = events;
4240
+ function enterTransition(classes, events, el, done) {
4241
+ const { onBeforeEnter, onEnter, onAfterEnter } = events;
4230
4242
  onBeforeEnter?.(el);
4231
- el.classList.add(...enterClasses);
4232
- el.classList.add(...enterActiveClasses);
4243
+ el.classList.add(...classes.enter);
4244
+ el.classList.add(...classes.enterActive);
4233
4245
  queueMicrotask(() => {
4234
4246
  if (!el.parentNode)
4235
4247
  return done?.();
4236
4248
  onEnter?.(el, () => endTransition());
4237
4249
  });
4238
4250
  nextFrame(() => {
4239
- el.classList.remove(...enterClasses);
4240
- el.classList.add(...enterToClasses);
4251
+ el.classList.remove(...classes.enter);
4252
+ el.classList.add(...classes.enterTo);
4241
4253
  if (!onEnter || onEnter.length < 2) {
4242
4254
  el.addEventListener("transitionend", endTransition);
4243
4255
  el.addEventListener("animationend", endTransition);
@@ -4248,23 +4260,23 @@ function enterTransition(classnames, events, el, done) {
4248
4260
  done?.();
4249
4261
  el.removeEventListener("transitionend", endTransition);
4250
4262
  el.removeEventListener("animationend", endTransition);
4251
- el.classList.remove(...enterActiveClasses);
4252
- el.classList.remove(...enterToClasses);
4263
+ el.classList.remove(...classes.enterActive);
4264
+ el.classList.remove(...classes.enterTo);
4253
4265
  onAfterEnter?.(el);
4254
4266
  }
4255
4267
  }
4256
4268
  }
4257
- function exitTransition(classnames, events, el, done) {
4258
- const { exitClasses, exitActiveClasses, exitToClasses } = classnames, { onBeforeExit, onExit, onAfterExit } = events;
4269
+ function exitTransition(classes, events, el, done) {
4270
+ const { onBeforeExit, onExit, onAfterExit } = events;
4259
4271
  if (!el.parentNode)
4260
4272
  return done?.();
4261
4273
  onBeforeExit?.(el);
4262
- el.classList.add(...exitClasses);
4263
- el.classList.add(...exitActiveClasses);
4274
+ el.classList.add(...classes.exit);
4275
+ el.classList.add(...classes.exitActive);
4264
4276
  onExit?.(el, () => endTransition());
4265
4277
  nextFrame(() => {
4266
- el.classList.remove(...exitClasses);
4267
- el.classList.add(...exitToClasses);
4278
+ el.classList.remove(...classes.exit);
4279
+ el.classList.add(...classes.exitTo);
4268
4280
  if (!onExit || onExit.length < 2) {
4269
4281
  el.addEventListener("transitionend", endTransition);
4270
4282
  el.addEventListener("animationend", endTransition);
@@ -4275,15 +4287,15 @@ function exitTransition(classnames, events, el, done) {
4275
4287
  done?.();
4276
4288
  el.removeEventListener("transitionend", endTransition);
4277
4289
  el.removeEventListener("animationend", endTransition);
4278
- el.classList.remove(...exitActiveClasses);
4279
- el.classList.remove(...exitToClasses);
4290
+ el.classList.remove(...classes.exitActive);
4291
+ el.classList.remove(...classes.exitTo);
4280
4292
  onAfterExit?.(el);
4281
4293
  }
4282
4294
  }
4283
4295
  }
4284
4296
  var TransitionGroup;
4285
4297
  var init_dist5 = __esm({
4286
- "../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js"() {
4298
+ "../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js"() {
4287
4299
  init_solid();
4288
4300
  init_dist3();
4289
4301
  init_dist4();
@@ -4320,10 +4332,10 @@ var init_dist5 = __esm({
4320
4332
  let endTransition2 = function(e2) {
4321
4333
  if (e2.target === el || /transform$/.test(e2.propertyName)) {
4322
4334
  el.removeEventListener("transitionend", endTransition2);
4323
- el.classList.remove(...classes.moveClasses);
4335
+ el.classList.remove(...classes.move);
4324
4336
  }
4325
4337
  };
4326
- el.classList.add(...classes.moveClasses);
4338
+ el.classList.add(...classes.move);
4327
4339
  el.style.transform = el.style.transitionDuration = "";
4328
4340
  el.addEventListener("transitionend", endTransition2);
4329
4341
  }
@@ -4694,7 +4706,7 @@ var init_dist8 = __esm({
4694
4706
  }
4695
4707
  });
4696
4708
 
4697
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
4709
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.22_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
4698
4710
  function makeResizeObserver(callback, options) {
4699
4711
  if (isServer) {
4700
4712
  return { observe: noop2, unobserve: noop2 };
@@ -4725,7 +4737,7 @@ function createResizeObserver(targets, onResize, options) {
4725
4737
  }, []);
4726
4738
  }
4727
4739
  var init_dist9 = __esm({
4728
- "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4740
+ "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.22_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4729
4741
  init_index();
4730
4742
  init_solid();
4731
4743
  init_web();
@@ -9089,7 +9101,7 @@ function PopperArrow(props) {
9089
9101
  }
9090
9102
  }, others, {
9091
9103
  get children() {
9092
- const _el$ = _tmpl$$e(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
9104
+ const _el$ = _tmpl$$f(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
9093
9105
  _el$3.nextSibling;
9094
9106
  createRenderEffect(() => setAttribute(_el$2, "transform", rotate()));
9095
9107
  return _el$;
@@ -10634,7 +10646,7 @@ function RadioGroupItemInput(props) {
10634
10646
  };
10635
10647
  createEffect(() => onCleanup(radioContext.registerInput(others.id)));
10636
10648
  return (() => {
10637
- const _el$ = _tmpl$$6();
10649
+ const _el$ = _tmpl$$7();
10638
10650
  _el$.addEventListener("blur", onBlur);
10639
10651
  _el$.addEventListener("focus", onFocus);
10640
10652
  _el$.addEventListener("change", onChange);
@@ -10682,7 +10694,7 @@ function RadioGroupItemLabel(props) {
10682
10694
  }, props);
10683
10695
  createEffect(() => onCleanup(context.registerLabel(props.id)));
10684
10696
  return (() => {
10685
- const _el$ = _tmpl$$5();
10697
+ const _el$ = _tmpl$$6();
10686
10698
  spread(_el$, mergeProps({
10687
10699
  get ["for"]() {
10688
10700
  return context.inputId();
@@ -10779,9 +10791,9 @@ function RadioGroupRoot(props) {
10779
10791
  }
10780
10792
  });
10781
10793
  }
10782
- var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack, AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack, DATA_LIVE_ANNOUNCER_ATTR, refCountMap, observerStack, POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT, SCROLL_LOCK_IDENTIFIER, FORM_CONTROL_PROP_NAMES, FormControlContext, AS_COMPONENT_SYMBOL, RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache$1, Selection, SelectionManager, ListCollection, ListKeyboardDelegate, BUTTON_INPUT_TYPES, DomCollectionContext, DismissableLayerContext, PopperContext, _tmpl$$e, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, MenuContext, MenuRootContext, MenuItemContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, index$d, RadioGroupContext, RadioGroupItemContext, _tmpl$$6, _tmpl$$5, index$7;
10794
+ var DATA_TOP_LAYER_ATTR, originalBodyPointerEvents, hasDisabledBodyPointerEvents, layers, layerStack, AUTOFOCUS_ON_MOUNT_EVENT, AUTOFOCUS_ON_UNMOUNT_EVENT, EVENT_OPTIONS, focusScopeStack, DATA_LIVE_ANNOUNCER_ATTR, refCountMap, observerStack, POINTER_DOWN_OUTSIDE_EVENT, FOCUS_OUTSIDE_EVENT, SCROLL_LOCK_IDENTIFIER, FORM_CONTROL_PROP_NAMES, FormControlContext, AS_COMPONENT_SYMBOL, RTL_SCRIPTS, RTL_LANGS, currentLocale, listeners, I18nContext, cache$1, Selection, SelectionManager, ListCollection, ListKeyboardDelegate, BUTTON_INPUT_TYPES, DomCollectionContext, DismissableLayerContext, PopperContext, _tmpl$$f, DEFAULT_SIZE, HALF_DEFAULT_SIZE, ROTATION_DEG, REVERSE_BASE_PLACEMENT, MenuContext, MenuRootContext, MenuItemContext, MenuGroupContext, MenuRadioGroupContext, SUB_CLOSE_KEYS, SELECTION_KEYS, SUB_OPEN_KEYS, index$f, RadioGroupContext, RadioGroupItemContext, _tmpl$$7, _tmpl$$6, index$9;
10783
10795
  var init_esm2 = __esm({
10784
- "../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js"() {
10796
+ "../../node_modules/.pnpm/@kobalte+core@0.11.2_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js"() {
10785
10797
  init_dist11();
10786
10798
  init_store();
10787
10799
  init_web();
@@ -11314,7 +11326,7 @@ var init_esm2 = __esm({
11314
11326
  DomCollectionContext = createContext();
11315
11327
  DismissableLayerContext = createContext();
11316
11328
  PopperContext = createContext();
11317
- _tmpl$$e = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
11329
+ _tmpl$$f = /* @__PURE__ */ template(`<svg display="block" viewBox="0 0 30 30"><g><path fill="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z"></path><path stroke="none" d="M23,27.8c1.1,1.2,3.4,2.2,5,2.2h2H0h2c1.7,0,3.9-1,5-2.2l6.6-7.2c0.7-0.8,2-0.8,2.7,0L23,27.8L23,27.8z">`);
11318
11330
  DEFAULT_SIZE = 30;
11319
11331
  HALF_DEFAULT_SIZE = DEFAULT_SIZE / 2;
11320
11332
  ROTATION_DEG = {
@@ -11720,7 +11732,7 @@ var init_esm2 = __esm({
11720
11732
  day: "\u65E5"
11721
11733
  }
11722
11734
  }, "en");
11723
- index$d = /* @__PURE__ */ Object.freeze({
11735
+ index$f = /* @__PURE__ */ Object.freeze({
11724
11736
  __proto__: null,
11725
11737
  Arrow: PopperArrow,
11726
11738
  CheckboxItem: MenuCheckboxItem,
@@ -11744,9 +11756,9 @@ var init_esm2 = __esm({
11744
11756
  });
11745
11757
  RadioGroupContext = createContext();
11746
11758
  RadioGroupItemContext = createContext();
11747
- _tmpl$$6 = /* @__PURE__ */ template(`<input type="radio">`);
11748
- _tmpl$$5 = /* @__PURE__ */ template(`<label>`);
11749
- index$7 = /* @__PURE__ */ Object.freeze({
11759
+ _tmpl$$7 = /* @__PURE__ */ template(`<input type="radio">`);
11760
+ _tmpl$$6 = /* @__PURE__ */ template(`<label>`);
11761
+ index$9 = /* @__PURE__ */ Object.freeze({
11750
11762
  __proto__: null,
11751
11763
  Description: FormControlDescription,
11752
11764
  ErrorMessage: FormControlErrorMessage,
@@ -12978,19 +12990,6 @@ var init_Explorer = __esm({
12978
12990
  }
12979
12991
  });
12980
12992
 
12981
- // src/fonts.ts
12982
- var loadFonts;
12983
- var init_fonts = __esm({
12984
- "src/fonts.ts"() {
12985
- loadFonts = () => {
12986
- const link = document.createElement("link");
12987
- link.href = "https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap";
12988
- link.rel = "stylesheet";
12989
- document.head.appendChild(link);
12990
- };
12991
- }
12992
- });
12993
-
12994
12993
  // src/Devtools.tsx
12995
12994
  var Devtools_exports = {};
12996
12995
  __export(Devtools_exports, {
@@ -13024,7 +13023,6 @@ var init_Devtools = __esm({
13024
13023
  init_icons();
13025
13024
  init_Explorer();
13026
13025
  init_Context();
13027
- init_fonts();
13028
13026
  _tmpl$24 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
13029
13027
  _tmpl$25 = /* @__PURE__ */ template(`<div>`);
13030
13028
  _tmpl$33 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools">`);
@@ -13098,7 +13096,6 @@ var init_Devtools = __esm({
13098
13096
  };
13099
13097
  Devtools_default = DevtoolsComponent;
13100
13098
  Devtools = (props) => {
13101
- loadFonts();
13102
13099
  const theme = useTheme();
13103
13100
  const styles = createMemo(() => {
13104
13101
  return theme() === "dark" ? darkStyles2 : lightStyles2;
@@ -13406,7 +13403,7 @@ var init_Devtools = __esm({
13406
13403
  _el$11.$$click = () => props.setLocalStore("open", "false");
13407
13404
  insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
13408
13405
  insert(_el$13, () => useQueryDevtoolsContext().version, null);
13409
- insert(_el$10, createComponent(index$7.Root, {
13406
+ insert(_el$10, createComponent(index$9.Root, {
13410
13407
  get ["class"]() {
13411
13408
  return clsx(styles().viewToggle);
13412
13409
  },
@@ -13419,28 +13416,28 @@ var init_Devtools = __esm({
13419
13416
  setSelectedMutationId(null);
13420
13417
  },
13421
13418
  get children() {
13422
- return [createComponent(index$7.Item, {
13419
+ return [createComponent(index$9.Item, {
13423
13420
  value: "queries",
13424
13421
  "class": "tsqd-radio-toggle",
13425
13422
  get children() {
13426
- return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13423
+ return [createComponent(index$9.ItemInput, {}), createComponent(index$9.ItemControl, {
13427
13424
  get children() {
13428
- return createComponent(index$7.ItemIndicator, {});
13425
+ return createComponent(index$9.ItemIndicator, {});
13429
13426
  }
13430
- }), createComponent(index$7.ItemLabel, {
13427
+ }), createComponent(index$9.ItemLabel, {
13431
13428
  title: "Toggle Queries View",
13432
13429
  children: "Queries"
13433
13430
  })];
13434
13431
  }
13435
- }), createComponent(index$7.Item, {
13432
+ }), createComponent(index$9.Item, {
13436
13433
  value: "mutations",
13437
13434
  "class": "tsqd-radio-toggle",
13438
13435
  get children() {
13439
- return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13436
+ return [createComponent(index$9.ItemInput, {}), createComponent(index$9.ItemControl, {
13440
13437
  get children() {
13441
- return createComponent(index$7.ItemIndicator, {});
13438
+ return createComponent(index$9.ItemIndicator, {});
13442
13439
  }
13443
- }), createComponent(index$7.ItemLabel, {
13440
+ }), createComponent(index$9.ItemLabel, {
13444
13441
  title: "Toggle Mutations View",
13445
13442
  children: "Mutations"
13446
13443
  })];
@@ -13555,20 +13552,20 @@ var init_Devtools = __esm({
13555
13552
  const _c$ = createMemo(() => !!offline());
13556
13553
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
13557
13554
  })());
13558
- insert(_el$25, createComponent(index$d.Root, {
13555
+ insert(_el$25, createComponent(index$f.Root, {
13559
13556
  gutter: 4,
13560
13557
  get children() {
13561
- return [createComponent(index$d.Trigger, {
13558
+ return [createComponent(index$f.Trigger, {
13562
13559
  get ["class"]() {
13563
13560
  return clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
13564
13561
  },
13565
13562
  get children() {
13566
13563
  return createComponent(Settings, {});
13567
13564
  }
13568
- }), createComponent(index$d.Portal, {
13565
+ }), createComponent(index$f.Portal, {
13569
13566
  ref: (el) => setComputedVariables(el),
13570
13567
  get children() {
13571
- return createComponent(index$d.Content, {
13568
+ return createComponent(index$f.Content, {
13572
13569
  get ["class"]() {
13573
13570
  return clsx(styles().settingsMenu, "tsqd-settings-menu");
13574
13571
  },
@@ -13577,27 +13574,27 @@ var init_Devtools = __esm({
13577
13574
  const _el$28 = _tmpl$73();
13578
13575
  createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13579
13576
  return _el$28;
13580
- })(), createComponent(index$d.Sub, {
13577
+ })(), createComponent(index$f.Sub, {
13581
13578
  overlap: true,
13582
13579
  gutter: 8,
13583
13580
  shift: -4,
13584
13581
  get children() {
13585
- return [createComponent(index$d.SubTrigger, {
13582
+ return [createComponent(index$f.SubTrigger, {
13586
13583
  get ["class"]() {
13587
13584
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
13588
13585
  },
13589
13586
  get children() {
13590
13587
  return [_tmpl$83(), createComponent(ChevronDown, {})];
13591
13588
  }
13592
- }), createComponent(index$d.Portal, {
13589
+ }), createComponent(index$f.Portal, {
13593
13590
  ref: (el) => setComputedVariables(el),
13594
13591
  get children() {
13595
- return createComponent(index$d.SubContent, {
13592
+ return createComponent(index$f.SubContent, {
13596
13593
  get ["class"]() {
13597
13594
  return clsx(styles().settingsMenu, "tsqd-settings-submenu");
13598
13595
  },
13599
13596
  get children() {
13600
- return [createComponent(index$d.Item, {
13597
+ return [createComponent(index$f.Item, {
13601
13598
  onSelect: () => {
13602
13599
  setDevtoolsPosition("top");
13603
13600
  },
@@ -13608,7 +13605,7 @@ var init_Devtools = __esm({
13608
13605
  get children() {
13609
13606
  return [_tmpl$93(), createComponent(ArrowUp, {})];
13610
13607
  }
13611
- }), createComponent(index$d.Item, {
13608
+ }), createComponent(index$f.Item, {
13612
13609
  onSelect: () => {
13613
13610
  setDevtoolsPosition("bottom");
13614
13611
  },
@@ -13619,7 +13616,7 @@ var init_Devtools = __esm({
13619
13616
  get children() {
13620
13617
  return [_tmpl$103(), createComponent(ArrowDown, {})];
13621
13618
  }
13622
- }), createComponent(index$d.Item, {
13619
+ }), createComponent(index$f.Item, {
13623
13620
  onSelect: () => {
13624
13621
  setDevtoolsPosition("left");
13625
13622
  },
@@ -13630,7 +13627,7 @@ var init_Devtools = __esm({
13630
13627
  get children() {
13631
13628
  return [_tmpl$113(), createComponent(ArrowLeft, {})];
13632
13629
  }
13633
- }), createComponent(index$d.Item, {
13630
+ }), createComponent(index$f.Item, {
13634
13631
  onSelect: () => {
13635
13632
  setDevtoolsPosition("right");
13636
13633
  },
@@ -13647,27 +13644,27 @@ var init_Devtools = __esm({
13647
13644
  }
13648
13645
  })];
13649
13646
  }
13650
- }), createComponent(index$d.Sub, {
13647
+ }), createComponent(index$f.Sub, {
13651
13648
  overlap: true,
13652
13649
  gutter: 8,
13653
13650
  shift: -4,
13654
13651
  get children() {
13655
- return [createComponent(index$d.SubTrigger, {
13652
+ return [createComponent(index$f.SubTrigger, {
13656
13653
  get ["class"]() {
13657
13654
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
13658
13655
  },
13659
13656
  get children() {
13660
13657
  return [_tmpl$132(), createComponent(ChevronDown, {})];
13661
13658
  }
13662
- }), createComponent(index$d.Portal, {
13659
+ }), createComponent(index$f.Portal, {
13663
13660
  ref: (el) => setComputedVariables(el),
13664
13661
  get children() {
13665
- return createComponent(index$d.SubContent, {
13662
+ return createComponent(index$f.SubContent, {
13666
13663
  get ["class"]() {
13667
13664
  return clsx(styles().settingsMenu, "tsqd-settings-submenu");
13668
13665
  },
13669
13666
  get children() {
13670
- return [createComponent(index$d.Item, {
13667
+ return [createComponent(index$f.Item, {
13671
13668
  onSelect: () => {
13672
13669
  props.setLocalStore("theme_preference", "light");
13673
13670
  },
@@ -13678,7 +13675,7 @@ var init_Devtools = __esm({
13678
13675
  get children() {
13679
13676
  return [_tmpl$142(), createComponent(Sun, {})];
13680
13677
  }
13681
- }), createComponent(index$d.Item, {
13678
+ }), createComponent(index$f.Item, {
13682
13679
  onSelect: () => {
13683
13680
  props.setLocalStore("theme_preference", "dark");
13684
13681
  },
@@ -13689,7 +13686,7 @@ var init_Devtools = __esm({
13689
13686
  get children() {
13690
13687
  return [_tmpl$152(), createComponent(Moon, {})];
13691
13688
  }
13692
- }), createComponent(index$d.Item, {
13689
+ }), createComponent(index$f.Item, {
13693
13690
  onSelect: () => {
13694
13691
  props.setLocalStore("theme_preference", "system");
13695
13692
  },
@@ -16238,6 +16235,13 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
16238
16235
  * https://github.com/ariakit/ariakit/blob/84e97943ad637a582c01c9b56d880cd95f595737/packages/ariakit/src/hovercard/__utils/polygon.ts
16239
16236
  * https://github.com/ariakit/ariakit/blob/f2a96973de523d67e41eec983263936c489ef3e2/packages/ariakit/src/hovercard/__utils/debug-polygon.ts
16240
16237
  *)
16238
+ (*!
16239
+ * Portions of this file are based on code from react-spectrum.
16240
+ * Apache License Version 2.0, Copyright 2020 Adobe.
16241
+ *
16242
+ * Credits to the React Spectrum team:
16243
+ * https://github.com/adobe/react-spectrum/blob/1ddcde7b4fef9af7f08e11bb78d71fe60bbcc64b/packages/@react-stately/slider/src/useSliderState.ts
16244
+ *)
16241
16245
  (*!
16242
16246
  * Portions of this file are based on code from react-spectrum.
16243
16247
  * Apache License Version 2.0, Copyright 2020 Adobe.