@tanstack/query-devtools 5.14.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/index.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() {
@@ -2660,7 +2660,7 @@ var init_transformer = __esm({
2660
2660
  }
2661
2661
  });
2662
2662
 
2663
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
2663
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/accessDeep.js
2664
2664
  function validatePath(path) {
2665
2665
  if (includes(path, "__proto__")) {
2666
2666
  throw new Error("__proto__ is not allowed as a property");
@@ -2674,7 +2674,7 @@ function validatePath(path) {
2674
2674
  }
2675
2675
  var getNthKey, getDeep, setDeep;
2676
2676
  var init_accessDeep = __esm({
2677
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js"() {
2677
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/accessDeep.js"() {
2678
2678
  init_is();
2679
2679
  init_util();
2680
2680
  getNthKey = function(value, n2) {
@@ -2781,7 +2781,7 @@ var init_accessDeep = __esm({
2781
2781
  }
2782
2782
  });
2783
2783
 
2784
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
2784
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/plainer.js
2785
2785
  function traverse(tree, walker2, origin) {
2786
2786
  if (origin === void 0) {
2787
2787
  origin = [];
@@ -2843,22 +2843,25 @@ function addIdentity(object, path, identities) {
2843
2843
  identities.set(object, [path]);
2844
2844
  }
2845
2845
  }
2846
- function generateReferentialEqualityAnnotations(identitites) {
2846
+ function generateReferentialEqualityAnnotations(identitites, dedupe) {
2847
2847
  var result = {};
2848
2848
  var rootEqualityPaths = void 0;
2849
2849
  identitites.forEach(function(paths) {
2850
2850
  if (paths.length <= 1) {
2851
2851
  return;
2852
2852
  }
2853
- var _a = __read3(paths.map(function(path) {
2854
- return path.map(String);
2855
- }).sort(function(a2, b2) {
2856
- return a2.length - b2.length;
2857
- })), shortestPath = _a[0], identicalPaths = _a.slice(1);
2858
- if (shortestPath.length === 0) {
2853
+ if (!dedupe) {
2854
+ paths = paths.map(function(path) {
2855
+ return path.map(String);
2856
+ }).sort(function(a2, b2) {
2857
+ return a2.length - b2.length;
2858
+ });
2859
+ }
2860
+ var _a = __read3(paths), representativePath = _a[0], identicalPaths = _a.slice(1);
2861
+ if (representativePath.length === 0) {
2859
2862
  rootEqualityPaths = identicalPaths.map(stringifyPath);
2860
2863
  } else {
2861
- result[stringifyPath(shortestPath)] = identicalPaths.map(stringifyPath);
2864
+ result[stringifyPath(representativePath)] = identicalPaths.map(stringifyPath);
2862
2865
  }
2863
2866
  });
2864
2867
  if (rootEqualityPaths) {
@@ -2873,7 +2876,7 @@ function generateReferentialEqualityAnnotations(identitites) {
2873
2876
  }
2874
2877
  var __read3, __spreadArray2, isDeep, walker;
2875
2878
  var init_plainer = __esm({
2876
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js"() {
2879
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/plainer.js"() {
2877
2880
  init_is();
2878
2881
  init_pathstringifier();
2879
2882
  init_transformer();
@@ -2909,7 +2912,7 @@ var init_plainer = __esm({
2909
2912
  isDeep = function(object, superJson) {
2910
2913
  return isPlainObject(object) || isArray(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
2911
2914
  };
2912
- walker = function(object, identities, superJson, path, objectsInThisPath) {
2915
+ walker = function(object, identities, superJson, dedupe, path, objectsInThisPath, seenObjects) {
2913
2916
  var _a;
2914
2917
  if (path === void 0) {
2915
2918
  path = [];
@@ -2917,21 +2920,31 @@ var init_plainer = __esm({
2917
2920
  if (objectsInThisPath === void 0) {
2918
2921
  objectsInThisPath = [];
2919
2922
  }
2920
- if (!isPrimitive(object)) {
2923
+ if (seenObjects === void 0) {
2924
+ seenObjects = /* @__PURE__ */ new Map();
2925
+ }
2926
+ var primitive = isPrimitive(object);
2927
+ if (!primitive) {
2921
2928
  addIdentity(object, path, identities);
2929
+ var seen = seenObjects.get(object);
2930
+ if (seen) {
2931
+ return dedupe ? {
2932
+ transformedValue: null
2933
+ } : seen;
2934
+ }
2922
2935
  }
2923
2936
  if (!isDeep(object, superJson)) {
2924
2937
  var transformed_1 = transformValue(object, superJson);
2925
- if (transformed_1) {
2926
- return {
2927
- transformedValue: transformed_1.value,
2928
- annotations: [transformed_1.type]
2929
- };
2930
- } else {
2931
- return {
2932
- transformedValue: object
2933
- };
2938
+ var result_1 = transformed_1 ? {
2939
+ transformedValue: transformed_1.value,
2940
+ annotations: [transformed_1.type]
2941
+ } : {
2942
+ transformedValue: object
2943
+ };
2944
+ if (!primitive) {
2945
+ seenObjects.set(object, result_1);
2934
2946
  }
2947
+ return result_1;
2935
2948
  }
2936
2949
  if (includes(objectsInThisPath, object)) {
2937
2950
  return {
@@ -2940,13 +2953,10 @@ var init_plainer = __esm({
2940
2953
  }
2941
2954
  var transformationResult = transformValue(object, superJson);
2942
2955
  var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
2943
- if (!isPrimitive(object)) {
2944
- objectsInThisPath = __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]);
2945
- }
2946
2956
  var transformedValue = isArray(transformed) ? [] : {};
2947
2957
  var innerAnnotations = {};
2948
2958
  forEach(transformed, function(value, index) {
2949
- var recursiveResult = walker(value, identities, superJson, __spreadArray2(__spreadArray2([], __read3(path)), [index]), objectsInThisPath);
2959
+ var recursiveResult = walker(value, identities, superJson, dedupe, __spreadArray2(__spreadArray2([], __read3(path)), [index]), __spreadArray2(__spreadArray2([], __read3(objectsInThisPath)), [object]), seenObjects);
2950
2960
  transformedValue[index] = recursiveResult.transformedValue;
2951
2961
  if (isArray(recursiveResult.annotations)) {
2952
2962
  innerAnnotations[index] = recursiveResult.annotations;
@@ -2956,17 +2966,17 @@ var init_plainer = __esm({
2956
2966
  });
2957
2967
  }
2958
2968
  });
2959
- if (isEmptyObject(innerAnnotations)) {
2960
- return {
2961
- transformedValue,
2962
- annotations: !!transformationResult ? [transformationResult.type] : void 0
2963
- };
2964
- } else {
2965
- return {
2966
- transformedValue,
2967
- annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
2968
- };
2969
+ var result = isEmptyObject(innerAnnotations) ? {
2970
+ transformedValue,
2971
+ annotations: !!transformationResult ? [transformationResult.type] : void 0
2972
+ } : {
2973
+ transformedValue,
2974
+ annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
2975
+ };
2976
+ if (!primitive) {
2977
+ seenObjects.set(object, result);
2969
2978
  }
2979
+ return result;
2970
2980
  };
2971
2981
  }
2972
2982
  });
@@ -3028,10 +3038,10 @@ var init_dist2 = __esm({
3028
3038
  }
3029
3039
  });
3030
3040
 
3031
- // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
3041
+ // ../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/index.js
3032
3042
  var __assign2, __read4, __spreadArray3, SuperJSON, serialize, stringify;
3033
3043
  var init_esm = __esm({
3034
- "../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js"() {
3044
+ "../../node_modules/.pnpm/superjson@1.13.3/node_modules/superjson/dist/esm/index.js"() {
3035
3045
  init_class_registry();
3036
3046
  init_registry();
3037
3047
  init_custom_transformer_registry();
@@ -3077,25 +3087,27 @@ var init_esm = __esm({
3077
3087
  };
3078
3088
  SuperJSON = /** @class */
3079
3089
  function() {
3080
- function SuperJSON2() {
3090
+ function SuperJSON2(_a) {
3091
+ var _b = _a === void 0 ? {} : _a, _c = _b.dedupe, dedupe = _c === void 0 ? false : _c;
3081
3092
  this.classRegistry = new ClassRegistry();
3082
3093
  this.symbolRegistry = new Registry(function(s2) {
3083
- var _a;
3084
- return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
3094
+ var _a2;
3095
+ return (_a2 = s2.description) !== null && _a2 !== void 0 ? _a2 : "";
3085
3096
  });
3086
3097
  this.customTransformerRegistry = new CustomTransformerRegistry();
3087
3098
  this.allowedErrorProps = [];
3099
+ this.dedupe = dedupe;
3088
3100
  }
3089
3101
  SuperJSON2.prototype.serialize = function(object) {
3090
3102
  var identities = /* @__PURE__ */ new Map();
3091
- var output = walker(object, identities, this);
3103
+ var output = walker(object, identities, this, this.dedupe);
3092
3104
  var res = {
3093
3105
  json: output.transformedValue
3094
3106
  };
3095
3107
  if (output.annotations) {
3096
3108
  res.meta = __assign2(__assign2({}, res.meta), { values: output.annotations });
3097
3109
  }
3098
- var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
3110
+ var equalityAnnotations = generateReferentialEqualityAnnotations(identities, this.dedupe);
3099
3111
  if (equalityAnnotations) {
3100
3112
  res.meta = __assign2(__assign2({}, res.meta), { referentialEqualities: equalityAnnotations });
3101
3113
  }
@@ -4206,37 +4218,37 @@ var init_dist4 = __esm({
4206
4218
  }
4207
4219
  });
4208
4220
 
4209
- // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
4221
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
4210
4222
  function createClassnames(props) {
4211
4223
  return createMemo(() => {
4212
4224
  const name = props.name || "s";
4213
4225
  return {
4214
- enterActiveClasses: (props.enterActiveClass || name + "-enter-active").split(" "),
4215
- enterClasses: (props.enterClass || name + "-enter").split(" "),
4216
- enterToClasses: (props.enterToClass || name + "-enter-to").split(" "),
4217
- exitActiveClasses: (props.exitActiveClass || name + "-exit-active").split(" "),
4218
- exitClasses: (props.exitClass || name + "-exit").split(" "),
4219
- exitToClasses: (props.exitToClass || name + "-exit-to").split(" "),
4220
- moveClasses: (props.moveClass || name + "-move").split(" ")
4226
+ enterActive: (props.enterActiveClass || name + "-enter-active").split(" "),
4227
+ enter: (props.enterClass || name + "-enter").split(" "),
4228
+ enterTo: (props.enterToClass || name + "-enter-to").split(" "),
4229
+ exitActive: (props.exitActiveClass || name + "-exit-active").split(" "),
4230
+ exit: (props.exitClass || name + "-exit").split(" "),
4231
+ exitTo: (props.exitToClass || name + "-exit-to").split(" "),
4232
+ move: (props.moveClass || name + "-move").split(" ")
4221
4233
  };
4222
4234
  });
4223
4235
  }
4224
4236
  function nextFrame(fn) {
4225
4237
  requestAnimationFrame(() => requestAnimationFrame(fn));
4226
4238
  }
4227
- function enterTransition(classnames, events, el, done) {
4228
- const { enterClasses, enterActiveClasses, enterToClasses } = classnames, { onBeforeEnter, onEnter, onAfterEnter } = events;
4239
+ function enterTransition(classes, events, el, done) {
4240
+ const { onBeforeEnter, onEnter, onAfterEnter } = events;
4229
4241
  onBeforeEnter?.(el);
4230
- el.classList.add(...enterClasses);
4231
- el.classList.add(...enterActiveClasses);
4242
+ el.classList.add(...classes.enter);
4243
+ el.classList.add(...classes.enterActive);
4232
4244
  queueMicrotask(() => {
4233
4245
  if (!el.parentNode)
4234
4246
  return done?.();
4235
4247
  onEnter?.(el, () => endTransition());
4236
4248
  });
4237
4249
  nextFrame(() => {
4238
- el.classList.remove(...enterClasses);
4239
- el.classList.add(...enterToClasses);
4250
+ el.classList.remove(...classes.enter);
4251
+ el.classList.add(...classes.enterTo);
4240
4252
  if (!onEnter || onEnter.length < 2) {
4241
4253
  el.addEventListener("transitionend", endTransition);
4242
4254
  el.addEventListener("animationend", endTransition);
@@ -4247,23 +4259,23 @@ function enterTransition(classnames, events, el, done) {
4247
4259
  done?.();
4248
4260
  el.removeEventListener("transitionend", endTransition);
4249
4261
  el.removeEventListener("animationend", endTransition);
4250
- el.classList.remove(...enterActiveClasses);
4251
- el.classList.remove(...enterToClasses);
4262
+ el.classList.remove(...classes.enterActive);
4263
+ el.classList.remove(...classes.enterTo);
4252
4264
  onAfterEnter?.(el);
4253
4265
  }
4254
4266
  }
4255
4267
  }
4256
- function exitTransition(classnames, events, el, done) {
4257
- const { exitClasses, exitActiveClasses, exitToClasses } = classnames, { onBeforeExit, onExit, onAfterExit } = events;
4268
+ function exitTransition(classes, events, el, done) {
4269
+ const { onBeforeExit, onExit, onAfterExit } = events;
4258
4270
  if (!el.parentNode)
4259
4271
  return done?.();
4260
4272
  onBeforeExit?.(el);
4261
- el.classList.add(...exitClasses);
4262
- el.classList.add(...exitActiveClasses);
4273
+ el.classList.add(...classes.exit);
4274
+ el.classList.add(...classes.exitActive);
4263
4275
  onExit?.(el, () => endTransition());
4264
4276
  nextFrame(() => {
4265
- el.classList.remove(...exitClasses);
4266
- el.classList.add(...exitToClasses);
4277
+ el.classList.remove(...classes.exit);
4278
+ el.classList.add(...classes.exitTo);
4267
4279
  if (!onExit || onExit.length < 2) {
4268
4280
  el.addEventListener("transitionend", endTransition);
4269
4281
  el.addEventListener("animationend", endTransition);
@@ -4274,15 +4286,15 @@ function exitTransition(classnames, events, el, done) {
4274
4286
  done?.();
4275
4287
  el.removeEventListener("transitionend", endTransition);
4276
4288
  el.removeEventListener("animationend", endTransition);
4277
- el.classList.remove(...exitActiveClasses);
4278
- el.classList.remove(...exitToClasses);
4289
+ el.classList.remove(...classes.exitActive);
4290
+ el.classList.remove(...classes.exitTo);
4279
4291
  onAfterExit?.(el);
4280
4292
  }
4281
4293
  }
4282
4294
  }
4283
4295
  var TransitionGroup;
4284
4296
  var init_dist5 = __esm({
4285
- "../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js"() {
4297
+ "../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js"() {
4286
4298
  init_solid();
4287
4299
  init_dist3();
4288
4300
  init_dist4();
@@ -4319,10 +4331,10 @@ var init_dist5 = __esm({
4319
4331
  let endTransition2 = function(e2) {
4320
4332
  if (e2.target === el || /transform$/.test(e2.propertyName)) {
4321
4333
  el.removeEventListener("transitionend", endTransition2);
4322
- el.classList.remove(...classes.moveClasses);
4334
+ el.classList.remove(...classes.move);
4323
4335
  }
4324
4336
  };
4325
- el.classList.add(...classes.moveClasses);
4337
+ el.classList.add(...classes.move);
4326
4338
  el.style.transform = el.style.transitionDuration = "";
4327
4339
  el.addEventListener("transitionend", endTransition2);
4328
4340
  }
@@ -4693,7 +4705,7 @@ var init_dist8 = __esm({
4693
4705
  }
4694
4706
  });
4695
4707
 
4696
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
4708
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.22_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
4697
4709
  function makeResizeObserver(callback, options) {
4698
4710
  if (isServer) {
4699
4711
  return { observe: noop2, unobserve: noop2 };
@@ -4724,7 +4736,7 @@ function createResizeObserver(targets, onResize, options) {
4724
4736
  }, []);
4725
4737
  }
4726
4738
  var init_dist9 = __esm({
4727
- "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4739
+ "../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.22_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js"() {
4728
4740
  init_index();
4729
4741
  init_solid();
4730
4742
  init_web();
@@ -9088,7 +9100,7 @@ function PopperArrow(props) {
9088
9100
  }
9089
9101
  }, others, {
9090
9102
  get children() {
9091
- const _el$ = _tmpl$$e(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
9103
+ const _el$ = _tmpl$$f(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild;
9092
9104
  _el$3.nextSibling;
9093
9105
  createRenderEffect(() => setAttribute(_el$2, "transform", rotate()));
9094
9106
  return _el$;
@@ -10633,7 +10645,7 @@ function RadioGroupItemInput(props) {
10633
10645
  };
10634
10646
  createEffect(() => onCleanup(radioContext.registerInput(others.id)));
10635
10647
  return (() => {
10636
- const _el$ = _tmpl$$6();
10648
+ const _el$ = _tmpl$$7();
10637
10649
  _el$.addEventListener("blur", onBlur);
10638
10650
  _el$.addEventListener("focus", onFocus);
10639
10651
  _el$.addEventListener("change", onChange);
@@ -10681,7 +10693,7 @@ function RadioGroupItemLabel(props) {
10681
10693
  }, props);
10682
10694
  createEffect(() => onCleanup(context.registerLabel(props.id)));
10683
10695
  return (() => {
10684
- const _el$ = _tmpl$$5();
10696
+ const _el$ = _tmpl$$6();
10685
10697
  spread(_el$, mergeProps({
10686
10698
  get ["for"]() {
10687
10699
  return context.inputId();
@@ -10778,9 +10790,9 @@ function RadioGroupRoot(props) {
10778
10790
  }
10779
10791
  });
10780
10792
  }
10781
- 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;
10793
+ 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;
10782
10794
  var init_esm2 = __esm({
10783
- "../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js"() {
10795
+ "../../node_modules/.pnpm/@kobalte+core@0.11.2_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js"() {
10784
10796
  init_dist11();
10785
10797
  init_store();
10786
10798
  init_web();
@@ -11313,7 +11325,7 @@ var init_esm2 = __esm({
11313
11325
  DomCollectionContext = createContext();
11314
11326
  DismissableLayerContext = createContext();
11315
11327
  PopperContext = createContext();
11316
- _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">`);
11328
+ _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">`);
11317
11329
  DEFAULT_SIZE = 30;
11318
11330
  HALF_DEFAULT_SIZE = DEFAULT_SIZE / 2;
11319
11331
  ROTATION_DEG = {
@@ -11719,7 +11731,7 @@ var init_esm2 = __esm({
11719
11731
  day: "\u65E5"
11720
11732
  }
11721
11733
  }, "en");
11722
- index$d = /* @__PURE__ */ Object.freeze({
11734
+ index$f = /* @__PURE__ */ Object.freeze({
11723
11735
  __proto__: null,
11724
11736
  Arrow: PopperArrow,
11725
11737
  CheckboxItem: MenuCheckboxItem,
@@ -11743,9 +11755,9 @@ var init_esm2 = __esm({
11743
11755
  });
11744
11756
  RadioGroupContext = createContext();
11745
11757
  RadioGroupItemContext = createContext();
11746
- _tmpl$$6 = /* @__PURE__ */ template(`<input type="radio">`);
11747
- _tmpl$$5 = /* @__PURE__ */ template(`<label>`);
11748
- index$7 = /* @__PURE__ */ Object.freeze({
11758
+ _tmpl$$7 = /* @__PURE__ */ template(`<input type="radio">`);
11759
+ _tmpl$$6 = /* @__PURE__ */ template(`<label>`);
11760
+ index$9 = /* @__PURE__ */ Object.freeze({
11749
11761
  __proto__: null,
11750
11762
  Description: FormControlDescription,
11751
11763
  ErrorMessage: FormControlErrorMessage,
@@ -13389,7 +13401,7 @@ var init_Devtools = __esm({
13389
13401
  _el$11.$$click = () => props.setLocalStore("open", "false");
13390
13402
  insert(_el$13, () => useQueryDevtoolsContext().queryFlavor, _el$14);
13391
13403
  insert(_el$13, () => useQueryDevtoolsContext().version, null);
13392
- insert(_el$10, createComponent(index$7.Root, {
13404
+ insert(_el$10, createComponent(index$9.Root, {
13393
13405
  get ["class"]() {
13394
13406
  return clsx(styles().viewToggle);
13395
13407
  },
@@ -13402,28 +13414,28 @@ var init_Devtools = __esm({
13402
13414
  setSelectedMutationId(null);
13403
13415
  },
13404
13416
  get children() {
13405
- return [createComponent(index$7.Item, {
13417
+ return [createComponent(index$9.Item, {
13406
13418
  value: "queries",
13407
13419
  "class": "tsqd-radio-toggle",
13408
13420
  get children() {
13409
- return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13421
+ return [createComponent(index$9.ItemInput, {}), createComponent(index$9.ItemControl, {
13410
13422
  get children() {
13411
- return createComponent(index$7.ItemIndicator, {});
13423
+ return createComponent(index$9.ItemIndicator, {});
13412
13424
  }
13413
- }), createComponent(index$7.ItemLabel, {
13425
+ }), createComponent(index$9.ItemLabel, {
13414
13426
  title: "Toggle Queries View",
13415
13427
  children: "Queries"
13416
13428
  })];
13417
13429
  }
13418
- }), createComponent(index$7.Item, {
13430
+ }), createComponent(index$9.Item, {
13419
13431
  value: "mutations",
13420
13432
  "class": "tsqd-radio-toggle",
13421
13433
  get children() {
13422
- return [createComponent(index$7.ItemInput, {}), createComponent(index$7.ItemControl, {
13434
+ return [createComponent(index$9.ItemInput, {}), createComponent(index$9.ItemControl, {
13423
13435
  get children() {
13424
- return createComponent(index$7.ItemIndicator, {});
13436
+ return createComponent(index$9.ItemIndicator, {});
13425
13437
  }
13426
- }), createComponent(index$7.ItemLabel, {
13438
+ }), createComponent(index$9.ItemLabel, {
13427
13439
  title: "Toggle Mutations View",
13428
13440
  children: "Mutations"
13429
13441
  })];
@@ -13538,20 +13550,20 @@ var init_Devtools = __esm({
13538
13550
  const _c$ = createMemo(() => !!offline());
13539
13551
  return () => _c$() ? createComponent(Offline, {}) : createComponent(Wifi, {});
13540
13552
  })());
13541
- insert(_el$25, createComponent(index$d.Root, {
13553
+ insert(_el$25, createComponent(index$f.Root, {
13542
13554
  gutter: 4,
13543
13555
  get children() {
13544
- return [createComponent(index$d.Trigger, {
13556
+ return [createComponent(index$f.Trigger, {
13545
13557
  get ["class"]() {
13546
13558
  return clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
13547
13559
  },
13548
13560
  get children() {
13549
13561
  return createComponent(Settings, {});
13550
13562
  }
13551
- }), createComponent(index$d.Portal, {
13563
+ }), createComponent(index$f.Portal, {
13552
13564
  ref: (el) => setComputedVariables(el),
13553
13565
  get children() {
13554
- return createComponent(index$d.Content, {
13566
+ return createComponent(index$f.Content, {
13555
13567
  get ["class"]() {
13556
13568
  return clsx(styles().settingsMenu, "tsqd-settings-menu");
13557
13569
  },
@@ -13560,27 +13572,27 @@ var init_Devtools = __esm({
13560
13572
  const _el$28 = _tmpl$73();
13561
13573
  createRenderEffect(() => className(_el$28, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
13562
13574
  return _el$28;
13563
- })(), createComponent(index$d.Sub, {
13575
+ })(), createComponent(index$f.Sub, {
13564
13576
  overlap: true,
13565
13577
  gutter: 8,
13566
13578
  shift: -4,
13567
13579
  get children() {
13568
- return [createComponent(index$d.SubTrigger, {
13580
+ return [createComponent(index$f.SubTrigger, {
13569
13581
  get ["class"]() {
13570
13582
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
13571
13583
  },
13572
13584
  get children() {
13573
13585
  return [_tmpl$83(), createComponent(ChevronDown, {})];
13574
13586
  }
13575
- }), createComponent(index$d.Portal, {
13587
+ }), createComponent(index$f.Portal, {
13576
13588
  ref: (el) => setComputedVariables(el),
13577
13589
  get children() {
13578
- return createComponent(index$d.SubContent, {
13590
+ return createComponent(index$f.SubContent, {
13579
13591
  get ["class"]() {
13580
13592
  return clsx(styles().settingsMenu, "tsqd-settings-submenu");
13581
13593
  },
13582
13594
  get children() {
13583
- return [createComponent(index$d.Item, {
13595
+ return [createComponent(index$f.Item, {
13584
13596
  onSelect: () => {
13585
13597
  setDevtoolsPosition("top");
13586
13598
  },
@@ -13591,7 +13603,7 @@ var init_Devtools = __esm({
13591
13603
  get children() {
13592
13604
  return [_tmpl$93(), createComponent(ArrowUp, {})];
13593
13605
  }
13594
- }), createComponent(index$d.Item, {
13606
+ }), createComponent(index$f.Item, {
13595
13607
  onSelect: () => {
13596
13608
  setDevtoolsPosition("bottom");
13597
13609
  },
@@ -13602,7 +13614,7 @@ var init_Devtools = __esm({
13602
13614
  get children() {
13603
13615
  return [_tmpl$103(), createComponent(ArrowDown, {})];
13604
13616
  }
13605
- }), createComponent(index$d.Item, {
13617
+ }), createComponent(index$f.Item, {
13606
13618
  onSelect: () => {
13607
13619
  setDevtoolsPosition("left");
13608
13620
  },
@@ -13613,7 +13625,7 @@ var init_Devtools = __esm({
13613
13625
  get children() {
13614
13626
  return [_tmpl$113(), createComponent(ArrowLeft, {})];
13615
13627
  }
13616
- }), createComponent(index$d.Item, {
13628
+ }), createComponent(index$f.Item, {
13617
13629
  onSelect: () => {
13618
13630
  setDevtoolsPosition("right");
13619
13631
  },
@@ -13630,27 +13642,27 @@ var init_Devtools = __esm({
13630
13642
  }
13631
13643
  })];
13632
13644
  }
13633
- }), createComponent(index$d.Sub, {
13645
+ }), createComponent(index$f.Sub, {
13634
13646
  overlap: true,
13635
13647
  gutter: 8,
13636
13648
  shift: -4,
13637
13649
  get children() {
13638
- return [createComponent(index$d.SubTrigger, {
13650
+ return [createComponent(index$f.SubTrigger, {
13639
13651
  get ["class"]() {
13640
13652
  return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
13641
13653
  },
13642
13654
  get children() {
13643
13655
  return [_tmpl$132(), createComponent(ChevronDown, {})];
13644
13656
  }
13645
- }), createComponent(index$d.Portal, {
13657
+ }), createComponent(index$f.Portal, {
13646
13658
  ref: (el) => setComputedVariables(el),
13647
13659
  get children() {
13648
- return createComponent(index$d.SubContent, {
13660
+ return createComponent(index$f.SubContent, {
13649
13661
  get ["class"]() {
13650
13662
  return clsx(styles().settingsMenu, "tsqd-settings-submenu");
13651
13663
  },
13652
13664
  get children() {
13653
- return [createComponent(index$d.Item, {
13665
+ return [createComponent(index$f.Item, {
13654
13666
  onSelect: () => {
13655
13667
  props.setLocalStore("theme_preference", "light");
13656
13668
  },
@@ -13661,7 +13673,7 @@ var init_Devtools = __esm({
13661
13673
  get children() {
13662
13674
  return [_tmpl$142(), createComponent(Sun, {})];
13663
13675
  }
13664
- }), createComponent(index$d.Item, {
13676
+ }), createComponent(index$f.Item, {
13665
13677
  onSelect: () => {
13666
13678
  props.setLocalStore("theme_preference", "dark");
13667
13679
  },
@@ -13672,7 +13684,7 @@ var init_Devtools = __esm({
13672
13684
  get children() {
13673
13685
  return [_tmpl$152(), createComponent(Moon, {})];
13674
13686
  }
13675
- }), createComponent(index$d.Item, {
13687
+ }), createComponent(index$f.Item, {
13676
13688
  onSelect: () => {
13677
13689
  props.setLocalStore("theme_preference", "system");
13678
13690
  },
@@ -16221,6 +16233,13 @@ exports.TanstackQueryDevtools = class TanstackQueryDevtools {
16221
16233
  * https://github.com/ariakit/ariakit/blob/84e97943ad637a582c01c9b56d880cd95f595737/packages/ariakit/src/hovercard/__utils/polygon.ts
16222
16234
  * https://github.com/ariakit/ariakit/blob/f2a96973de523d67e41eec983263936c489ef3e2/packages/ariakit/src/hovercard/__utils/debug-polygon.ts
16223
16235
  *)
16236
+ (*!
16237
+ * Portions of this file are based on code from react-spectrum.
16238
+ * Apache License Version 2.0, Copyright 2020 Adobe.
16239
+ *
16240
+ * Credits to the React Spectrum team:
16241
+ * https://github.com/adobe/react-spectrum/blob/1ddcde7b4fef9af7f08e11bb78d71fe60bbcc64b/packages/@react-stately/slider/src/useSliderState.ts
16242
+ *)
16224
16243
  (*!
16225
16244
  * Portions of this file are based on code from react-spectrum.
16226
16245
  * Apache License Version 2.0, Copyright 2020 Adobe.