@tanstack/query-devtools 5.0.0-rc.9 → 5.0.3

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.
@@ -1,4 +1,4 @@
1
- import { createContext, delegateEvents, createSignal, createComponent, createMemo, createEffect, insert, Show, createRenderEffect, className, on, onMount, setAttribute, spread, mergeProps, For, onCleanup, isServer, $PROXY, $TRACK, getListener, batch, useContext, Index, template, use, untrack, useTransition, createRoot, splitProps, createUniqueId, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/L2WNRKEK.js';
1
+ import { createContext, delegateEvents, createSignal, createMemo, createComponent, createEffect, insert, Show, createRenderEffect, className, on, onMount, setAttribute, spread, mergeProps, For, onCleanup, isServer, $PROXY, $TRACK, getListener, batch, createUniqueId, useContext, Index, template, use, untrack, useTransition, createRoot, splitProps, Portal, addEventListener, Switch, Match, Dynamic, children, createComputed, getOwner, DEV } from '../chunk/Z53XT47W.js';
2
2
 
3
3
  // ../../node_modules/.pnpm/@tanstack+match-sorter-utils@8.8.4/node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
4
4
  var characterMap = {
@@ -675,7 +675,7 @@ function clsx() {
675
675
  return n2;
676
676
  }
677
677
 
678
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
678
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.3_solid-js@1.8.1/node_modules/@solid-primitives/transition-group/dist/index.js
679
679
  var noop = () => {
680
680
  };
681
681
  function createListTransition(source, options) {
@@ -743,9 +743,12 @@ function createListTransition(source, options) {
743
743
  );
744
744
  }
745
745
 
746
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
746
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.1_solid-js@1.8.1/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
747
747
  var isClient = !isServer;
748
748
  var isDev = isClient && !!DEV;
749
+ var noop2 = () => void 0;
750
+ var isNonNullable = (i2) => i2 != null;
751
+ var filterNonNullable = (arr) => arr.filter(isNonNullable);
749
752
  function chain(callbacks) {
750
753
  return (...args) => {
751
754
  for (const callback of callbacks)
@@ -766,8 +769,42 @@ function accessWith(valueOrFn, ...args) {
766
769
  return typeof valueOrFn === "function" ? valueOrFn(...args) : valueOrFn;
767
770
  }
768
771
  var tryOnCleanup = isDev ? (fn) => getOwner() ? onCleanup(fn) : fn : onCleanup;
772
+ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
773
+ const currLength = current.length;
774
+ const prevLength = prev.length;
775
+ let i2 = 0;
776
+ if (!prevLength) {
777
+ for (; i2 < currLength; i2++)
778
+ handleAdded(current[i2]);
779
+ return;
780
+ }
781
+ if (!currLength) {
782
+ for (; i2 < prevLength; i2++)
783
+ handleRemoved(prev[i2]);
784
+ return;
785
+ }
786
+ for (; i2 < prevLength; i2++) {
787
+ if (prev[i2] !== current[i2])
788
+ break;
789
+ }
790
+ let prevEl;
791
+ let currEl;
792
+ prev = prev.slice(i2);
793
+ current = current.slice(i2);
794
+ for (prevEl of prev) {
795
+ if (!current.includes(prevEl))
796
+ handleRemoved(prevEl);
797
+ }
798
+ for (currEl of current) {
799
+ if (!prev.includes(currEl))
800
+ handleAdded(currEl);
801
+ }
802
+ }
769
803
 
770
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.4_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
804
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.8.1/node_modules/@solid-primitives/refs/dist/index.js
805
+ function mergeRefs(...refs) {
806
+ return chain(refs);
807
+ }
771
808
  var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
772
809
  function getResolvedElements(value, predicate) {
773
810
  if (predicate(value))
@@ -797,7 +834,7 @@ function resolveElements(fn, predicate = defaultElementPredicate, serverPredicat
797
834
  return memo;
798
835
  }
799
836
 
800
- // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.7.8/node_modules/solid-transition-group/dist/index.js
837
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.2_solid-js@1.8.1/node_modules/solid-transition-group/dist/index.js
801
838
  function createClassnames(props) {
802
839
  return createMemo(() => {
803
840
  const name = props.name || "s";
@@ -919,7 +956,7 @@ var TransitionGroup = (props) => {
919
956
  });
920
957
  };
921
958
 
922
- // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
959
+ // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.8.1/node_modules/@solid-primitives/keyed/dist/index.js
923
960
  var FALLBACK = Symbol("fallback");
924
961
  function dispose(list) {
925
962
  for (const o2 of list)
@@ -1017,45 +1054,7 @@ function Key(props) {
1017
1054
  );
1018
1055
  }
1019
1056
 
1020
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
1021
- var noop3 = () => void 0;
1022
- var isNonNullable2 = (i2) => i2 != null;
1023
- var filterNonNullable2 = (arr) => arr.filter(isNonNullable2);
1024
- var access2 = (v) => typeof v === "function" && !v.length ? v() : v;
1025
- var asArray2 = (value) => Array.isArray(value) ? value : value ? [value] : [];
1026
- function handleDiffArray2(current, prev, handleAdded, handleRemoved) {
1027
- const currLength = current.length;
1028
- const prevLength = prev.length;
1029
- let i2 = 0;
1030
- if (!prevLength) {
1031
- for (; i2 < currLength; i2++)
1032
- handleAdded(current[i2]);
1033
- return;
1034
- }
1035
- if (!currLength) {
1036
- for (; i2 < prevLength; i2++)
1037
- handleRemoved(prev[i2]);
1038
- return;
1039
- }
1040
- for (; i2 < prevLength; i2++) {
1041
- if (prev[i2] !== current[i2])
1042
- break;
1043
- }
1044
- let prevEl;
1045
- let currEl;
1046
- prev = prev.slice(i2);
1047
- current = current.slice(i2);
1048
- for (prevEl of prev) {
1049
- if (!current.includes(prevEl))
1050
- handleRemoved(prevEl);
1051
- }
1052
- for (currEl of current) {
1053
- if (!prev.includes(currEl))
1054
- handleAdded(currEl);
1055
- }
1056
- }
1057
-
1058
- // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.7.8/node_modules/@solid-primitives/storage/dist/index.js
1057
+ // ../../node_modules/.pnpm/@solid-primitives+storage@1.3.11_solid-js@1.8.1/node_modules/@solid-primitives/storage/dist/index.js
1059
1058
  function createStorage(props) {
1060
1059
  const [error, setError] = createSignal();
1061
1060
  const handleError = props?.throw ? (err, fallback) => {
@@ -1274,10 +1273,30 @@ var cookieStorage = addClearMethod({
1274
1273
  }
1275
1274
  });
1276
1275
 
1277
- // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.7.8/node_modules/@solid-primitives/resize-observer/dist/index.js
1276
+ // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.8.1/node_modules/@solid-primitives/event-listener/dist/index.js
1277
+ function makeEventListener(target, type, handler, options) {
1278
+ target.addEventListener(type, handler, options);
1279
+ return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
1280
+ }
1281
+ function createEventListener(targets, type, handler, options) {
1282
+ if (isServer)
1283
+ return;
1284
+ const attachListeners = () => {
1285
+ asArray(access(targets)).forEach((el) => {
1286
+ if (el)
1287
+ asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
1288
+ });
1289
+ };
1290
+ if (typeof targets === "function")
1291
+ createEffect(attachListeners);
1292
+ else
1293
+ createRenderEffect(attachListeners);
1294
+ }
1295
+
1296
+ // ../../node_modules/.pnpm/@solid-primitives+resize-observer@2.0.18_solid-js@1.8.1/node_modules/@solid-primitives/resize-observer/dist/index.js
1278
1297
  function makeResizeObserver(callback, options) {
1279
1298
  if (isServer) {
1280
- return { observe: noop3, unobserve: noop3 };
1299
+ return { observe: noop2, unobserve: noop2 };
1281
1300
  }
1282
1301
  const observer = new ResizeObserver(callback);
1283
1302
  onCleanup(observer.disconnect.bind(observer));
@@ -1289,8 +1308,8 @@ function makeResizeObserver(callback, options) {
1289
1308
  function createResizeObserver(targets, onResize, options) {
1290
1309
  if (isServer)
1291
1310
  return;
1292
- const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries3) => {
1293
- for (const entry of entries3) {
1311
+ const previousMap = /* @__PURE__ */ new WeakMap(), { observe, unobserve } = makeResizeObserver((entries2) => {
1312
+ for (const entry of entries2) {
1294
1313
  const { contentRect, target } = entry, width = Math.round(contentRect.width), height = Math.round(contentRect.height), previous = previousMap.get(target);
1295
1314
  if (!previous || previous.width !== width || previous.height !== height) {
1296
1315
  onResize(contentRect, target, entry);
@@ -1299,34 +1318,14 @@ function createResizeObserver(targets, onResize, options) {
1299
1318
  }
1300
1319
  }, options);
1301
1320
  createEffect((prev) => {
1302
- const refs = filterNonNullable2(asArray2(access2(targets)));
1303
- handleDiffArray2(refs, prev, observe, unobserve);
1321
+ const refs = filterNonNullable(asArray(access(targets)));
1322
+ handleDiffArray(refs, prev, observe, unobserve);
1304
1323
  return refs;
1305
1324
  }, []);
1306
1325
  }
1307
1326
 
1308
- // ../../node_modules/.pnpm/@solid-primitives+event-listener@2.3.0_solid-js@1.7.8/node_modules/@solid-primitives/event-listener/dist/index.js
1309
- function makeEventListener(target, type, handler, options) {
1310
- target.addEventListener(type, handler, options);
1311
- return tryOnCleanup(target.removeEventListener.bind(target, type, handler, options));
1312
- }
1313
- function createEventListener(targets, type, handler, options) {
1314
- if (isServer)
1315
- return;
1316
- const attachListeners = () => {
1317
- asArray(access(targets)).forEach((el) => {
1318
- if (el)
1319
- asArray(access(type)).forEach((type2) => makeEventListener(el, type2, handler, options));
1320
- });
1321
- };
1322
- if (typeof targets === "function")
1323
- createEffect(attachListeners);
1324
- else
1325
- createRenderEffect(attachListeners);
1326
- }
1327
-
1328
- // ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.7.8/node_modules/@solid-primitives/props/dist/index.js
1329
- function trueFn3() {
1327
+ // ../../node_modules/.pnpm/@solid-primitives+props@3.1.8_solid-js@1.8.1/node_modules/@solid-primitives/props/dist/index.js
1328
+ function trueFn2() {
1330
1329
  return true;
1331
1330
  }
1332
1331
  var propTraps = {
@@ -1338,8 +1337,8 @@ var propTraps = {
1338
1337
  has(_, property) {
1339
1338
  return _.has(property);
1340
1339
  },
1341
- set: trueFn3,
1342
- deleteProperty: trueFn3,
1340
+ set: trueFn2,
1341
+ deleteProperty: trueFn2,
1343
1342
  getOwnPropertyDescriptor(_, property) {
1344
1343
  return {
1345
1344
  configurable: true,
@@ -1347,8 +1346,8 @@ var propTraps = {
1347
1346
  get() {
1348
1347
  return _.get(property);
1349
1348
  },
1350
- set: trueFn3,
1351
- deleteProperty: trueFn3
1349
+ set: trueFn2,
1350
+ deleteProperty: trueFn2
1352
1351
  };
1353
1352
  },
1354
1353
  ownKeys(_) {
@@ -1447,12 +1446,7 @@ function combineProps(...args) {
1447
1446
  );
1448
1447
  }
1449
1448
 
1450
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.5_solid-js@1.7.8/node_modules/@solid-primitives/refs/dist/index.js
1451
- function mergeRefs(...refs) {
1452
- return chain(refs);
1453
- }
1454
-
1455
- // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.7.8/node_modules/@kobalte/utils/dist/index.js
1449
+ // ../../node_modules/.pnpm/@kobalte+utils@0.9.0_solid-js@1.8.1/node_modules/@kobalte/utils/dist/index.js
1456
1450
  function addItemToArray(array, item, index = -1) {
1457
1451
  if (!(index in array)) {
1458
1452
  return [...array, item];
@@ -1722,7 +1716,7 @@ function getFocusableTreeWalker(root, opts, scope) {
1722
1716
  }
1723
1717
  return walker2;
1724
1718
  }
1725
- function noop4() {
1719
+ function noop3() {
1726
1720
  return;
1727
1721
  }
1728
1722
  function isPointInPolygon(point, polygon) {
@@ -1869,9 +1863,11 @@ var visuallyHiddenStyles = {
1869
1863
  "white-space": "nowrap"
1870
1864
  };
1871
1865
 
1872
- // ../../node_modules/.pnpm/solid-js@1.7.8/node_modules/solid-js/store/dist/store.js
1866
+ // ../../node_modules/.pnpm/solid-js@1.8.1/node_modules/solid-js/store/dist/store.js
1873
1867
  var $RAW = Symbol("store-raw");
1874
1868
  var $NODE = Symbol("store-node");
1869
+ var $HAS = Symbol("store-has");
1870
+ var $SELF = Symbol("store-self");
1875
1871
  function wrap$1(value) {
1876
1872
  let p2 = value[$PROXY];
1877
1873
  if (!p2) {
@@ -1879,9 +1875,9 @@ function wrap$1(value) {
1879
1875
  value: p2 = new Proxy(value, proxyTraps$1)
1880
1876
  });
1881
1877
  if (!Array.isArray(value)) {
1882
- const keys3 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
1883
- for (let i2 = 0, l2 = keys3.length; i2 < l2; i2++) {
1884
- const prop = keys3[i2];
1878
+ const keys2 = Object.keys(value), desc = Object.getOwnPropertyDescriptors(value);
1879
+ for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
1880
+ const prop = keys2[i2];
1885
1881
  if (desc[prop].get) {
1886
1882
  Object.defineProperty(value, prop, {
1887
1883
  enumerable: desc[prop].enumerable,
@@ -1918,9 +1914,9 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
1918
1914
  item = Object.assign({}, item);
1919
1915
  else
1920
1916
  set.add(item);
1921
- const keys3 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
1922
- for (let i2 = 0, l2 = keys3.length; i2 < l2; i2++) {
1923
- prop = keys3[i2];
1917
+ const keys2 = Object.keys(item), desc = Object.getOwnPropertyDescriptors(item);
1918
+ for (let i2 = 0, l2 = keys2.length; i2 < l2; i2++) {
1919
+ prop = keys2[i2];
1924
1920
  if (desc[prop].get)
1925
1921
  continue;
1926
1922
  v = item[prop];
@@ -1930,16 +1926,23 @@ function unwrap(item, set = /* @__PURE__ */ new Set()) {
1930
1926
  }
1931
1927
  return item;
1932
1928
  }
1933
- function getDataNodes(target) {
1934
- let nodes = target[$NODE];
1929
+ function getNodes(target, symbol) {
1930
+ let nodes = target[symbol];
1935
1931
  if (!nodes)
1936
- Object.defineProperty(target, $NODE, {
1932
+ Object.defineProperty(target, symbol, {
1937
1933
  value: nodes = /* @__PURE__ */ Object.create(null)
1938
1934
  });
1939
1935
  return nodes;
1940
1936
  }
1941
- function getDataNode(nodes, property, value) {
1942
- return nodes[property] || (nodes[property] = createDataNode(value));
1937
+ function getNode(nodes, property, value) {
1938
+ if (nodes[property])
1939
+ return nodes[property];
1940
+ const [s2, set] = createSignal(value, {
1941
+ equals: false,
1942
+ internal: true
1943
+ });
1944
+ s2.$ = set;
1945
+ return nodes[property] = s2;
1943
1946
  }
1944
1947
  function proxyDescriptor$1(target, property) {
1945
1948
  const desc = Reflect.getOwnPropertyDescriptor(target, property);
@@ -1951,23 +1954,12 @@ function proxyDescriptor$1(target, property) {
1951
1954
  return desc;
1952
1955
  }
1953
1956
  function trackSelf(target) {
1954
- if (getListener()) {
1955
- const nodes = getDataNodes(target);
1956
- (nodes._ || (nodes._ = createDataNode()))();
1957
- }
1957
+ getListener() && getNode(getNodes(target, $NODE), $SELF)();
1958
1958
  }
1959
1959
  function ownKeys(target) {
1960
1960
  trackSelf(target);
1961
1961
  return Reflect.ownKeys(target);
1962
1962
  }
1963
- function createDataNode(value) {
1964
- const [s2, set] = createSignal(value, {
1965
- equals: false,
1966
- internal: true
1967
- });
1968
- s2.$ = set;
1969
- return s2;
1970
- }
1971
1963
  var proxyTraps$1 = {
1972
1964
  get(target, property, receiver) {
1973
1965
  if (property === $RAW)
@@ -1978,22 +1970,22 @@ var proxyTraps$1 = {
1978
1970
  trackSelf(target);
1979
1971
  return receiver;
1980
1972
  }
1981
- const nodes = getDataNodes(target);
1973
+ const nodes = getNodes(target, $NODE);
1982
1974
  const tracked = nodes[property];
1983
1975
  let value = tracked ? tracked() : target[property];
1984
- if (property === $NODE || property === "__proto__")
1976
+ if (property === $NODE || property === $HAS || property === "__proto__")
1985
1977
  return value;
1986
1978
  if (!tracked) {
1987
1979
  const desc = Object.getOwnPropertyDescriptor(target, property);
1988
1980
  if (getListener() && (typeof value !== "function" || target.hasOwnProperty(property)) && !(desc && desc.get))
1989
- value = getDataNode(nodes, property, value)();
1981
+ value = getNode(nodes, property, value)();
1990
1982
  }
1991
1983
  return isWrappable(value) ? wrap$1(value) : value;
1992
1984
  },
1993
1985
  has(target, property) {
1994
- if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === "__proto__")
1986
+ if (property === $RAW || property === $PROXY || property === $TRACK || property === $NODE || property === $HAS || property === "__proto__")
1995
1987
  return true;
1996
- this.get(target, property, target);
1988
+ getListener() && getNode(getNodes(target, $HAS), property)();
1997
1989
  return property in target;
1998
1990
  },
1999
1991
  set() {
@@ -2009,24 +2001,29 @@ function setProperty(state2, property, value, deleting = false) {
2009
2001
  if (!deleting && state2[property] === value)
2010
2002
  return;
2011
2003
  const prev = state2[property], len = state2.length;
2012
- if (value === void 0)
2004
+ if (value === void 0) {
2013
2005
  delete state2[property];
2014
- else
2006
+ if (state2[$HAS] && state2[$HAS][property] && prev !== void 0)
2007
+ state2[$HAS][property].$();
2008
+ } else {
2015
2009
  state2[property] = value;
2016
- let nodes = getDataNodes(state2), node;
2017
- if (node = getDataNode(nodes, property, prev))
2010
+ if (state2[$HAS] && state2[$HAS][property] && prev === void 0)
2011
+ state2[$HAS][property].$();
2012
+ }
2013
+ let nodes = getNodes(state2, $NODE), node;
2014
+ if (node = getNode(nodes, property, prev))
2018
2015
  node.$(() => value);
2019
2016
  if (Array.isArray(state2) && state2.length !== len) {
2020
2017
  for (let i2 = state2.length; i2 < len; i2++)
2021
2018
  (node = nodes[i2]) && node.$();
2022
- (node = getDataNode(nodes, "length", len)) && node.$(state2.length);
2019
+ (node = getNode(nodes, "length", len)) && node.$(state2.length);
2023
2020
  }
2024
- (node = nodes._) && node.$();
2021
+ (node = nodes[$SELF]) && node.$();
2025
2022
  }
2026
2023
  function mergeStoreNode(state2, value) {
2027
- const keys3 = Object.keys(value);
2028
- for (let i2 = 0; i2 < keys3.length; i2 += 1) {
2029
- const key = keys3[i2];
2024
+ const keys2 = Object.keys(value);
2025
+ for (let i2 = 0; i2 < keys2.length; i2 += 1) {
2026
+ const key = keys2[i2];
2030
2027
  setProperty(state2, key, value[key]);
2031
2028
  }
2032
2029
  }
@@ -2064,11 +2061,7 @@ function updatePath(current, path, traversed = []) {
2064
2061
  }
2065
2062
  return;
2066
2063
  } else if (isArray4 && partType === "object") {
2067
- const {
2068
- from = 0,
2069
- to = current.length - 1,
2070
- by = 1
2071
- } = part;
2064
+ const { from = 0, to = current.length - 1, by = 1 } = part;
2072
2065
  for (let i2 = from; i2 <= to; i2 += by) {
2073
2066
  updatePath(current, [i2].concat(path), traversed);
2074
2067
  }
@@ -2144,7 +2137,7 @@ function $d6fd23bc337660df$var$getLanguage(locale) {
2144
2137
  return locale.split("-")[0];
2145
2138
  }
2146
2139
 
2147
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.4/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2140
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2148
2141
  var sides = ["top", "right", "bottom", "left"];
2149
2142
  var min = Math.min;
2150
2143
  var max = Math.max;
@@ -2164,7 +2157,7 @@ var oppositeAlignmentMap = {
2164
2157
  start: "end",
2165
2158
  end: "start"
2166
2159
  };
2167
- function clamp3(start, value, end) {
2160
+ function clamp2(start, value, end) {
2168
2161
  return max(start, min(value, end));
2169
2162
  }
2170
2163
  function evaluate(value, param) {
@@ -2507,7 +2500,7 @@ var arrow = (options) => ({
2507
2500
  const min$1 = minPadding;
2508
2501
  const max2 = clientSize - arrowDimensions[length] - maxPadding;
2509
2502
  const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
2510
- const offset2 = clamp3(min$1, center, max2);
2503
+ const offset2 = clamp2(min$1, center, max2);
2511
2504
  const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center != offset2 && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
2512
2505
  const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max2 : 0;
2513
2506
  return {
@@ -2780,14 +2773,14 @@ var shift = function(options) {
2780
2773
  const maxSide = mainAxis === "y" ? "bottom" : "right";
2781
2774
  const min2 = mainAxisCoord + overflow[minSide];
2782
2775
  const max2 = mainAxisCoord - overflow[maxSide];
2783
- mainAxisCoord = clamp3(min2, mainAxisCoord, max2);
2776
+ mainAxisCoord = clamp2(min2, mainAxisCoord, max2);
2784
2777
  }
2785
2778
  if (checkCrossAxis) {
2786
2779
  const minSide = crossAxis === "y" ? "top" : "left";
2787
2780
  const maxSide = crossAxis === "y" ? "bottom" : "right";
2788
2781
  const min2 = crossAxisCoord + overflow[minSide];
2789
2782
  const max2 = crossAxisCoord - overflow[maxSide];
2790
- crossAxisCoord = clamp3(min2, crossAxisCoord, max2);
2783
+ crossAxisCoord = clamp2(min2, crossAxisCoord, max2);
2791
2784
  }
2792
2785
  const limitedCoords = limiter.fn({
2793
2786
  ...state2,
@@ -2881,7 +2874,7 @@ var size = function(options) {
2881
2874
  };
2882
2875
  };
2883
2876
 
2884
- // ../../node_modules/.pnpm/@floating-ui+utils@0.1.4/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
2877
+ // ../../node_modules/.pnpm/@floating-ui+utils@0.1.6/node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
2885
2878
  function getNodeName(node) {
2886
2879
  if (isNode(node)) {
2887
2880
  return (node.nodeName || "").toLowerCase();
@@ -3419,8 +3412,8 @@ function observeMove(element, onMove) {
3419
3412
  threshold: max(0, min(1, threshold)) || 1
3420
3413
  };
3421
3414
  let isFirstUpdate = true;
3422
- function handleObserve(entries3) {
3423
- const ratio = entries3[0].intersectionRatio;
3415
+ function handleObserve(entries2) {
3416
+ const ratio = entries2[0].intersectionRatio;
3424
3417
  if (ratio !== threshold) {
3425
3418
  if (!isFirstUpdate) {
3426
3419
  return refresh();
@@ -3531,7 +3524,7 @@ var computePosition2 = (reference, floating, options) => {
3531
3524
  });
3532
3525
  };
3533
3526
 
3534
- // ../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.7.8/node_modules/@kobalte/core/dist/esm/index.js
3527
+ // ../../node_modules/.pnpm/@kobalte+core@0.11.0_solid-js@1.8.1/node_modules/@kobalte/core/dist/esm/index.js
3535
3528
  createContext();
3536
3529
  function buildNodes(params) {
3537
3530
  let index = params.startIndex ?? 0;
@@ -4119,7 +4112,7 @@ var POINTER_DOWN_OUTSIDE_EVENT = "interactOutside.pointerDownOutside";
4119
4112
  var FOCUS_OUTSIDE_EVENT = "interactOutside.focusOutside";
4120
4113
  function createInteractOutside(props, ref) {
4121
4114
  let pointerDownTimeoutId;
4122
- let clickHandler = noop4;
4115
+ let clickHandler = noop3;
4123
4116
  const ownerDocument = () => getDocument(ref());
4124
4117
  const onPointerDownOutside = (e2) => props.onPointerDownOutside?.(e2);
4125
4118
  const onFocusOutside = (e2) => props.onFocusOutside?.(e2);
@@ -4568,11 +4561,11 @@ function createCollator(options) {
4568
4561
  });
4569
4562
  }
4570
4563
  var Selection = class _Selection extends Set {
4571
- constructor(keys3, anchorKey, currentKey) {
4572
- super(keys3);
4573
- if (keys3 instanceof _Selection) {
4574
- this.anchorKey = anchorKey || keys3.anchorKey;
4575
- this.currentKey = currentKey || keys3.currentKey;
4564
+ constructor(keys2, anchorKey, currentKey) {
4565
+ super(keys2);
4566
+ if (keys2 instanceof _Selection) {
4567
+ this.anchorKey = anchorKey || keys2.anchorKey;
4568
+ this.currentKey = currentKey || keys2.currentKey;
4576
4569
  } else {
4577
4570
  this.anchorKey = anchorKey;
4578
4571
  this.currentKey = currentKey;
@@ -4636,9 +4629,9 @@ function createMultipleSelectionState(props) {
4636
4629
  const [selectionBehavior, setSelectionBehavior] = createSignal(access(props.selectionBehavior));
4637
4630
  const selectionMode = () => access(props.selectionMode);
4638
4631
  const disallowEmptySelection = () => access(props.disallowEmptySelection) ?? false;
4639
- const setSelectedKeys = (keys3) => {
4640
- if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys3, selectedKeys())) {
4641
- _setSelectedKeys(keys3);
4632
+ const setSelectedKeys = (keys2) => {
4633
+ if (access(props.allowDuplicateSelectionEvents) || !isSameSelection(keys2, selectedKeys())) {
4634
+ _setSelectedKeys(keys2);
4642
4635
  }
4643
4636
  };
4644
4637
  createEffect(() => {
@@ -5253,15 +5246,15 @@ var SelectionManager = class {
5253
5246
  return [];
5254
5247
  }
5255
5248
  getKeyRangeInternal(from, to) {
5256
- const keys3 = [];
5249
+ const keys2 = [];
5257
5250
  let key = from;
5258
5251
  while (key != null) {
5259
5252
  const item = this.collection().getItem(key);
5260
5253
  if (item && item.type === "item") {
5261
- keys3.push(key);
5254
+ keys2.push(key);
5262
5255
  }
5263
5256
  if (key === to) {
5264
- return keys3;
5257
+ return keys2;
5265
5258
  }
5266
5259
  key = this.collection().getKeyAfter(key);
5267
5260
  }
@@ -5290,18 +5283,18 @@ var SelectionManager = class {
5290
5283
  if (retrievedKey == null) {
5291
5284
  return;
5292
5285
  }
5293
- const keys3 = new Selection(this.state.selectedKeys());
5294
- if (keys3.has(retrievedKey)) {
5295
- keys3.delete(retrievedKey);
5286
+ const keys2 = new Selection(this.state.selectedKeys());
5287
+ if (keys2.has(retrievedKey)) {
5288
+ keys2.delete(retrievedKey);
5296
5289
  } else if (this.canSelectItem(retrievedKey)) {
5297
- keys3.add(retrievedKey);
5298
- keys3.anchorKey = retrievedKey;
5299
- keys3.currentKey = retrievedKey;
5290
+ keys2.add(retrievedKey);
5291
+ keys2.anchorKey = retrievedKey;
5292
+ keys2.currentKey = retrievedKey;
5300
5293
  }
5301
- if (this.disallowEmptySelection() && keys3.size === 0) {
5294
+ if (this.disallowEmptySelection() && keys2.size === 0) {
5302
5295
  return;
5303
5296
  }
5304
- this.state.setSelectedKeys(keys3);
5297
+ this.state.setSelectedKeys(keys2);
5305
5298
  }
5306
5299
  /** Replaces the selection with only the given key. */
5307
5300
  replaceSelection(key) {
@@ -5316,12 +5309,12 @@ var SelectionManager = class {
5316
5309
  this.state.setSelectedKeys(selection);
5317
5310
  }
5318
5311
  /** Replaces the selection with the given keys. */
5319
- setSelectedKeys(keys3) {
5312
+ setSelectedKeys(keys2) {
5320
5313
  if (this.selectionMode() === "none") {
5321
5314
  return;
5322
5315
  }
5323
5316
  const selection = new Selection();
5324
- for (const key of keys3) {
5317
+ for (const key of keys2) {
5325
5318
  const retrievedKey = this.getKey(key);
5326
5319
  if (retrievedKey != null) {
5327
5320
  selection.add(retrievedKey);
@@ -5406,7 +5399,7 @@ var SelectionManager = class {
5406
5399
  return !item || item.disabled;
5407
5400
  }
5408
5401
  getAllSelectableKeys() {
5409
- const keys3 = [];
5402
+ const keys2 = [];
5410
5403
  const addKeys = (key) => {
5411
5404
  while (key != null) {
5412
5405
  if (this.canSelectItem(key)) {
@@ -5415,14 +5408,14 @@ var SelectionManager = class {
5415
5408
  continue;
5416
5409
  }
5417
5410
  if (item.type === "item") {
5418
- keys3.push(key);
5411
+ keys2.push(key);
5419
5412
  }
5420
5413
  }
5421
5414
  key = this.collection().getKeyAfter(key);
5422
5415
  }
5423
5416
  };
5424
5417
  addKeys(this.collection().getFirstKey());
5425
- return keys3;
5418
+ return keys2;
5426
5419
  }
5427
5420
  };
5428
5421
  var ListCollection = class {
@@ -5478,8 +5471,8 @@ var ListCollection = class {
5478
5471
  return this.keyMap.get(key);
5479
5472
  }
5480
5473
  at(idx) {
5481
- const keys3 = [...this.getKeys()];
5482
- return this.getItem(keys3[idx]);
5474
+ const keys2 = [...this.getKeys()];
5475
+ return this.getItem(keys2[idx]);
5483
5476
  }
5484
5477
  };
5485
5478
  function createListState(props) {
@@ -8745,12 +8738,12 @@ var untransformValue = function(json, type, superJson) {
8745
8738
 
8746
8739
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
8747
8740
  var getNthKey = function(value, n2) {
8748
- var keys3 = value.keys();
8741
+ var keys2 = value.keys();
8749
8742
  while (n2 > 0) {
8750
- keys3.next();
8743
+ keys2.next();
8751
8744
  n2--;
8752
8745
  }
8753
- return keys3.next().value;
8746
+ return keys2.next().value;
8754
8747
  };
8755
8748
  function validatePath(path) {
8756
8749
  if (includes(path, "__proto__")) {
@@ -9050,7 +9043,7 @@ function isArray3(payload) {
9050
9043
  return getType2(payload) === "Array";
9051
9044
  }
9052
9045
 
9053
- // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
9046
+ // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
9054
9047
  function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
9055
9048
  const propType = {}.propertyIsEnumerable.call(originalObject, key) ? "enumerable" : "nonenumerable";
9056
9049
  if (propType === "enumerable")
@@ -9245,6 +9238,19 @@ var sortFns = {
9245
9238
  var convertRemToPixels = (rem) => {
9246
9239
  return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
9247
9240
  };
9241
+ var getPreferredColorScheme = () => {
9242
+ const [colorScheme, setColorScheme] = createSignal("dark");
9243
+ onMount(() => {
9244
+ const query = window.matchMedia("(prefers-color-scheme: dark)");
9245
+ setColorScheme(query.matches ? "dark" : "light");
9246
+ const listener = (e2) => {
9247
+ setColorScheme(e2.matches ? "dark" : "light");
9248
+ };
9249
+ query.addEventListener("change", listener);
9250
+ onCleanup(() => query.removeEventListener("change", listener));
9251
+ });
9252
+ return colorScheme;
9253
+ };
9248
9254
  var updateNestedDataByPath = (oldData, updatePath2, value) => {
9249
9255
  if (updatePath2.length === 0) {
9250
9256
  return value;
@@ -9327,19 +9333,23 @@ var deleteNestedDataByPath = (oldData, deletePath) => {
9327
9333
  };
9328
9334
 
9329
9335
  // src/icons/index.tsx
9330
- var _tmpl$ = /* @__PURE__ */ template(`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9331
- var _tmpl$2 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5" stroke="#d0d5dd" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9332
- var _tmpl$3 = /* @__PURE__ */ template(`<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9333
- var _tmpl$4 = /* @__PURE__ */ template(`<svg width="12" height="12" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9334
- var _tmpl$5 = /* @__PURE__ */ template(`<svg width="12" height="12" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round">`);
9335
- var _tmpl$6 = /* @__PURE__ */ template(`<svg stroke="#d0d5dd" fill="#d0d5dd" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
9336
- var _tmpl$7 = /* @__PURE__ */ template(`<svg stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
9337
- var _tmpl$8 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z" stroke="#d0d5dd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z" stroke="#d0d5dd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9338
- var _tmpl$9 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="copier" d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="#98A2B3">`);
9339
- var _tmpl$10 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z" stroke="#12B76A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9340
- var _tmpl$11 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z" stroke="#F04438" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9341
- var _tmpl$12 = /* @__PURE__ */ template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#98A2B3" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><rect class="list" width="20" height="20" y="2" x="2" rx="2"></rect><line class="list-item" y1="7" y2="7" x1="6" x2="18"></line><line class="list-item" y2="12" y1="12" x1="6" x2="18"></line><line class="list-item" y1="17" y2="17" x1="6" x2="18">`);
9342
- var _tmpl$13 = /* @__PURE__ */ template(`<svg version="1.0" viewBox="0 0 633 633"><linearGradient id="a" x1="-666.45" x2="-666.45" y1="163.28" y2="163.99" gradientTransform="matrix(633 0 0 633 422177 -103358)" gradientUnits="userSpaceOnUse"><stop stop-color="#6BDAFF" offset="0"></stop><stop stop-color="#F9FFB5" offset=".32"></stop><stop stop-color="#FFA770" offset=".71"></stop><stop stop-color="#FF7373" offset="1"></stop></linearGradient><circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)"></circle><defs><filter id="am" x="-137.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="b" x="-137.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#b)"><ellipse cx="89.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ah" x="316.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="k" x="316.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#k)"><ellipse cx="543.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ae" x="-137.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="j" x="-137.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#j)"><ellipse cx="89.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="ai" x="316.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="i" x="316.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#i)"><ellipse cx="543.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="aj" x="-137.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="h" x="-137.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#h)"><ellipse cx="89.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="ag" x="316.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="g" x="316.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#g)"><ellipse cx="543.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="af" x="272.2" y="308" width="176.9" height="129.3" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="f" x="272.2" y="308" width="176.9" height="129.3" maskUnits="userSpaceOnUse"><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#f)"><line x1="436" x2="431" y1="403.2" y2="431.8" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="291" x2="280" y1="341.5" y2="403.5" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="332.9" x2="328.6" y1="384.1" y2="411.2" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><linearGradient id="m" x1="-670.75" x2="-671.59" y1="164.4" y2="164.49" gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)" gradientUnits="userSpaceOnUse"><stop stop-color="#EE2700" offset="0"></stop><stop stop-color="#FF008E" offset="1"></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z" clip-rule="evenodd" fill="url(#m)" fill-rule="evenodd"></path><line x1="428.2" x2="429.1" y1="384.5" y2="378" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="395.2" x2="396.1" y1="379.5" y2="373" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="362.2" x2="363.1" y1="373.5" y2="367.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="324.2" x2="328.4" y1="351.3" y2="347.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="303.2" x2="307.4" y1="331.3" y2="327.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line></g><defs><filter id="ak" x="73.2" y="113.8" width="280.6" height="317.4" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="e" x="73.2" y="113.8" width="280.6" height="317.4" maskUnits="userSpaceOnUse"><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#e)"><linearGradient id="n" x1="-672.16" x2="-672.16" y1="165.03" y2="166.03" gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)" gradientUnits="userSpaceOnUse"><stop stop-color="#A17500" offset="0"></stop><stop stop-color="#5D2100" offset="1"></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6" clip-rule="evenodd" fill="url(#n)" fill-rule="evenodd"></path><g stroke="#2F8A00"><linearGradient id="r" x1="-660.23" x2="-660.23" y1="166.72" y2="167.72" gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z" clip-rule="evenodd" fill="url(#r)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="s" x1="-661.36" x2="-661.36" y1="164.18" y2="165.18" gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z" clip-rule="evenodd" fill="url(#s)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="q" x1="-656.79" x2="-656.79" y1="165.15" y2="166.15" gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z" clip-rule="evenodd" fill="url(#q)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="p" x1="-663.07" x2="-663.07" y1="165.44" y2="166.44" gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z" clip-rule="evenodd" fill="url(#p)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="o" x1="-662.57" x2="-662.57" y1="164.44" y2="165.44" gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z" clip-rule="evenodd" fill="url(#o)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="l" x1="-656.43" x2="-656.43" y1="163.86" y2="164.86" gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z" clip-rule="evenodd" fill="url(#l)" fill-rule="evenodd" stroke-width="13"></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32" fill="none" stroke-linecap="round" stroke-width="8"></path></g></g><defs><filter id="al" x="50.5" y="399" width="532" height="633" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="d" x="50.5" y="399" width="532" height="633" maskUnits="userSpaceOnUse"><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#d)"><linearGradient id="u" x1="-666.06" x2="-666.23" y1="163.36" y2="163.75" gradientTransform="matrix(532 0 0 633 354760 -102959)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF400" offset="0"></stop><stop stop-color="#3C8700" offset="1"></stop></linearGradient><ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)"></ellipse></g><defs><filter id="ad" x="391" y="-24" width="288" height="283" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="c" x="391" y="-24" width="288" height="283" maskUnits="userSpaceOnUse"><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#c)"><linearGradient id="t" x1="-664.56" x2="-664.56" y1="163.79" y2="164.79" gradientTransform="matrix(227 0 0 227 151421 -37204)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFDF00" offset="0"></stop><stop stop-color="#FF9D00" offset="1"></stop></linearGradient><circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)"></circle><linearGradient id="v" x1="-644.5" x2="-645.77" y1="342" y2="342" gradientTransform="matrix(30 0 0 1 19770 -253)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="427" x2="397" y1="89" y2="89" fill="none" stroke="url(#v)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="aa" x1="-641.56" x2="-642.83" y1="196.02" y2="196.07" gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="430.5" x2="404" y1="55.5" y2="50" fill="none" stroke="url(#aa)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="w" x1="-643.73" x2="-645" y1="185.83" y2="185.9" gradientTransform="matrix(29 0 0 8 19107 -1361)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="431" x2="402" y1="122" y2="130" fill="none" stroke="url(#w)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ac" x1="-638.94" x2="-640.22" y1="177.09" y2="177.39" gradientTransform="matrix(24 0 0 13 15783 -2145)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="442" x2="418" y1="153" y2="166" fill="none" stroke="url(#ac)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ab" x1="-633.42" x2="-634.7" y1="172.41" y2="173.31" gradientTransform="matrix(20 0 0 19 13137 -3096)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="464" x2="444" y1="180" y2="199" fill="none" stroke="url(#ab)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="y" x1="-619.05" x2="-619.52" y1="170.82" y2="171.82" gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="491.4" x2="477.5" y1="203" y2="225.9" fill="none" stroke="url(#y)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="x" x1="-578.5" x2="-578.63" y1="170.31" y2="171.31" gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="524.5" x2="517" y1="219.5" y2="244" fill="none" stroke="url(#x)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="z" x1="666.5" x2="666.5" y1="170.31" y2="171.31" gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="564.5" x2="565" y1="228.5" y2="253" fill="none" stroke="url(#z)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12">`);
9336
+ var _tmpl$ = /* @__PURE__ */ template(`<svg width=14 height=14 viewBox="0 0 14 14"fill=none xmlns=http://www.w3.org/2000/svg><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9337
+ var _tmpl$2 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 3H15M3 6H21M19 6L18.2987 16.5193C18.1935 18.0975 18.1409 18.8867 17.8 19.485C17.4999 20.0118 17.0472 20.4353 16.5017 20.6997C15.882 21 15.0911 21 13.5093 21H10.4907C8.90891 21 8.11803 21 7.49834 20.6997C6.95276 20.4353 6.50009 20.0118 6.19998 19.485C5.85911 18.8867 5.8065 18.0975 5.70129 16.5193L5 6M10 10.5V15.5M14 10.5V15.5"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9338
+ var _tmpl$3 = /* @__PURE__ */ template(`<svg width=10 height=6 viewBox="0 0 10 6"fill=none xmlns=http://www.w3.org/2000/svg><path d="M1 1L5 5L9 1"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9339
+ var _tmpl$4 = /* @__PURE__ */ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9340
+ var _tmpl$5 = /* @__PURE__ */ template(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333"stroke=currentColor stroke-width=1.66667 stroke-linecap=round stroke-linejoin=round>`);
9341
+ var _tmpl$6 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M12 2v2m0 16v2M4 12H2m4.314-5.686L4.9 4.9m12.786 1.414L19.1 4.9M6.314 17.69 4.9 19.104m12.786-1.414 1.414 1.414M22 12h-2m-3 0a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9342
+ var _tmpl$7 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M22 15.844a10.424 10.424 0 0 1-4.306.925c-5.779 0-10.463-4.684-10.463-10.462 0-1.536.33-2.994.925-4.307A10.464 10.464 0 0 0 2 11.538C2 17.316 6.684 22 12.462 22c4.243 0 7.896-2.526 9.538-6.156Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9343
+ var _tmpl$8 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=12 width=12 fill=none xmlns=http://www.w3.org/2000/svg><path d="M8 21h8m-4-4v4m-5.2-4h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 14.72 22 13.88 22 12.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 17 5.12 17 6.8 17Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9344
+ var _tmpl$9 = /* @__PURE__ */ template(`<svg stroke=currentColor fill=currentColor stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z">`);
9345
+ var _tmpl$10 = /* @__PURE__ */ template(`<svg stroke-width=0 viewBox="0 0 24 24"height=1em width=1em xmlns=http://www.w3.org/2000/svg><path fill=none d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z">`);
9346
+ var _tmpl$11 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z"stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9347
+ var _tmpl$12 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path class=copier d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round stroke=currentColor>`);
9348
+ var _tmpl$13 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9349
+ var _tmpl$14 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none xmlns=http://www.w3.org/2000/svg><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z"stroke=#F04438 stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9350
+ var _tmpl$15 = /* @__PURE__ */ template(`<svg width=24 height=24 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 xmlns=http://www.w3.org/2000/svg><rect class=list width=20 height=20 y=2 x=2 rx=2></rect><line class=list-item y1=7 y2=7 x1=6 x2=18></line><line class=list-item y2=12 y1=12 x1=6 x2=18></line><line class=list-item y1=17 y2=17 x1=6 x2=18>`);
9351
+ var _tmpl$16 = /* @__PURE__ */ template(`<svg viewBox="0 0 24 24"height=20 width=20 fill=none xmlns=http://www.w3.org/2000/svg><path d="M3 7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8Z"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9352
+ var _tmpl$17 = /* @__PURE__ */ template(`<svg version=1.0 viewBox="0 0 633 633"><linearGradient x1=-666.45 x2=-666.45 y1=163.28 y2=163.99 gradientTransform="matrix(633 0 0 633 422177 -103358)"gradientUnits=userSpaceOnUse><stop stop-color=#6BDAFF offset=0></stop><stop stop-color=#F9FFB5 offset=.32></stop><stop stop-color=#FFA770 offset=.71></stop><stop stop-color=#FF7373 offset=1></stop></linearGradient><circle cx=316.5 cy=316.5 r=316.5></circle><defs><filter x=-137.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=316.5 y=412 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=412 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=610.5 rx=214.5 ry=186 fill=#015064 stroke=#00CFE2 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=316.5 y=450 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=450 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=648.5 rx=214.5 ry=186 fill=#015064 stroke=#00A8B8 stroke-width=25></ellipse></g><defs><filter x=-137.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=-137.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=89.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=316.5 y=486 width=454 height=396.9 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=316.5 y=486 width=454 height=396.9 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><ellipse cx=543.5 cy=684.5 rx=214.5 ry=186 fill=#015064 stroke=#007782 stroke-width=25></ellipse></g><defs><filter x=272.2 y=308 width=176.9 height=129.3 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=272.2 y=308 width=176.9 height=129.3 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><line x1=436 x2=431 y1=403.2 y2=431.8 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=291 x2=280 y1=341.5 y2=403.5 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><line x1=332.9 x2=328.6 y1=384.1 y2=411.2 fill=none stroke=#000 stroke-linecap=round stroke-linejoin=bevel stroke-width=11></line><linearGradient x1=-670.75 x2=-671.59 y1=164.4 y2=164.49 gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)"gradientUnits=userSpaceOnUse><stop stop-color=#EE2700 offset=0></stop><stop stop-color=#FF008E offset=1></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z"clip-rule=evenodd fill-rule=evenodd></path><line x1=428.2 x2=429.1 y1=384.5 y2=378 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=395.2 x2=396.1 y1=379.5 y2=373 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=362.2 x2=363.1 y1=373.5 y2=367.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=324.2 x2=328.4 y1=351.3 y2=347.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line><line x1=303.2 x2=307.4 y1=331.3 y2=327.4 fill=none stroke=#fff stroke-linecap=round stroke-linejoin=bevel stroke-width=7></line></g><defs><filter x=73.2 y=113.8 width=280.6 height=317.4 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=73.2 y=113.8 width=280.6 height=317.4 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-672.16 x2=-672.16 y1=165.03 y2=166.03 gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)"gradientUnits=userSpaceOnUse><stop stop-color=#A17500 offset=0></stop><stop stop-color=#5D2100 offset=1></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6"clip-rule=evenodd fill-rule=evenodd></path><g stroke=#2F8A00><linearGradient x1=-660.23 x2=-660.23 y1=166.72 y2=167.72 gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-661.36 x2=-661.36 y1=164.18 y2=165.18 gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.79 x2=-656.79 y1=165.15 y2=166.15 gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-663.07 x2=-663.07 y1=165.44 y2=166.44 gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-662.57 x2=-662.57 y1=164.44 y2=165.44 gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><linearGradient x1=-656.43 x2=-656.43 y1=163.86 y2=164.86 gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)"gradientUnits=userSpaceOnUse><stop stop-color=#2F8A00 offset=0></stop><stop stop-color=#90FF57 offset=1></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z"clip-rule=evenodd fill-rule=evenodd stroke-width=13></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1"fill=none stroke-linecap=round stroke-width=8></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8"fill=none stroke-linecap=round stroke-width=8></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9"fill=none stroke-linecap=round stroke-width=8></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32"fill=none stroke-linecap=round stroke-width=8></path></g></g><defs><filter x=50.5 y=399 width=532 height=633 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=50.5 y=399 width=532 height=633 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-666.06 x2=-666.23 y1=163.36 y2=163.75 gradientTransform="matrix(532 0 0 633 354760 -102959)"gradientUnits=userSpaceOnUse><stop stop-color=#FFF400 offset=0></stop><stop stop-color=#3C8700 offset=1></stop></linearGradient><ellipse cx=316.5 cy=715.5 rx=266 ry=316.5></ellipse></g><defs><filter x=391 y=-24 width=288 height=283 filterUnits=userSpaceOnUse><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask x=391 y=-24 width=288 height=283 maskUnits=userSpaceOnUse><g><circle cx=316.5 cy=316.5 r=316.5 fill=#fff></circle></g></mask><g><linearGradient x1=-664.56 x2=-664.56 y1=163.79 y2=164.79 gradientTransform="matrix(227 0 0 227 151421 -37204)"gradientUnits=userSpaceOnUse><stop stop-color=#FFDF00 offset=0></stop><stop stop-color=#FF9D00 offset=1></stop></linearGradient><circle cx=565.5 cy=89.5 r=113.5></circle><linearGradient x1=-644.5 x2=-645.77 y1=342 y2=342 gradientTransform="matrix(30 0 0 1 19770 -253)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=427 x2=397 y1=89 y2=89 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-641.56 x2=-642.83 y1=196.02 y2=196.07 gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=430.5 x2=404 y1=55.5 y2=50 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-643.73 x2=-645 y1=185.83 y2=185.9 gradientTransform="matrix(29 0 0 8 19107 -1361)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=431 x2=402 y1=122 y2=130 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-638.94 x2=-640.22 y1=177.09 y2=177.39 gradientTransform="matrix(24 0 0 13 15783 -2145)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=442 x2=418 y1=153 y2=166 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-633.42 x2=-634.7 y1=172.41 y2=173.31 gradientTransform="matrix(20 0 0 19 13137 -3096)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=464 x2=444 y1=180 y2=199 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-619.05 x2=-619.52 y1=170.82 y2=171.82 gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=491.4 x2=477.5 y1=203 y2=225.9 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=-578.5 x2=-578.63 y1=170.31 y2=171.31 gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=524.5 x2=517 y1=219.5 y2=244 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12></line><linearGradient x1=666.5 x2=666.5 y1=170.31 y2=171.31 gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)"gradientUnits=userSpaceOnUse><stop stop-color=#FFA400 offset=0></stop><stop stop-color=#FF5E00 offset=1></stop></linearGradient><line x1=564.5 x2=565 y1=228.5 y2=253 fill=none stroke-linecap=round stroke-linejoin=bevel stroke-width=12>`);
9343
9353
  function Search() {
9344
9354
  return _tmpl$();
9345
9355
  }
@@ -9369,41 +9379,145 @@ function ArrowRight() {
9369
9379
  return _el$7;
9370
9380
  })();
9371
9381
  }
9372
- function Wifi() {
9382
+ function Sun() {
9373
9383
  return _tmpl$6();
9374
9384
  }
9375
- function Offline() {
9376
- return (() => {
9377
- const _el$9 = _tmpl$7();
9378
- createRenderEffect((_p$) => {
9379
- const _v$ = tokens.colors.yellow[500], _v$2 = tokens.colors.yellow[500];
9380
- _v$ !== _p$._v$ && setAttribute(_el$9, "stroke", _p$._v$ = _v$);
9381
- _v$2 !== _p$._v$2 && setAttribute(_el$9, "fill", _p$._v$2 = _v$2);
9382
- return _p$;
9383
- }, {
9384
- _v$: void 0,
9385
- _v$2: void 0
9386
- });
9387
- return _el$9;
9388
- })();
9385
+ function Moon() {
9386
+ return _tmpl$7();
9389
9387
  }
9390
- function Settings() {
9388
+ function Monitor() {
9391
9389
  return _tmpl$8();
9392
9390
  }
9393
- function Copier() {
9391
+ function Wifi() {
9394
9392
  return _tmpl$9();
9395
9393
  }
9396
- function CopiedCopier() {
9394
+ function Offline() {
9397
9395
  return _tmpl$10();
9398
9396
  }
9399
- function ErrorCopier() {
9397
+ function Settings() {
9400
9398
  return _tmpl$11();
9401
9399
  }
9402
- function List() {
9400
+ function Copier() {
9403
9401
  return _tmpl$12();
9404
9402
  }
9403
+ function CopiedCopier(props) {
9404
+ return (() => {
9405
+ const _el$15 = _tmpl$13(), _el$16 = _el$15.firstChild;
9406
+ createRenderEffect(() => setAttribute(_el$16, "stroke", props.theme === "dark" ? "#12B76A" : "#027A48"));
9407
+ return _el$15;
9408
+ })();
9409
+ }
9410
+ function ErrorCopier() {
9411
+ return _tmpl$14();
9412
+ }
9413
+ function List() {
9414
+ return _tmpl$15();
9415
+ }
9416
+ function Check(props) {
9417
+ return [createComponent(Show, {
9418
+ get when() {
9419
+ return props.checked;
9420
+ },
9421
+ get children() {
9422
+ const _el$19 = _tmpl$13(), _el$20 = _el$19.firstChild;
9423
+ createRenderEffect(() => setAttribute(_el$20, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
9424
+ return _el$19;
9425
+ }
9426
+ }), createComponent(Show, {
9427
+ get when() {
9428
+ return !props.checked;
9429
+ },
9430
+ get children() {
9431
+ const _el$21 = _tmpl$16(), _el$22 = _el$21.firstChild;
9432
+ createRenderEffect(() => setAttribute(_el$22, "stroke", props.theme === "dark" ? "#9B8AFB" : "#6938EF"));
9433
+ return _el$21;
9434
+ }
9435
+ })];
9436
+ }
9405
9437
  function TanstackLogo() {
9406
- return _tmpl$13();
9438
+ const id = createUniqueId();
9439
+ return (() => {
9440
+ const _el$23 = _tmpl$17(), _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$26 = _el$25.nextSibling, _el$27 = _el$26.firstChild, _el$28 = _el$26.nextSibling, _el$29 = _el$28.firstChild, _el$30 = _el$28.nextSibling, _el$31 = _el$30.nextSibling, _el$32 = _el$31.firstChild, _el$33 = _el$31.nextSibling, _el$34 = _el$33.firstChild, _el$35 = _el$33.nextSibling, _el$36 = _el$35.nextSibling, _el$37 = _el$36.firstChild, _el$38 = _el$36.nextSibling, _el$39 = _el$38.firstChild, _el$40 = _el$38.nextSibling, _el$41 = _el$40.nextSibling, _el$42 = _el$41.firstChild, _el$43 = _el$41.nextSibling, _el$44 = _el$43.firstChild, _el$45 = _el$43.nextSibling, _el$46 = _el$45.nextSibling, _el$47 = _el$46.firstChild, _el$48 = _el$46.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$48.nextSibling, _el$51 = _el$50.nextSibling, _el$52 = _el$51.firstChild, _el$53 = _el$51.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$53.nextSibling, _el$56 = _el$55.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$56.nextSibling, _el$59 = _el$58.firstChild, _el$60 = _el$58.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$62.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.nextSibling, _el$66 = _el$60.nextSibling, _el$67 = _el$66.firstChild, _el$68 = _el$66.nextSibling, _el$69 = _el$68.firstChild, _el$70 = _el$68.nextSibling, _el$71 = _el$70.firstChild, _el$72 = _el$71.nextSibling, _el$73 = _el$72.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$76 = _el$75.nextSibling, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling, _el$79 = _el$78.nextSibling, _el$80 = _el$79.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling, _el$84 = _el$83.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$70.nextSibling, _el$87 = _el$86.firstChild, _el$88 = _el$86.nextSibling, _el$89 = _el$88.firstChild, _el$90 = _el$88.nextSibling, _el$91 = _el$90.firstChild, _el$92 = _el$91.nextSibling, _el$93 = _el$90.nextSibling, _el$94 = _el$93.firstChild, _el$95 = _el$93.nextSibling, _el$96 = _el$95.firstChild, _el$97 = _el$95.nextSibling, _el$98 = _el$97.firstChild, _el$99 = _el$98.nextSibling, _el$100 = _el$99.nextSibling, _el$101 = _el$100.nextSibling, _el$102 = _el$101.nextSibling, _el$103 = _el$102.nextSibling, _el$104 = _el$103.nextSibling, _el$105 = _el$104.nextSibling, _el$106 = _el$105.nextSibling, _el$107 = _el$106.nextSibling, _el$108 = _el$107.nextSibling, _el$109 = _el$108.nextSibling, _el$110 = _el$109.nextSibling, _el$111 = _el$110.nextSibling, _el$112 = _el$111.nextSibling, _el$113 = _el$112.nextSibling, _el$114 = _el$113.nextSibling, _el$115 = _el$114.nextSibling;
9441
+ setAttribute(_el$24, "id", `a-${id}`);
9442
+ setAttribute(_el$25, "fill", `url(#a-${id})`);
9443
+ setAttribute(_el$27, "id", `am-${id}`);
9444
+ setAttribute(_el$28, "id", `b-${id}`);
9445
+ setAttribute(_el$29, "filter", `url(#am-${id})`);
9446
+ setAttribute(_el$30, "mask", `url(#b-${id})`);
9447
+ setAttribute(_el$32, "id", `ah-${id}`);
9448
+ setAttribute(_el$33, "id", `k-${id}`);
9449
+ setAttribute(_el$34, "filter", `url(#ah-${id})`);
9450
+ setAttribute(_el$35, "mask", `url(#k-${id})`);
9451
+ setAttribute(_el$37, "id", `ae-${id}`);
9452
+ setAttribute(_el$38, "id", `j-${id}`);
9453
+ setAttribute(_el$39, "filter", `url(#ae-${id})`);
9454
+ setAttribute(_el$40, "mask", `url(#j-${id})`);
9455
+ setAttribute(_el$42, "id", `ai-${id}`);
9456
+ setAttribute(_el$43, "id", `i-${id}`);
9457
+ setAttribute(_el$44, "filter", `url(#ai-${id})`);
9458
+ setAttribute(_el$45, "mask", `url(#i-${id})`);
9459
+ setAttribute(_el$47, "id", `aj-${id}`);
9460
+ setAttribute(_el$48, "id", `h-${id}`);
9461
+ setAttribute(_el$49, "filter", `url(#aj-${id})`);
9462
+ setAttribute(_el$50, "mask", `url(#h-${id})`);
9463
+ setAttribute(_el$52, "id", `ag-${id}`);
9464
+ setAttribute(_el$53, "id", `g-${id}`);
9465
+ setAttribute(_el$54, "filter", `url(#ag-${id})`);
9466
+ setAttribute(_el$55, "mask", `url(#g-${id})`);
9467
+ setAttribute(_el$57, "id", `af-${id}`);
9468
+ setAttribute(_el$58, "id", `f-${id}`);
9469
+ setAttribute(_el$59, "filter", `url(#af-${id})`);
9470
+ setAttribute(_el$60, "mask", `url(#f-${id})`);
9471
+ setAttribute(_el$64, "id", `m-${id}`);
9472
+ setAttribute(_el$65, "fill", `url(#m-${id})`);
9473
+ setAttribute(_el$67, "id", `ak-${id}`);
9474
+ setAttribute(_el$68, "id", `e-${id}`);
9475
+ setAttribute(_el$69, "filter", `url(#ak-${id})`);
9476
+ setAttribute(_el$70, "mask", `url(#e-${id})`);
9477
+ setAttribute(_el$71, "id", `n-${id}`);
9478
+ setAttribute(_el$72, "fill", `url(#n-${id})`);
9479
+ setAttribute(_el$74, "id", `r-${id}`);
9480
+ setAttribute(_el$75, "fill", `url(#r-${id})`);
9481
+ setAttribute(_el$76, "id", `s-${id}`);
9482
+ setAttribute(_el$77, "fill", `url(#s-${id})`);
9483
+ setAttribute(_el$78, "id", `q-${id}`);
9484
+ setAttribute(_el$79, "fill", `url(#q-${id})`);
9485
+ setAttribute(_el$80, "id", `p-${id}`);
9486
+ setAttribute(_el$81, "fill", `url(#p-${id})`);
9487
+ setAttribute(_el$82, "id", `o-${id}`);
9488
+ setAttribute(_el$83, "fill", `url(#o-${id})`);
9489
+ setAttribute(_el$84, "id", `l-${id}`);
9490
+ setAttribute(_el$85, "fill", `url(#l-${id})`);
9491
+ setAttribute(_el$87, "id", `al-${id}`);
9492
+ setAttribute(_el$88, "id", `d-${id}`);
9493
+ setAttribute(_el$89, "filter", `url(#al-${id})`);
9494
+ setAttribute(_el$90, "mask", `url(#d-${id})`);
9495
+ setAttribute(_el$91, "id", `u-${id}`);
9496
+ setAttribute(_el$92, "fill", `url(#u-${id})`);
9497
+ setAttribute(_el$94, "id", `ad-${id}`);
9498
+ setAttribute(_el$95, "id", `c-${id}`);
9499
+ setAttribute(_el$96, "filter", `url(#ad-${id})`);
9500
+ setAttribute(_el$97, "mask", `url(#c-${id})`);
9501
+ setAttribute(_el$98, "id", `t-${id}`);
9502
+ setAttribute(_el$99, "fill", `url(#t-${id})`);
9503
+ setAttribute(_el$100, "id", `v-${id}`);
9504
+ setAttribute(_el$101, "stroke", `url(#v-${id})`);
9505
+ setAttribute(_el$102, "id", `aa-${id}`);
9506
+ setAttribute(_el$103, "stroke", `url(#aa-${id})`);
9507
+ setAttribute(_el$104, "id", `w-${id}`);
9508
+ setAttribute(_el$105, "stroke", `url(#w-${id})`);
9509
+ setAttribute(_el$106, "id", `ac-${id}`);
9510
+ setAttribute(_el$107, "stroke", `url(#ac-${id})`);
9511
+ setAttribute(_el$108, "id", `ab-${id}`);
9512
+ setAttribute(_el$109, "stroke", `url(#ab-${id})`);
9513
+ setAttribute(_el$110, "id", `y-${id}`);
9514
+ setAttribute(_el$111, "stroke", `url(#y-${id})`);
9515
+ setAttribute(_el$112, "id", `x-${id}`);
9516
+ setAttribute(_el$113, "stroke", `url(#x-${id})`);
9517
+ setAttribute(_el$114, "id", `z-${id}`);
9518
+ setAttribute(_el$115, "stroke", `url(#z-${id})`);
9519
+ return _el$23;
9520
+ })();
9407
9521
  }
9408
9522
 
9409
9523
  // src/Context.ts
@@ -9416,18 +9530,25 @@ var QueryDevtoolsContext = createContext({
9416
9530
  function useQueryDevtoolsContext() {
9417
9531
  return useContext(QueryDevtoolsContext);
9418
9532
  }
9533
+ var ThemeContext = createContext(
9534
+ () => "dark"
9535
+ );
9536
+ function useTheme() {
9537
+ return useContext(ThemeContext);
9538
+ }
9419
9539
 
9420
9540
  // src/Explorer.tsx
9421
- var _tmpl$14 = /* @__PURE__ */ template(`<span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">`);
9541
+ var _tmpl$18 = /* @__PURE__ */ template(`<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>`);
9422
9542
  var _tmpl$22 = /* @__PURE__ */ template(`<button title="Copy object to clipboard">`);
9423
- var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items" aria-label="Remove all items">`);
9424
- var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item" aria-label="Delete item">`);
9425
- var _tmpl$52 = /* @__PURE__ */ template(`<div>`);
9426
- var _tmpl$62 = /* @__PURE__ */ template(`<div><button> <span></span> <span> `);
9427
- var _tmpl$72 = /* @__PURE__ */ template(`<input>`);
9428
- var _tmpl$82 = /* @__PURE__ */ template(`<div><span>:`);
9429
- var _tmpl$92 = /* @__PURE__ */ template(`<div><div><button> [<!>...<!>]`);
9430
- var _tmpl$102 = /* @__PURE__ */ template(`<span>`);
9543
+ var _tmpl$32 = /* @__PURE__ */ template(`<button title="Remove all items"aria-label="Remove all items">`);
9544
+ var _tmpl$42 = /* @__PURE__ */ template(`<button title="Delete item"aria-label="Delete item">`);
9545
+ var _tmpl$52 = /* @__PURE__ */ template(`<button title="Toggle value"aria-label="Toggle value">`);
9546
+ var _tmpl$62 = /* @__PURE__ */ template(`<div>`);
9547
+ var _tmpl$72 = /* @__PURE__ */ template(`<div><button> <span></span> <span> `);
9548
+ var _tmpl$82 = /* @__PURE__ */ template(`<input>`);
9549
+ var _tmpl$92 = /* @__PURE__ */ template(`<span>`);
9550
+ var _tmpl$102 = /* @__PURE__ */ template(`<div><span>:`);
9551
+ var _tmpl$112 = /* @__PURE__ */ template(`<div><div><button> [<!>...<!>]`);
9431
9552
  function chunkArray(array, size2) {
9432
9553
  if (size2 < 1)
9433
9554
  return [];
@@ -9440,10 +9561,13 @@ function chunkArray(array, size2) {
9440
9561
  return result;
9441
9562
  }
9442
9563
  var Expander = (props) => {
9443
- const styles = getStyles();
9564
+ const theme = useTheme();
9565
+ const styles = createMemo(() => {
9566
+ return theme() === "dark" ? darkStyles : lightStyles;
9567
+ });
9444
9568
  return (() => {
9445
- const _el$ = _tmpl$14();
9446
- createRenderEffect(() => className(_el$, clsx(styles.expander, u`
9569
+ const _el$ = _tmpl$18();
9570
+ createRenderEffect(() => className(_el$, clsx(styles().expander, u`
9447
9571
  transform: rotate(${props.expanded ? 90 : 0}deg);
9448
9572
  `, props.expanded && u`
9449
9573
  & svg {
@@ -9454,7 +9578,10 @@ var Expander = (props) => {
9454
9578
  })();
9455
9579
  };
9456
9580
  var CopyButton = (props) => {
9457
- const styles = getStyles();
9581
+ const theme = useTheme();
9582
+ const styles = createMemo(() => {
9583
+ return theme() === "dark" ? darkStyles : lightStyles;
9584
+ });
9458
9585
  const [copyState, setCopyState] = createSignal("NoCopy");
9459
9586
  return (() => {
9460
9587
  const _el$2 = _tmpl$22();
@@ -9486,7 +9613,11 @@ var CopyButton = (props) => {
9486
9613
  return copyState() === "SuccessCopy";
9487
9614
  },
9488
9615
  get children() {
9489
- return createComponent(CopiedCopier, {});
9616
+ return createComponent(CopiedCopier, {
9617
+ get theme() {
9618
+ return theme();
9619
+ }
9620
+ });
9490
9621
  }
9491
9622
  }), createComponent(Match, {
9492
9623
  get when() {
@@ -9499,7 +9630,7 @@ var CopyButton = (props) => {
9499
9630
  }
9500
9631
  }));
9501
9632
  createRenderEffect((_p$) => {
9502
- const _v$ = styles.actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
9633
+ const _v$ = styles().actionButton, _v$2 = `${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`;
9503
9634
  _v$ !== _p$._v$ && className(_el$2, _p$._v$ = _v$);
9504
9635
  _v$2 !== _p$._v$2 && setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
9505
9636
  return _p$;
@@ -9511,7 +9642,10 @@ var CopyButton = (props) => {
9511
9642
  })();
9512
9643
  };
9513
9644
  var ClearArrayButton = (props) => {
9514
- const styles = getStyles();
9645
+ const theme = useTheme();
9646
+ const styles = createMemo(() => {
9647
+ return theme() === "dark" ? darkStyles : lightStyles;
9648
+ });
9515
9649
  const queryClient = useQueryDevtoolsContext().client;
9516
9650
  return (() => {
9517
9651
  const _el$3 = _tmpl$32();
@@ -9521,12 +9655,15 @@ var ClearArrayButton = (props) => {
9521
9655
  queryClient.setQueryData(props.activeQuery.queryKey, newData);
9522
9656
  };
9523
9657
  insert(_el$3, createComponent(List, {}));
9524
- createRenderEffect(() => className(_el$3, styles.actionButton));
9658
+ createRenderEffect(() => className(_el$3, styles().actionButton));
9525
9659
  return _el$3;
9526
9660
  })();
9527
9661
  };
9528
9662
  var DeleteItemButton = (props) => {
9529
- const styles = getStyles();
9663
+ const theme = useTheme();
9664
+ const styles = createMemo(() => {
9665
+ return theme() === "dark" ? darkStyles : lightStyles;
9666
+ });
9530
9667
  const queryClient = useQueryDevtoolsContext().client;
9531
9668
  return (() => {
9532
9669
  const _el$4 = _tmpl$42();
@@ -9536,15 +9673,46 @@ var DeleteItemButton = (props) => {
9536
9673
  queryClient.setQueryData(props.activeQuery.queryKey, newData);
9537
9674
  };
9538
9675
  insert(_el$4, createComponent(Trash, {}));
9539
- createRenderEffect(() => className(_el$4, clsx(styles.actionButton)));
9676
+ createRenderEffect(() => className(_el$4, clsx(styles().actionButton)));
9540
9677
  return _el$4;
9541
9678
  })();
9542
9679
  };
9680
+ var ToggleValueButton = (props) => {
9681
+ const theme = useTheme();
9682
+ const styles = createMemo(() => {
9683
+ return theme() === "dark" ? darkStyles : lightStyles;
9684
+ });
9685
+ const queryClient = useQueryDevtoolsContext().client;
9686
+ return (() => {
9687
+ const _el$5 = _tmpl$52();
9688
+ _el$5.$$click = () => {
9689
+ const oldData = props.activeQuery.state.data;
9690
+ const newData = updateNestedDataByPath(oldData, props.dataPath, !props.value);
9691
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
9692
+ };
9693
+ insert(_el$5, createComponent(Check, {
9694
+ get theme() {
9695
+ return theme();
9696
+ },
9697
+ get checked() {
9698
+ return props.value;
9699
+ }
9700
+ }));
9701
+ createRenderEffect(() => className(_el$5, clsx(styles().actionButton, u`
9702
+ width: ${tokens.size[3.5]};
9703
+ height: ${tokens.size[3.5]};
9704
+ `)));
9705
+ return _el$5;
9706
+ })();
9707
+ };
9543
9708
  function isIterable(x) {
9544
9709
  return Symbol.iterator in x;
9545
9710
  }
9546
9711
  function Explorer(props) {
9547
- const styles = getStyles();
9712
+ const theme = useTheme();
9713
+ const styles = createMemo(() => {
9714
+ return theme() === "dark" ? darkStyles : lightStyles;
9715
+ });
9548
9716
  const queryClient = useQueryDevtoolsContext().client;
9549
9717
  const [expanded, setExpanded] = createSignal((props.defaultExpanded || []).includes(props.label));
9550
9718
  const toggleExpanded = () => setExpanded((old) => !old);
@@ -9587,36 +9755,36 @@ function Explorer(props) {
9587
9755
  const subEntryPages = createMemo(() => chunkArray(subEntries(), 100));
9588
9756
  const currentDataPath = props.dataPath ?? [];
9589
9757
  return (() => {
9590
- const _el$5 = _tmpl$52();
9591
- insert(_el$5, createComponent(Show, {
9758
+ const _el$6 = _tmpl$62();
9759
+ insert(_el$6, createComponent(Show, {
9592
9760
  get when() {
9593
9761
  return subEntryPages().length;
9594
9762
  },
9595
9763
  get children() {
9596
9764
  return [(() => {
9597
- const _el$6 = _tmpl$62(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.firstChild;
9598
- _el$7.$$click = () => toggleExpanded();
9599
- insert(_el$7, createComponent(Expander, {
9765
+ const _el$7 = _tmpl$72(), _el$8 = _el$7.firstChild, _el$9 = _el$8.firstChild, _el$10 = _el$9.nextSibling, _el$11 = _el$10.nextSibling, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild;
9766
+ _el$8.$$click = () => toggleExpanded();
9767
+ insert(_el$8, createComponent(Expander, {
9600
9768
  get expanded() {
9601
9769
  return expanded();
9602
9770
  }
9603
- }), _el$8);
9604
- insert(_el$9, () => props.label);
9605
- insert(_el$11, () => String(type()).toLowerCase() === "iterable" ? "(Iterable) " : "", _el$12);
9606
- insert(_el$11, () => subEntries().length, _el$12);
9607
- insert(_el$11, () => subEntries().length > 1 ? `items` : `item`, null);
9608
- insert(_el$6, createComponent(Show, {
9771
+ }), _el$9);
9772
+ insert(_el$10, () => props.label);
9773
+ insert(_el$12, () => String(type()).toLowerCase() === "iterable" ? "(Iterable) " : "", _el$13);
9774
+ insert(_el$12, () => subEntries().length, _el$13);
9775
+ insert(_el$12, () => subEntries().length > 1 ? `items` : `item`, null);
9776
+ insert(_el$7, createComponent(Show, {
9609
9777
  get when() {
9610
9778
  return props.editable;
9611
9779
  },
9612
9780
  get children() {
9613
- const _el$13 = _tmpl$52();
9614
- insert(_el$13, createComponent(CopyButton, {
9781
+ const _el$14 = _tmpl$62();
9782
+ insert(_el$14, createComponent(CopyButton, {
9615
9783
  get value() {
9616
9784
  return props.value;
9617
9785
  }
9618
9786
  }), null);
9619
- insert(_el$13, createComponent(Show, {
9787
+ insert(_el$14, createComponent(Show, {
9620
9788
  get when() {
9621
9789
  return props.itemsDeletable && props.activeQuery !== void 0;
9622
9790
  },
@@ -9629,7 +9797,7 @@ function Explorer(props) {
9629
9797
  });
9630
9798
  }
9631
9799
  }), null);
9632
- insert(_el$13, createComponent(Show, {
9800
+ insert(_el$14, createComponent(Show, {
9633
9801
  get when() {
9634
9802
  return type() === "array" && props.activeQuery !== void 0;
9635
9803
  },
@@ -9642,22 +9810,22 @@ function Explorer(props) {
9642
9810
  });
9643
9811
  }
9644
9812
  }), null);
9645
- createRenderEffect(() => className(_el$13, styles.actions));
9646
- return _el$13;
9813
+ createRenderEffect(() => className(_el$14, styles().actions));
9814
+ return _el$14;
9647
9815
  }
9648
9816
  }), null);
9649
9817
  createRenderEffect((_p$) => {
9650
- const _v$3 = styles.expanderButtonContainer, _v$4 = styles.expanderButton, _v$5 = styles.info;
9651
- _v$3 !== _p$._v$3 && className(_el$6, _p$._v$3 = _v$3);
9652
- _v$4 !== _p$._v$4 && className(_el$7, _p$._v$4 = _v$4);
9653
- _v$5 !== _p$._v$5 && className(_el$11, _p$._v$5 = _v$5);
9818
+ const _v$3 = styles().expanderButtonContainer, _v$4 = styles().expanderButton, _v$5 = styles().info;
9819
+ _v$3 !== _p$._v$3 && className(_el$7, _p$._v$3 = _v$3);
9820
+ _v$4 !== _p$._v$4 && className(_el$8, _p$._v$4 = _v$4);
9821
+ _v$5 !== _p$._v$5 && className(_el$12, _p$._v$5 = _v$5);
9654
9822
  return _p$;
9655
9823
  }, {
9656
9824
  _v$3: void 0,
9657
9825
  _v$4: void 0,
9658
9826
  _v$5: void 0
9659
9827
  });
9660
- return _el$6;
9828
+ return _el$7;
9661
9829
  })(), createComponent(Show, {
9662
9830
  get when() {
9663
9831
  return expanded();
@@ -9668,8 +9836,8 @@ function Explorer(props) {
9668
9836
  return subEntryPages().length === 1;
9669
9837
  },
9670
9838
  get children() {
9671
- const _el$14 = _tmpl$52();
9672
- insert(_el$14, createComponent(Key, {
9839
+ const _el$15 = _tmpl$62();
9840
+ insert(_el$15, createComponent(Key, {
9673
9841
  get each() {
9674
9842
  return subEntries();
9675
9843
  },
@@ -9700,38 +9868,38 @@ function Explorer(props) {
9700
9868
  });
9701
9869
  }
9702
9870
  }));
9703
- createRenderEffect(() => className(_el$14, styles.subEntry));
9704
- return _el$14;
9871
+ createRenderEffect(() => className(_el$15, styles().subEntry));
9872
+ return _el$15;
9705
9873
  }
9706
9874
  }), createComponent(Show, {
9707
9875
  get when() {
9708
9876
  return subEntryPages().length > 1;
9709
9877
  },
9710
9878
  get children() {
9711
- const _el$15 = _tmpl$52();
9712
- insert(_el$15, createComponent(Index, {
9879
+ const _el$16 = _tmpl$62();
9880
+ insert(_el$16, createComponent(Index, {
9713
9881
  get each() {
9714
9882
  return subEntryPages();
9715
9883
  },
9716
- children: (entries3, index) => (() => {
9717
- const _el$20 = _tmpl$92(), _el$21 = _el$20.firstChild, _el$22 = _el$21.firstChild, _el$23 = _el$22.firstChild, _el$27 = _el$23.nextSibling, _el$25 = _el$27.nextSibling, _el$28 = _el$25.nextSibling; _el$28.nextSibling;
9718
- _el$22.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
9719
- insert(_el$22, createComponent(Expander, {
9884
+ children: (entries2, index) => (() => {
9885
+ const _el$22 = _tmpl$112(), _el$23 = _el$22.firstChild, _el$24 = _el$23.firstChild, _el$25 = _el$24.firstChild, _el$29 = _el$25.nextSibling, _el$27 = _el$29.nextSibling, _el$30 = _el$27.nextSibling; _el$30.nextSibling;
9886
+ _el$24.$$click = () => setExpandedPages((old) => old.includes(index) ? old.filter((d) => d !== index) : [...old, index]);
9887
+ insert(_el$24, createComponent(Expander, {
9720
9888
  get expanded() {
9721
9889
  return expandedPages().includes(index);
9722
9890
  }
9723
- }), _el$23);
9724
- insert(_el$22, index * 100, _el$27);
9725
- insert(_el$22, index * 100 + 100 - 1, _el$28);
9726
- insert(_el$21, createComponent(Show, {
9891
+ }), _el$25);
9892
+ insert(_el$24, index * 100, _el$29);
9893
+ insert(_el$24, index * 100 + 100 - 1, _el$30);
9894
+ insert(_el$23, createComponent(Show, {
9727
9895
  get when() {
9728
9896
  return expandedPages().includes(index);
9729
9897
  },
9730
9898
  get children() {
9731
- const _el$29 = _tmpl$52();
9732
- insert(_el$29, createComponent(Key, {
9899
+ const _el$31 = _tmpl$62();
9900
+ insert(_el$31, createComponent(Key, {
9733
9901
  get each() {
9734
- return entries3();
9902
+ return entries2();
9735
9903
  },
9736
9904
  by: (entry) => entry.label,
9737
9905
  children: (entry) => createComponent(Explorer, {
@@ -9755,70 +9923,96 @@ function Explorer(props) {
9755
9923
  }
9756
9924
  })
9757
9925
  }));
9758
- createRenderEffect(() => className(_el$29, styles.subEntry));
9759
- return _el$29;
9926
+ createRenderEffect(() => className(_el$31, styles().subEntry));
9927
+ return _el$31;
9760
9928
  }
9761
9929
  }), null);
9762
9930
  createRenderEffect((_p$) => {
9763
- const _v$10 = styles.entry, _v$11 = styles.expanderButton;
9764
- _v$10 !== _p$._v$10 && className(_el$21, _p$._v$10 = _v$10);
9765
- _v$11 !== _p$._v$11 && className(_el$22, _p$._v$11 = _v$11);
9931
+ const _v$10 = styles().entry, _v$11 = styles().expanderButton;
9932
+ _v$10 !== _p$._v$10 && className(_el$23, _p$._v$10 = _v$10);
9933
+ _v$11 !== _p$._v$11 && className(_el$24, _p$._v$11 = _v$11);
9766
9934
  return _p$;
9767
9935
  }, {
9768
9936
  _v$10: void 0,
9769
9937
  _v$11: void 0
9770
9938
  });
9771
- return _el$20;
9939
+ return _el$22;
9772
9940
  })()
9773
9941
  }));
9774
- createRenderEffect(() => className(_el$15, styles.subEntry));
9775
- return _el$15;
9942
+ createRenderEffect(() => className(_el$16, styles().subEntry));
9943
+ return _el$16;
9776
9944
  }
9777
9945
  })];
9778
9946
  }
9779
9947
  })];
9780
9948
  }
9781
9949
  }), null);
9782
- insert(_el$5, createComponent(Show, {
9950
+ insert(_el$6, createComponent(Show, {
9783
9951
  get when() {
9784
9952
  return subEntryPages().length === 0;
9785
9953
  },
9786
9954
  get children() {
9787
- const _el$16 = _tmpl$82(), _el$17 = _el$16.firstChild, _el$18 = _el$17.firstChild;
9788
- insert(_el$17, () => props.label, _el$18);
9789
- insert(_el$16, createComponent(Show, {
9955
+ const _el$17 = _tmpl$102(), _el$18 = _el$17.firstChild, _el$19 = _el$18.firstChild;
9956
+ insert(_el$18, () => props.label, _el$19);
9957
+ insert(_el$17, createComponent(Show, {
9790
9958
  get when() {
9791
- return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
9959
+ return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number" || type() === "boolean");
9792
9960
  },
9793
9961
  get fallback() {
9794
9962
  return (() => {
9795
- const _el$30 = _tmpl$102();
9796
- insert(_el$30, () => displayValue(props.value));
9797
- createRenderEffect(() => className(_el$30, styles.value));
9798
- return _el$30;
9963
+ const _el$32 = _tmpl$92();
9964
+ insert(_el$32, () => displayValue(props.value));
9965
+ createRenderEffect(() => className(_el$32, styles().value));
9966
+ return _el$32;
9799
9967
  })();
9800
9968
  },
9801
9969
  get children() {
9802
- const _el$19 = _tmpl$72();
9803
- _el$19.addEventListener("change", (changeEvent) => {
9804
- const oldData = props.activeQuery.state.data;
9805
- const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
9806
- queryClient.setQueryData(props.activeQuery.queryKey, newData);
9807
- });
9808
- createRenderEffect((_p$) => {
9809
- const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles.value, styles.editableInput);
9810
- _v$6 !== _p$._v$6 && setAttribute(_el$19, "type", _p$._v$6 = _v$6);
9811
- _v$7 !== _p$._v$7 && className(_el$19, _p$._v$7 = _v$7);
9812
- return _p$;
9813
- }, {
9814
- _v$6: void 0,
9815
- _v$7: void 0
9816
- });
9817
- createRenderEffect(() => _el$19.value = props.value);
9818
- return _el$19;
9970
+ return [createComponent(Show, {
9971
+ get when() {
9972
+ return createMemo(() => !!(props.editable && props.activeQuery !== void 0))() && (type() === "string" || type() === "number");
9973
+ },
9974
+ get children() {
9975
+ const _el$20 = _tmpl$82();
9976
+ _el$20.addEventListener("change", (changeEvent) => {
9977
+ const oldData = props.activeQuery.state.data;
9978
+ const newData = updateNestedDataByPath(oldData, currentDataPath, type() === "number" ? changeEvent.target.valueAsNumber : changeEvent.target.value);
9979
+ queryClient.setQueryData(props.activeQuery.queryKey, newData);
9980
+ });
9981
+ createRenderEffect((_p$) => {
9982
+ const _v$6 = type() === "number" ? "number" : "text", _v$7 = clsx(styles().value, styles().editableInput);
9983
+ _v$6 !== _p$._v$6 && setAttribute(_el$20, "type", _p$._v$6 = _v$6);
9984
+ _v$7 !== _p$._v$7 && className(_el$20, _p$._v$7 = _v$7);
9985
+ return _p$;
9986
+ }, {
9987
+ _v$6: void 0,
9988
+ _v$7: void 0
9989
+ });
9990
+ createRenderEffect(() => _el$20.value = props.value);
9991
+ return _el$20;
9992
+ }
9993
+ }), createComponent(Show, {
9994
+ get when() {
9995
+ return type() === "boolean";
9996
+ },
9997
+ get children() {
9998
+ const _el$21 = _tmpl$92();
9999
+ insert(_el$21, createComponent(ToggleValueButton, {
10000
+ get activeQuery() {
10001
+ return props.activeQuery;
10002
+ },
10003
+ dataPath: currentDataPath,
10004
+ get value() {
10005
+ return props.value;
10006
+ }
10007
+ }), null);
10008
+ insert(_el$21, () => displayValue(props.value), null);
10009
+ createRenderEffect(() => className(_el$21, clsx(styles().value, styles().actions, styles().editableInput)));
10010
+ return _el$21;
10011
+ }
10012
+ })];
9819
10013
  }
9820
10014
  }), null);
9821
- insert(_el$16, createComponent(Show, {
10015
+ insert(_el$17, createComponent(Show, {
9822
10016
  get when() {
9823
10017
  return props.editable && props.itemsDeletable && props.activeQuery !== void 0;
9824
10018
  },
@@ -9832,28 +10026,29 @@ function Explorer(props) {
9832
10026
  }
9833
10027
  }), null);
9834
10028
  createRenderEffect((_p$) => {
9835
- const _v$8 = styles.row, _v$9 = styles.label;
9836
- _v$8 !== _p$._v$8 && className(_el$16, _p$._v$8 = _v$8);
9837
- _v$9 !== _p$._v$9 && className(_el$17, _p$._v$9 = _v$9);
10029
+ const _v$8 = styles().row, _v$9 = styles().label;
10030
+ _v$8 !== _p$._v$8 && className(_el$17, _p$._v$8 = _v$8);
10031
+ _v$9 !== _p$._v$9 && className(_el$18, _p$._v$9 = _v$9);
9838
10032
  return _p$;
9839
10033
  }, {
9840
10034
  _v$8: void 0,
9841
10035
  _v$9: void 0
9842
10036
  });
9843
- return _el$16;
10037
+ return _el$17;
9844
10038
  }
9845
10039
  }), null);
9846
- createRenderEffect(() => className(_el$5, styles.entry));
9847
- return _el$5;
10040
+ createRenderEffect(() => className(_el$6, styles().entry));
10041
+ return _el$6;
9848
10042
  })();
9849
10043
  }
9850
- var getStyles = () => {
10044
+ var stylesFactory = (theme) => {
9851
10045
  const {
9852
10046
  colors,
9853
10047
  font,
9854
10048
  size: size2,
9855
10049
  border
9856
10050
  } = tokens;
10051
+ const t2 = (light, dark) => theme === "light" ? light : dark;
9857
10052
  return {
9858
10053
  entry: u`
9859
10054
  & * {
@@ -9867,7 +10062,7 @@ var getStyles = () => {
9867
10062
  subEntry: u`
9868
10063
  margin: 0 0 0 0.5em;
9869
10064
  padding-left: 0.75em;
9870
- border-left: 2px solid ${colors.darkGray[400]};
10065
+ border-left: 2px solid ${t2(colors.gray[300], colors.darkGray[400])};
9871
10066
  /* outline: 1px solid ${colors.teal[400]}; */
9872
10067
  `,
9873
10068
  expander: u`
@@ -9916,21 +10111,22 @@ var getStyles = () => {
9916
10111
  }
9917
10112
  `,
9918
10113
  info: u`
9919
- color: ${colors.gray[500]};
10114
+ color: ${t2(colors.gray[500], colors.gray[500])};
9920
10115
  font-size: ${font.size.xs};
9921
10116
  margin-left: ${size2[1]};
9922
10117
  /* outline: 1px solid ${colors.yellow[400]}; */
9923
10118
  `,
9924
10119
  label: u`
9925
- color: ${colors.gray[300]};
10120
+ color: ${t2(colors.gray[700], colors.gray[300])};
9926
10121
  `,
9927
10122
  value: u`
9928
- color: ${colors.purple[400]};
10123
+ color: ${t2(colors.purple[600], colors.purple[400])};
9929
10124
  flex-grow: 1;
9930
10125
  `,
9931
10126
  actions: u`
9932
10127
  display: inline-flex;
9933
10128
  gap: ${size2[2]};
10129
+ align-items: center;
9934
10130
  `,
9935
10131
  row: u`
9936
10132
  display: inline-flex;
@@ -9938,19 +10134,22 @@ var getStyles = () => {
9938
10134
  width: 100%;
9939
10135
  margin-bottom: ${size2[0.5]};
9940
10136
  line-height: 1.125rem;
10137
+ align-items: center;
9941
10138
  `,
9942
10139
  editableInput: u`
9943
10140
  border: none;
9944
- padding: 0px ${size2[1]};
10141
+ padding: ${size2[0.5]} ${size2[1]} ${size2[0.5]} ${size2[1.5]};
9945
10142
  flex-grow: 1;
9946
- background-color: ${colors.gray[900]};
10143
+ border-radius: ${border.radius.xs};
10144
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
9947
10145
 
9948
10146
  &:hover {
9949
- background-color: ${colors.gray[800]};
10147
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
9950
10148
  }
9951
10149
  `,
9952
10150
  actionButton: u`
9953
10151
  background-color: transparent;
10152
+ color: ${t2(colors.gray[500], colors.gray[500])};
9954
10153
  border: none;
9955
10154
  display: inline-flex;
9956
10155
  padding: 0px;
@@ -9963,14 +10162,7 @@ var getStyles = () => {
9963
10162
  z-index: 1;
9964
10163
 
9965
10164
  &:hover svg {
9966
- .copier,
9967
- .list {
9968
- stroke: ${colors.gray[500]} !important;
9969
- }
9970
-
9971
- .list-item {
9972
- stroke: ${colors.gray[700]};
9973
- }
10165
+ color: ${t2(colors.gray[600], colors.gray[400])};
9974
10166
  }
9975
10167
 
9976
10168
  &:focus-visible {
@@ -9981,6 +10173,8 @@ var getStyles = () => {
9981
10173
  `
9982
10174
  };
9983
10175
  };
10176
+ var lightStyles = stylesFactory("light");
10177
+ var darkStyles = stylesFactory("dark");
9984
10178
  delegateEvents(["click"]);
9985
10179
 
9986
10180
  // src/fonts.ts
@@ -9992,7 +10186,7 @@ var loadFonts = () => {
9992
10186
  };
9993
10187
 
9994
10188
  // src/Devtools.tsx
9995
- var _tmpl$15 = /* @__PURE__ */ template(`<div><div aria-hidden="true"></div><button aria-label="Open Tanstack query devtools">`);
10189
+ var _tmpl$19 = /* @__PURE__ */ template(`<div><div aria-hidden=true></div><button aria-label="Open Tanstack query devtools">`);
9996
10190
  var _tmpl$23 = /* @__PURE__ */ template(`<div>`);
9997
10191
  var _tmpl$33 = /* @__PURE__ */ template(`<span>Asc`);
9998
10192
  var _tmpl$43 = /* @__PURE__ */ template(`<span>Desc`);
@@ -10002,22 +10196,27 @@ var _tmpl$73 = /* @__PURE__ */ template(`<span>Top`);
10002
10196
  var _tmpl$83 = /* @__PURE__ */ template(`<span>Bottom`);
10003
10197
  var _tmpl$93 = /* @__PURE__ */ template(`<span>Left`);
10004
10198
  var _tmpl$103 = /* @__PURE__ */ template(`<span>Right`);
10005
- var _tmpl$112 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key" type="text" placeholder="Filter" class="tsqd-query-filter-textfield"></div><div><select></select></div><button class="tsqd-query-filter-sort-order-btn"></button></div><div><button aria-label="Clear query cache" title="Clear query cache"></button><button></button></div></div><div><div class="tsqd-queries-container">`);
10006
- var _tmpl$122 = /* @__PURE__ */ template(`<option>Sort by `);
10007
- var _tmpl$132 = /* @__PURE__ */ template(`<div class="tsqd-query-disabled-indicator">disabled`);
10008
- var _tmpl$142 = /* @__PURE__ */ template(`<button><div></div><code class="tsqd-query-hash">`);
10009
- var _tmpl$152 = /* @__PURE__ */ template(`<div role="tooltip" id="tsqd-status-tooltip">`);
10010
- var _tmpl$16 = /* @__PURE__ */ template(`<span>`);
10011
- var _tmpl$17 = /* @__PURE__ */ template(`<button><span></span><span>`);
10012
- var _tmpl$18 = /* @__PURE__ */ template(`<button><span></span> Error`);
10013
- var _tmpl$19 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value="" disabled selected>`);
10014
- var _tmpl$20 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class="tsqd-query-details-summary"><pre><code></code></pre><span></span></div><div class="tsqd-query-details-observers-count"><span>Observers:</span><span></span></div><div class="tsqd-query-details-last-updated"><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
10015
- var _tmpl$21 = /* @__PURE__ */ template(`<option>`);
10199
+ var _tmpl$113 = /* @__PURE__ */ template(`<span>Theme`);
10200
+ var _tmpl$122 = /* @__PURE__ */ template(`<span>Light`);
10201
+ var _tmpl$132 = /* @__PURE__ */ template(`<span>Dark`);
10202
+ var _tmpl$142 = /* @__PURE__ */ template(`<span>System`);
10203
+ var _tmpl$152 = /* @__PURE__ */ template(`<aside aria-label="Tanstack query devtools"><div></div><button aria-label="Close tanstack query devtools"></button><div><div><button aria-label="Close Tanstack query devtools"><span>TANSTACK</span><span> v</span></button></div><div><div><div><input aria-label="Filter queries by query key"type=text placeholder=Filter class=tsqd-query-filter-textfield></div><div><select></select></div><button class=tsqd-query-filter-sort-order-btn></button></div><div><button aria-label="Clear query cache"title="Clear query cache"></button><button></button></div></div><div><div class=tsqd-queries-container>`);
10204
+ var _tmpl$162 = /* @__PURE__ */ template(`<option>Sort by `);
10205
+ var _tmpl$172 = /* @__PURE__ */ template(`<div class=tsqd-query-disabled-indicator>disabled`);
10206
+ var _tmpl$182 = /* @__PURE__ */ template(`<button><div></div><code class=tsqd-query-hash>`);
10207
+ var _tmpl$192 = /* @__PURE__ */ template(`<div role=tooltip id=tsqd-status-tooltip>`);
10208
+ var _tmpl$20 = /* @__PURE__ */ template(`<span>`);
10209
+ var _tmpl$21 = /* @__PURE__ */ template(`<button><span></span><span>`);
10210
+ var _tmpl$222 = /* @__PURE__ */ template(`<button><span></span> Error`);
10211
+ var _tmpl$232 = /* @__PURE__ */ template(`<div><span></span>Trigger Error<select><option value=""disabled selected>`);
10212
+ var _tmpl$24 = /* @__PURE__ */ template(`<div><div>Query Details</div><div><div class=tsqd-query-details-summary><pre><code></code></pre><span></span></div><div class=tsqd-query-details-observers-count><span>Observers:</span><span></span></div><div class=tsqd-query-details-last-updated><span>Last Updated:</span><span></span></div></div><div>Actions</div><div><button><span></span>Refetch</button><button><span></span>Invalidate</button><button><span></span>Reset</button><button><span></span>Remove</button><button><span></span> Loading</button></div><div>Data Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"></div><div>Query Explorer</div><div class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer">`);
10213
+ var _tmpl$25 = /* @__PURE__ */ template(`<option>`);
10016
10214
  var firstBreakpoint = 1024;
10017
10215
  var secondBreakpoint = 796;
10018
10216
  var thirdBreakpoint = 700;
10019
10217
  var BUTTON_POSITION = "bottom-right";
10020
10218
  var POSITION = "bottom";
10219
+ var THEME_PREFERENCE = "system";
10021
10220
  var INITIAL_IS_OPEN = false;
10022
10221
  var DEFAULT_HEIGHT = 500;
10023
10222
  var DEFAULT_WIDTH = 500;
@@ -10026,33 +10225,51 @@ var DEFAULT_SORT_ORDER = 1;
10026
10225
  var [selectedQueryHash, setSelectedQueryHash] = createSignal(null);
10027
10226
  var [panelWidth, setPanelWidth] = createSignal(0);
10028
10227
  var DevtoolsComponent = (props) => {
10228
+ const [localStore, setLocalStore] = createLocalStorage({
10229
+ prefix: "TanstackQueryDevtools"
10230
+ });
10231
+ const colorScheme = getPreferredColorScheme();
10232
+ const theme = createMemo(() => {
10233
+ const preference = localStore.theme_preference || THEME_PREFERENCE;
10234
+ if (preference !== "system")
10235
+ return preference;
10236
+ return colorScheme();
10237
+ });
10029
10238
  return createComponent(QueryDevtoolsContext.Provider, {
10030
10239
  value: props,
10031
10240
  get children() {
10032
- return createComponent(Devtools, {});
10241
+ return createComponent(ThemeContext.Provider, {
10242
+ value: theme,
10243
+ get children() {
10244
+ return createComponent(Devtools, {
10245
+ localStore,
10246
+ setLocalStore
10247
+ });
10248
+ }
10249
+ });
10033
10250
  }
10034
10251
  });
10035
10252
  };
10036
10253
  var Devtools_default = DevtoolsComponent;
10037
- var Devtools = () => {
10254
+ var Devtools = (props) => {
10038
10255
  loadFonts();
10039
- const styles = getStyles2();
10040
- const [localStore, setLocalStore] = createLocalStorage({
10041
- prefix: "TanstackQueryDevtools"
10256
+ const theme = useTheme();
10257
+ const styles = createMemo(() => {
10258
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10042
10259
  });
10043
10260
  const buttonPosition = createMemo(() => {
10044
10261
  return useQueryDevtoolsContext().buttonPosition || BUTTON_POSITION;
10045
10262
  });
10046
10263
  const isOpen = createMemo(() => {
10047
- return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
10264
+ return props.localStore.open === "true" ? true : props.localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
10048
10265
  });
10049
10266
  const position = createMemo(() => {
10050
- return localStore.position || useQueryDevtoolsContext().position || POSITION;
10267
+ return props.localStore.position || useQueryDevtoolsContext().position || POSITION;
10051
10268
  });
10052
10269
  createEffect(() => {
10053
10270
  const root = document.querySelector(".tsqd-parent-container");
10054
- const height = localStore.height || DEFAULT_HEIGHT;
10055
- const width = localStore.width || DEFAULT_WIDTH;
10271
+ const height = props.localStore.height || DEFAULT_HEIGHT;
10272
+ const width = props.localStore.width || DEFAULT_WIDTH;
10056
10273
  const panelPosition = position();
10057
10274
  root.style.setProperty("--tsqd-panel-height", `${panelPosition === "top" ? "-" : ""}${height}px`);
10058
10275
  root.style.setProperty("--tsqd-panel-width", `${panelPosition === "left" ? "-" : ""}${width}px`);
@@ -10068,8 +10285,12 @@ var Devtools = () => {
10068
10285
  },
10069
10286
  get children() {
10070
10287
  return createComponent(DevtoolsPanel, {
10071
- localStore,
10072
- setLocalStore
10288
+ get localStore() {
10289
+ return props.localStore;
10290
+ },
10291
+ get setLocalStore() {
10292
+ return props.setLocalStore;
10293
+ }
10073
10294
  });
10074
10295
  }
10075
10296
  });
@@ -10083,11 +10304,11 @@ var Devtools = () => {
10083
10304
  return !isOpen();
10084
10305
  },
10085
10306
  get children() {
10086
- const _el$2 = _tmpl$15(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10307
+ const _el$2 = _tmpl$19(), _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling;
10087
10308
  insert(_el$3, createComponent(TanstackLogo, {}));
10088
- _el$4.$$click = () => setLocalStore("open", "true");
10309
+ _el$4.$$click = () => props.setLocalStore("open", "true");
10089
10310
  insert(_el$4, createComponent(TanstackLogo, {}));
10090
- createRenderEffect(() => className(_el$2, clsx(styles.devtoolsBtn, styles[`devtoolsBtn-position-${buttonPosition()}`])));
10311
+ createRenderEffect(() => className(_el$2, clsx(styles().devtoolsBtn, styles()[`devtoolsBtn-position-${buttonPosition()}`])));
10091
10312
  return _el$2;
10092
10313
  }
10093
10314
  });
@@ -10118,7 +10339,10 @@ var Devtools = () => {
10118
10339
  })();
10119
10340
  };
10120
10341
  var DevtoolsPanel = (props) => {
10121
- const styles = getStyles2();
10342
+ const theme = useTheme();
10343
+ const styles = createMemo(() => {
10344
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10345
+ });
10122
10346
  const [isResizing, setIsResizing] = createSignal(false);
10123
10347
  const sort = createMemo(() => props.localStore.sort || DEFAULT_SORT_FN_NAME);
10124
10348
  const sortOrder = createMemo(() => Number(props.localStore.sortOrder) || DEFAULT_SORT_ORDER);
@@ -10227,8 +10451,24 @@ var DevtoolsPanel = (props) => {
10227
10451
  });
10228
10452
  });
10229
10453
  });
10454
+ const getPanelDynamicStyles = () => {
10455
+ const {
10456
+ colors
10457
+ } = tokens;
10458
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10459
+ if (panelWidth() < secondBreakpoint) {
10460
+ return u`
10461
+ flex-direction: column;
10462
+ background-color: ${t2(colors.gray[300], colors.gray[600])};
10463
+ `;
10464
+ }
10465
+ return u`
10466
+ flex-direction: row;
10467
+ background-color: ${t2(colors.gray[200], colors.darkGray[900])};
10468
+ `;
10469
+ };
10230
10470
  return (() => {
10231
- const _el$5 = _tmpl$112(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$32 = _el$14.nextSibling, _el$33 = _el$32.firstChild;
10471
+ const _el$5 = _tmpl$152(), _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$7.nextSibling, _el$9 = _el$8.firstChild, _el$10 = _el$9.firstChild, _el$11 = _el$10.firstChild, _el$12 = _el$11.nextSibling, _el$13 = _el$12.firstChild, _el$14 = _el$9.nextSibling, _el$15 = _el$14.firstChild, _el$16 = _el$15.firstChild, _el$17 = _el$16.firstChild, _el$18 = _el$16.nextSibling, _el$19 = _el$18.firstChild, _el$20 = _el$18.nextSibling, _el$23 = _el$15.nextSibling, _el$24 = _el$23.firstChild, _el$25 = _el$24.nextSibling, _el$36 = _el$14.nextSibling, _el$37 = _el$36.firstChild;
10232
10472
  const _ref$ = panelRef;
10233
10473
  typeof _ref$ === "function" ? use(_ref$, _el$5) : panelRef = _el$5;
10234
10474
  _el$6.$$mousedown = handleDragStart;
@@ -10244,10 +10484,10 @@ var DevtoolsPanel = (props) => {
10244
10484
  _el$17.$$input = (e2) => props.setLocalStore("filter", e2.currentTarget.value);
10245
10485
  _el$19.addEventListener("change", (e2) => props.setLocalStore("sort", e2.currentTarget.value));
10246
10486
  insert(_el$19, () => Object.keys(sortFns).map((key) => (() => {
10247
- const _el$34 = _tmpl$122(); _el$34.firstChild;
10248
- _el$34.value = key;
10249
- insert(_el$34, key, null);
10250
- return _el$34;
10487
+ const _el$38 = _tmpl$162(); _el$38.firstChild;
10488
+ _el$38.value = key;
10489
+ insert(_el$38, key, null);
10490
+ return _el$38;
10251
10491
  })()));
10252
10492
  insert(_el$18, createComponent(ChevronDown, {}), null);
10253
10493
  _el$20.$$click = () => {
@@ -10291,7 +10531,7 @@ var DevtoolsPanel = (props) => {
10291
10531
  get children() {
10292
10532
  return [createComponent(index$d.Trigger, {
10293
10533
  get ["class"]() {
10294
- return clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
10534
+ return clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-settings");
10295
10535
  },
10296
10536
  get children() {
10297
10537
  return createComponent(Settings, {});
@@ -10300,12 +10540,12 @@ var DevtoolsPanel = (props) => {
10300
10540
  get children() {
10301
10541
  return createComponent(index$d.Content, {
10302
10542
  get ["class"]() {
10303
- return clsx(styles.settingsMenu, "tsqd-settings-menu");
10543
+ return clsx(styles().settingsMenu, "tsqd-settings-menu");
10304
10544
  },
10305
10545
  get children() {
10306
10546
  return [(() => {
10307
10547
  const _el$26 = _tmpl$53();
10308
- createRenderEffect(() => className(_el$26, clsx(styles.settingsMenuHeader, "tsqd-settings-menu-header")));
10548
+ createRenderEffect(() => className(_el$26, clsx(styles().settingsMenuHeader, "tsqd-settings-menu-header")));
10309
10549
  return _el$26;
10310
10550
  })(), createComponent(index$d.Sub, {
10311
10551
  overlap: true,
@@ -10314,7 +10554,7 @@ var DevtoolsPanel = (props) => {
10314
10554
  get children() {
10315
10555
  return [createComponent(index$d.SubTrigger, {
10316
10556
  get ["class"]() {
10317
- return clsx(styles.settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10557
+ return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10318
10558
  },
10319
10559
  get children() {
10320
10560
  return [_tmpl$63(), createComponent(ChevronDown, {})];
@@ -10323,7 +10563,7 @@ var DevtoolsPanel = (props) => {
10323
10563
  get children() {
10324
10564
  return createComponent(index$d.SubContent, {
10325
10565
  get ["class"]() {
10326
- return clsx(styles.settingsMenu, "tsqd-settings-submenu");
10566
+ return clsx(styles().settingsMenu, "tsqd-settings-submenu");
10327
10567
  },
10328
10568
  get children() {
10329
10569
  return [createComponent(index$d.Item, {
@@ -10332,7 +10572,7 @@ var DevtoolsPanel = (props) => {
10332
10572
  },
10333
10573
  as: "button",
10334
10574
  get ["class"]() {
10335
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10575
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10336
10576
  },
10337
10577
  get children() {
10338
10578
  return [_tmpl$73(), createComponent(ArrowUp, {})];
@@ -10343,7 +10583,7 @@ var DevtoolsPanel = (props) => {
10343
10583
  },
10344
10584
  as: "button",
10345
10585
  get ["class"]() {
10346
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10586
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10347
10587
  },
10348
10588
  get children() {
10349
10589
  return [_tmpl$83(), createComponent(ArrowDown, {})];
@@ -10354,7 +10594,7 @@ var DevtoolsPanel = (props) => {
10354
10594
  },
10355
10595
  as: "button",
10356
10596
  get ["class"]() {
10357
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10597
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10358
10598
  },
10359
10599
  get children() {
10360
10600
  return [_tmpl$93(), createComponent(ArrowLeft, {})];
@@ -10365,7 +10605,7 @@ var DevtoolsPanel = (props) => {
10365
10605
  },
10366
10606
  as: "button",
10367
10607
  get ["class"]() {
10368
- return clsx(styles.settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
10608
+ return clsx(styles().settingsSubButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-right");
10369
10609
  },
10370
10610
  get children() {
10371
10611
  return [_tmpl$103(), createComponent(ArrowRight, {})];
@@ -10376,6 +10616,64 @@ var DevtoolsPanel = (props) => {
10376
10616
  }
10377
10617
  })];
10378
10618
  }
10619
+ }), createComponent(index$d.Sub, {
10620
+ overlap: true,
10621
+ gutter: 8,
10622
+ shift: -4,
10623
+ get children() {
10624
+ return [createComponent(index$d.SubTrigger, {
10625
+ get ["class"]() {
10626
+ return clsx(styles().settingsSubTrigger, "tsqd-settings-menu-sub-trigger", "tsqd-settings-menu-sub-trigger-position");
10627
+ },
10628
+ get children() {
10629
+ return [_tmpl$113(), createComponent(ChevronDown, {})];
10630
+ }
10631
+ }), createComponent(index$d.Portal, {
10632
+ get children() {
10633
+ return createComponent(index$d.SubContent, {
10634
+ get ["class"]() {
10635
+ return clsx(styles().settingsMenu, "tsqd-settings-submenu");
10636
+ },
10637
+ get children() {
10638
+ return [createComponent(index$d.Item, {
10639
+ onSelect: () => {
10640
+ props.setLocalStore("theme_preference", "light");
10641
+ },
10642
+ as: "button",
10643
+ get ["class"]() {
10644
+ return clsx(styles().settingsSubButton, props.localStore.theme_preference === "light" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-top");
10645
+ },
10646
+ get children() {
10647
+ return [_tmpl$122(), createComponent(Sun, {})];
10648
+ }
10649
+ }), createComponent(index$d.Item, {
10650
+ onSelect: () => {
10651
+ props.setLocalStore("theme_preference", "dark");
10652
+ },
10653
+ as: "button",
10654
+ get ["class"]() {
10655
+ return clsx(styles().settingsSubButton, props.localStore.theme_preference === "dark" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-bottom");
10656
+ },
10657
+ get children() {
10658
+ return [_tmpl$132(), createComponent(Moon, {})];
10659
+ }
10660
+ }), createComponent(index$d.Item, {
10661
+ onSelect: () => {
10662
+ props.setLocalStore("theme_preference", "system");
10663
+ },
10664
+ as: "button",
10665
+ get ["class"]() {
10666
+ return clsx(styles().settingsSubButton, props.localStore.theme_preference === "system" && styles().themeSelectedButton, "tsqd-settings-menu-position-btn", "tsqd-settings-menu-position-btn-left");
10667
+ },
10668
+ get children() {
10669
+ return [_tmpl$142(), createComponent(Monitor, {})];
10670
+ }
10671
+ })];
10672
+ }
10673
+ });
10674
+ }
10675
+ })];
10676
+ }
10379
10677
  })];
10380
10678
  }
10381
10679
  });
@@ -10383,7 +10681,7 @@ var DevtoolsPanel = (props) => {
10383
10681
  })];
10384
10682
  }
10385
10683
  }), null);
10386
- insert(_el$33, createComponent(Key, {
10684
+ insert(_el$37, createComponent(Key, {
10387
10685
  by: (q) => q.queryHash,
10388
10686
  get each() {
10389
10687
  return queries();
@@ -10403,19 +10701,16 @@ var DevtoolsPanel = (props) => {
10403
10701
  }
10404
10702
  }), null);
10405
10703
  createRenderEffect((_p$) => {
10406
- const _v$ = clsx(styles.panel, styles[`panel-position-${position()}`], u`
10407
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
10408
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
10409
- `, {
10704
+ const _v$ = clsx(styles().panel, styles()[`panel-position-${position()}`], getPanelDynamicStyles(), {
10410
10705
  [u`
10411
10706
  min-width: min-content;
10412
10707
  `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
10413
- }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles.dragHandle, styles[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles.closeBtn, styles[`closeBtn-position-${position()}`], "tsqd-minimize-btn"), _v$6 = clsx(styles.queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
10708
+ }, "tsqd-main-panel"), _v$2 = position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto", _v$3 = position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto", _v$4 = clsx(styles().dragHandle, styles()[`dragHandle-position-${position()}`], "tsqd-drag-handle"), _v$5 = clsx(styles().closeBtn, styles()[`closeBtn-position-${position()}`], "tsqd-minimize-btn"), _v$6 = clsx(styles().queriesContainer, panelWidth() < secondBreakpoint && selectedQueryHash() && u`
10414
10709
  height: 50%;
10415
10710
  max-height: 50%;
10416
- `, "tsqd-queries-container"), _v$7 = clsx(styles.row, "tsqd-header"), _v$8 = clsx(styles.logo, "tsqd-text-logo-container"), _v$9 = clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles.row, u`
10711
+ `, "tsqd-queries-container"), _v$7 = clsx(styles().row, "tsqd-header"), _v$8 = clsx(styles().logo, "tsqd-text-logo-container"), _v$9 = clsx(styles().tanstackLogo, "tsqd-text-logo-tanstack"), _v$10 = clsx(styles().queryFlavorLogo, "tsqd-text-logo-query-flavor"), _v$11 = clsx(styles().row, u`
10417
10712
  gap: ${tokens.size[2.5]};
10418
- `, "tsqd-filters-actions-container"), _v$12 = clsx(styles.filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles.filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles.filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles.actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles.actionsBtn, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles.overflowQueryContainer, "tsqd-queries-overflow-container");
10713
+ `, "tsqd-filters-actions-container"), _v$12 = clsx(styles().filtersContainer, "tsqd-filters-container"), _v$13 = clsx(styles().filterInput, "tsqd-query-filter-textfield-container"), _v$14 = clsx(styles().filterSelect, "tsqd-query-filter-sort-container"), _v$15 = `Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`, _v$16 = sortOrder() === -1, _v$17 = clsx(styles().actionsContainer, "tsqd-actions-container"), _v$18 = clsx(styles().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), _v$19 = clsx(styles().actionsBtn, offline() && styles().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), _v$20 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$21 = offline(), _v$22 = `${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, _v$23 = clsx(styles().overflowQueryContainer, "tsqd-queries-overflow-container");
10419
10714
  _v$ !== _p$._v$ && className(_el$5, _p$._v$ = _v$);
10420
10715
  _v$2 !== _p$._v$2 && ((_p$._v$2 = _v$2) != null ? _el$5.style.setProperty("height", _v$2) : _el$5.style.removeProperty("height"));
10421
10716
  _v$3 !== _p$._v$3 && ((_p$._v$3 = _v$3) != null ? _el$5.style.setProperty("width", _v$3) : _el$5.style.removeProperty("width"));
@@ -10438,7 +10733,7 @@ var DevtoolsPanel = (props) => {
10438
10733
  _v$20 !== _p$._v$20 && setAttribute(_el$25, "aria-label", _p$._v$20 = _v$20);
10439
10734
  _v$21 !== _p$._v$21 && setAttribute(_el$25, "aria-pressed", _p$._v$21 = _v$21);
10440
10735
  _v$22 !== _p$._v$22 && setAttribute(_el$25, "title", _p$._v$22 = _v$22);
10441
- _v$23 !== _p$._v$23 && className(_el$32, _p$._v$23 = _v$23);
10736
+ _v$23 !== _p$._v$23 && className(_el$36, _p$._v$23 = _v$23);
10442
10737
  return _p$;
10443
10738
  }, {
10444
10739
  _v$: void 0,
@@ -10471,7 +10766,15 @@ var DevtoolsPanel = (props) => {
10471
10766
  })();
10472
10767
  };
10473
10768
  var QueryRow = (props) => {
10474
- const styles = getStyles2();
10769
+ const theme = useTheme();
10770
+ const styles = createMemo(() => {
10771
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10772
+ });
10773
+ const {
10774
+ colors,
10775
+ alpha
10776
+ } = tokens;
10777
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10475
10778
  const queryState = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().find({
10476
10779
  queryKey: props.query.queryKey
10477
10780
  })?.state);
@@ -10489,41 +10792,47 @@ var QueryRow = (props) => {
10489
10792
  observerCount: observers(),
10490
10793
  isStale: isStale()
10491
10794
  }));
10795
+ const getObserverCountColorStyles = () => {
10796
+ if (color() === "gray") {
10797
+ return u`
10798
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
10799
+ color: ${t2(colors[color()][700], colors[color()][300])};
10800
+ `;
10801
+ }
10802
+ return u`
10803
+ background-color: ${t2(colors[color()][200] + alpha[80], colors[color()][900])};
10804
+ color: ${t2(colors[color()][800], colors[color()][300])};
10805
+ `;
10806
+ };
10492
10807
  return createComponent(Show, {
10493
10808
  get when() {
10494
10809
  return queryState();
10495
10810
  },
10496
10811
  get children() {
10497
- const _el$36 = _tmpl$142(), _el$37 = _el$36.firstChild, _el$38 = _el$37.nextSibling;
10498
- _el$36.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
10499
- insert(_el$37, observers);
10500
- insert(_el$38, () => props.query.queryHash);
10501
- insert(_el$36, createComponent(Show, {
10812
+ const _el$40 = _tmpl$182(), _el$41 = _el$40.firstChild, _el$42 = _el$41.nextSibling;
10813
+ _el$40.$$click = () => setSelectedQueryHash(props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash);
10814
+ insert(_el$41, observers);
10815
+ insert(_el$42, () => props.query.queryHash);
10816
+ insert(_el$40, createComponent(Show, {
10502
10817
  get when() {
10503
10818
  return isDisabled();
10504
10819
  },
10505
10820
  get children() {
10506
- return _tmpl$132();
10821
+ return _tmpl$172();
10507
10822
  }
10508
10823
  }), null);
10509
10824
  createRenderEffect((_p$) => {
10510
- const _v$24 = clsx(styles.queryRow, selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(color() === "gray" ? u`
10511
- background-color: ${tokens.colors[color()][700]};
10512
- color: ${tokens.colors[color()][300]};
10513
- ` : u`
10514
- background-color: ${tokens.colors[color()][900]};
10515
- color: ${tokens.colors[color()][300]};
10516
- `, "tsqd-query-observer-count");
10517
- _v$24 !== _p$._v$24 && className(_el$36, _p$._v$24 = _v$24);
10518
- _v$25 !== _p$._v$25 && setAttribute(_el$36, "aria-label", _p$._v$25 = _v$25);
10519
- _v$26 !== _p$._v$26 && className(_el$37, _p$._v$26 = _v$26);
10825
+ const _v$24 = clsx(styles().queryRow, selectedQueryHash() === props.query.queryHash && styles().selectedQueryRow, "tsqd-query-row"), _v$25 = `Query key ${props.query.queryHash}`, _v$26 = clsx(getObserverCountColorStyles(), "tsqd-query-observer-count");
10826
+ _v$24 !== _p$._v$24 && className(_el$40, _p$._v$24 = _v$24);
10827
+ _v$25 !== _p$._v$25 && setAttribute(_el$40, "aria-label", _p$._v$25 = _v$25);
10828
+ _v$26 !== _p$._v$26 && className(_el$41, _p$._v$26 = _v$26);
10520
10829
  return _p$;
10521
10830
  }, {
10522
10831
  _v$24: void 0,
10523
10832
  _v$25: void 0,
10524
10833
  _v$26: void 0
10525
10834
  });
10526
- return _el$36;
10835
+ return _el$40;
10527
10836
  }
10528
10837
  });
10529
10838
  };
@@ -10533,50 +10842,61 @@ var QueryStatusCount = () => {
10533
10842
  const fetching = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "fetching").length);
10534
10843
  const paused = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "paused").length);
10535
10844
  const inactive = createSubscribeToQueryCacheBatcher((queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length);
10536
- const styles = getStyles2();
10845
+ const theme = useTheme();
10846
+ const styles = createMemo(() => {
10847
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10848
+ });
10537
10849
  return (() => {
10538
- const _el$40 = _tmpl$23();
10539
- insert(_el$40, createComponent(QueryStatus, {
10850
+ const _el$44 = _tmpl$23();
10851
+ insert(_el$44, createComponent(QueryStatus, {
10540
10852
  label: "Fresh",
10541
10853
  color: "green",
10542
10854
  get count() {
10543
10855
  return fresh();
10544
10856
  }
10545
10857
  }), null);
10546
- insert(_el$40, createComponent(QueryStatus, {
10858
+ insert(_el$44, createComponent(QueryStatus, {
10547
10859
  label: "Fetching",
10548
10860
  color: "blue",
10549
10861
  get count() {
10550
10862
  return fetching();
10551
10863
  }
10552
10864
  }), null);
10553
- insert(_el$40, createComponent(QueryStatus, {
10865
+ insert(_el$44, createComponent(QueryStatus, {
10554
10866
  label: "Paused",
10555
10867
  color: "purple",
10556
10868
  get count() {
10557
10869
  return paused();
10558
10870
  }
10559
10871
  }), null);
10560
- insert(_el$40, createComponent(QueryStatus, {
10872
+ insert(_el$44, createComponent(QueryStatus, {
10561
10873
  label: "Stale",
10562
10874
  color: "yellow",
10563
10875
  get count() {
10564
10876
  return stale();
10565
10877
  }
10566
10878
  }), null);
10567
- insert(_el$40, createComponent(QueryStatus, {
10879
+ insert(_el$44, createComponent(QueryStatus, {
10568
10880
  label: "Inactive",
10569
10881
  color: "gray",
10570
10882
  get count() {
10571
10883
  return inactive();
10572
10884
  }
10573
10885
  }), null);
10574
- createRenderEffect(() => className(_el$40, clsx(styles.queryStatusContainer, "tsqd-query-status-container")));
10575
- return _el$40;
10886
+ createRenderEffect(() => className(_el$44, clsx(styles().queryStatusContainer, "tsqd-query-status-container")));
10887
+ return _el$44;
10576
10888
  })();
10577
10889
  };
10578
10890
  var QueryStatus = (props) => {
10579
- const styles = getStyles2();
10891
+ const theme = useTheme();
10892
+ const styles = createMemo(() => {
10893
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10894
+ });
10895
+ const {
10896
+ colors,
10897
+ alpha
10898
+ } = tokens;
10899
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10580
10900
  let tagRef;
10581
10901
  const [mouseOver, setMouseOver] = createSignal(false);
10582
10902
  const [focused, setFocused] = createSignal(false);
@@ -10592,78 +10912,83 @@ var QueryStatus = (props) => {
10592
10912
  return true;
10593
10913
  });
10594
10914
  return (() => {
10595
- const _el$41 = _tmpl$17(), _el$43 = _el$41.firstChild, _el$45 = _el$43.nextSibling;
10915
+ const _el$45 = _tmpl$21(), _el$47 = _el$45.firstChild, _el$49 = _el$47.nextSibling;
10596
10916
  const _ref$3 = tagRef;
10597
- typeof _ref$3 === "function" ? use(_ref$3, _el$41) : tagRef = _el$41;
10598
- _el$41.addEventListener("mouseleave", () => {
10917
+ typeof _ref$3 === "function" ? use(_ref$3, _el$45) : tagRef = _el$45;
10918
+ _el$45.addEventListener("mouseleave", () => {
10599
10919
  setMouseOver(false);
10600
10920
  setFocused(false);
10601
10921
  });
10602
- _el$41.addEventListener("mouseenter", () => setMouseOver(true));
10603
- _el$41.addEventListener("blur", () => setFocused(false));
10604
- _el$41.addEventListener("focus", () => setFocused(true));
10605
- spread(_el$41, mergeProps({
10922
+ _el$45.addEventListener("mouseenter", () => setMouseOver(true));
10923
+ _el$45.addEventListener("blur", () => setFocused(false));
10924
+ _el$45.addEventListener("focus", () => setFocused(true));
10925
+ spread(_el$45, mergeProps({
10606
10926
  get disabled() {
10607
10927
  return showLabel();
10608
10928
  },
10609
10929
  get ["class"]() {
10610
- return clsx(styles.queryStatusTag, !showLabel() && u`
10930
+ return clsx(styles().queryStatusTag, !showLabel() && u`
10611
10931
  cursor: pointer;
10612
10932
  &:hover {
10613
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
10933
+ background: ${t2(colors.gray[200], colors.darkGray[400])}${alpha[80]};
10614
10934
  }
10615
10935
  `, "tsqd-query-status-tag", `tsqd-query-status-tag-${props.label.toLowerCase()}`);
10616
10936
  }
10617
10937
  }, () => mouseOver() || focused() ? {
10618
10938
  "aria-describedby": "tsqd-status-tooltip"
10619
10939
  } : {}), false, true);
10620
- insert(_el$41, createComponent(Show, {
10940
+ insert(_el$45, createComponent(Show, {
10621
10941
  get when() {
10622
10942
  return createMemo(() => !!!showLabel())() && (mouseOver() || focused());
10623
10943
  },
10624
10944
  get children() {
10625
- const _el$42 = _tmpl$152();
10626
- insert(_el$42, () => props.label);
10627
- createRenderEffect(() => className(_el$42, clsx(styles.statusTooltip, "tsqd-query-status-tooltip")));
10628
- return _el$42;
10945
+ const _el$46 = _tmpl$192();
10946
+ insert(_el$46, () => props.label);
10947
+ createRenderEffect(() => className(_el$46, clsx(styles().statusTooltip, "tsqd-query-status-tooltip")));
10948
+ return _el$46;
10629
10949
  }
10630
- }), _el$43);
10631
- insert(_el$41, createComponent(Show, {
10950
+ }), _el$47);
10951
+ insert(_el$45, createComponent(Show, {
10632
10952
  get when() {
10633
10953
  return showLabel();
10634
10954
  },
10635
10955
  get children() {
10636
- const _el$44 = _tmpl$16();
10637
- insert(_el$44, () => props.label);
10638
- createRenderEffect(() => className(_el$44, clsx(styles.queryStatusTagLabel, "tsqd-query-status-tag-label")));
10639
- return _el$44;
10956
+ const _el$48 = _tmpl$20();
10957
+ insert(_el$48, () => props.label);
10958
+ createRenderEffect(() => className(_el$48, clsx(styles().queryStatusTagLabel, "tsqd-query-status-tag-label")));
10959
+ return _el$48;
10640
10960
  }
10641
- }), _el$45);
10642
- insert(_el$45, () => props.count);
10961
+ }), _el$49);
10962
+ insert(_el$49, () => props.count);
10643
10963
  createRenderEffect((_p$) => {
10644
10964
  const _v$27 = clsx(u`
10645
10965
  width: ${tokens.size[1.5]};
10646
10966
  height: ${tokens.size[1.5]};
10647
10967
  border-radius: ${tokens.border.radius.full};
10648
10968
  background-color: ${tokens.colors[props.color][500]};
10649
- `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles.queryStatusCount, props.count > 0 && props.color !== "gray" ? u`
10650
- background-color: ${tokens.colors[props.color][900]};
10651
- color: ${tokens.colors[props.color][300]};
10652
- ` : u`
10653
- color: ${tokens.colors["gray"][400]};
10654
- `, "tsqd-query-status-tag-count");
10655
- _v$27 !== _p$._v$27 && className(_el$43, _p$._v$27 = _v$27);
10656
- _v$28 !== _p$._v$28 && className(_el$45, _p$._v$28 = _v$28);
10969
+ `, "tsqd-query-status-tag-dot"), _v$28 = clsx(styles().queryStatusCount, props.count > 0 && props.color !== "gray" && u`
10970
+ background-color: ${t2(colors[props.color][100], colors[props.color][900])};
10971
+ color: ${t2(colors[props.color][700], colors[props.color][300])};
10972
+ `, "tsqd-query-status-tag-count");
10973
+ _v$27 !== _p$._v$27 && className(_el$47, _p$._v$27 = _v$27);
10974
+ _v$28 !== _p$._v$28 && className(_el$49, _p$._v$28 = _v$28);
10657
10975
  return _p$;
10658
10976
  }, {
10659
10977
  _v$27: void 0,
10660
10978
  _v$28: void 0
10661
10979
  });
10662
- return _el$41;
10980
+ return _el$45;
10663
10981
  })();
10664
10982
  };
10665
10983
  var QueryDetails = () => {
10666
- const styles = getStyles2();
10984
+ const theme = useTheme();
10985
+ const styles = createMemo(() => {
10986
+ return theme() === "dark" ? darkStyles2 : lightStyles2;
10987
+ });
10988
+ const {
10989
+ colors
10990
+ } = tokens;
10991
+ const t2 = (light, dark) => theme() === "dark" ? dark : light;
10667
10992
  const queryClient = useQueryDevtoolsContext().client;
10668
10993
  const [restoringLoading, setRestoringLoading] = createSignal(false);
10669
10994
  const errorTypes = createMemo(() => {
@@ -10720,24 +11045,38 @@ var QueryDetails = () => {
10720
11045
  setRestoringLoading(false);
10721
11046
  }
10722
11047
  });
11048
+ const getQueryStatusColors = () => {
11049
+ if (color() === "gray") {
11050
+ return u`
11051
+ background-color: ${t2(colors[color()][200], colors[color()][700])};
11052
+ color: ${t2(colors[color()][700], colors[color()][300])};
11053
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11054
+ `;
11055
+ }
11056
+ return u`
11057
+ background-color: ${t2(colors[color()][100], colors[color()][900])};
11058
+ color: ${t2(colors[color()][700], colors[color()][300])};
11059
+ border-color: ${t2(colors[color()][400], colors[color()][600])};
11060
+ `;
11061
+ };
10723
11062
  return createComponent(Show, {
10724
11063
  get when() {
10725
11064
  return createMemo(() => !!activeQuery())() && activeQueryState();
10726
11065
  },
10727
11066
  get children() {
10728
- const _el$46 = _tmpl$20(), _el$47 = _el$46.firstChild, _el$48 = _el$47.nextSibling, _el$49 = _el$48.firstChild, _el$50 = _el$49.firstChild, _el$51 = _el$50.firstChild, _el$52 = _el$50.nextSibling, _el$53 = _el$49.nextSibling, _el$54 = _el$53.firstChild, _el$55 = _el$54.nextSibling, _el$56 = _el$53.nextSibling, _el$57 = _el$56.firstChild, _el$58 = _el$57.nextSibling, _el$59 = _el$48.nextSibling, _el$60 = _el$59.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.firstChild, _el$63 = _el$61.nextSibling, _el$64 = _el$63.firstChild, _el$65 = _el$63.nextSibling, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$70.nextSibling, _el$80 = _el$60.nextSibling, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling, _el$83 = _el$82.nextSibling;
10729
- insert(_el$51, () => displayValue(activeQuery().queryKey, true));
10730
- insert(_el$52, statusLabel);
10731
- insert(_el$55, observerCount);
10732
- insert(_el$58, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
10733
- _el$61.$$click = handleRefetch;
10734
- _el$63.$$click = () => queryClient.invalidateQueries(activeQuery());
10735
- _el$65.$$click = () => queryClient.resetQueries(activeQuery());
10736
- _el$67.$$click = () => {
11067
+ const _el$50 = _tmpl$24(), _el$51 = _el$50.firstChild, _el$52 = _el$51.nextSibling, _el$53 = _el$52.firstChild, _el$54 = _el$53.firstChild, _el$55 = _el$54.firstChild, _el$56 = _el$54.nextSibling, _el$57 = _el$53.nextSibling, _el$58 = _el$57.firstChild, _el$59 = _el$58.nextSibling, _el$60 = _el$57.nextSibling, _el$61 = _el$60.firstChild, _el$62 = _el$61.nextSibling, _el$63 = _el$52.nextSibling, _el$64 = _el$63.nextSibling, _el$65 = _el$64.firstChild, _el$66 = _el$65.firstChild, _el$67 = _el$65.nextSibling, _el$68 = _el$67.firstChild, _el$69 = _el$67.nextSibling, _el$70 = _el$69.firstChild, _el$71 = _el$69.nextSibling, _el$72 = _el$71.firstChild, _el$73 = _el$71.nextSibling, _el$74 = _el$73.firstChild, _el$75 = _el$74.nextSibling, _el$84 = _el$64.nextSibling, _el$85 = _el$84.nextSibling, _el$86 = _el$85.nextSibling, _el$87 = _el$86.nextSibling;
11068
+ insert(_el$55, () => displayValue(activeQuery().queryKey, true));
11069
+ insert(_el$56, statusLabel);
11070
+ insert(_el$59, observerCount);
11071
+ insert(_el$62, () => new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString());
11072
+ _el$65.$$click = handleRefetch;
11073
+ _el$67.$$click = () => queryClient.invalidateQueries(activeQuery());
11074
+ _el$69.$$click = () => queryClient.resetQueries(activeQuery());
11075
+ _el$71.$$click = () => {
10737
11076
  queryClient.removeQueries(activeQuery());
10738
11077
  setSelectedQueryHash(null);
10739
11078
  };
10740
- _el$69.$$click = () => {
11079
+ _el$73.$$click = () => {
10741
11080
  if (activeQuery()?.state.data === void 0) {
10742
11081
  setRestoringLoading(true);
10743
11082
  restoreQueryAfterLoadingOrError();
@@ -10765,79 +11104,79 @@ var QueryDetails = () => {
10765
11104
  });
10766
11105
  }
10767
11106
  };
10768
- insert(_el$69, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$71);
10769
- insert(_el$60, createComponent(Show, {
11107
+ insert(_el$73, () => queryStatus() === "pending" ? "Restore" : "Trigger", _el$75);
11108
+ insert(_el$64, createComponent(Show, {
10770
11109
  get when() {
10771
11110
  return errorTypes().length === 0 || queryStatus() === "error";
10772
11111
  },
10773
11112
  get children() {
10774
- const _el$72 = _tmpl$18(), _el$73 = _el$72.firstChild, _el$74 = _el$73.nextSibling;
10775
- _el$72.$$click = () => {
11113
+ const _el$76 = _tmpl$222(), _el$77 = _el$76.firstChild, _el$78 = _el$77.nextSibling;
11114
+ _el$76.$$click = () => {
10776
11115
  if (!activeQuery().state.error) {
10777
11116
  triggerError();
10778
11117
  } else {
10779
11118
  queryClient.resetQueries(activeQuery());
10780
11119
  }
10781
11120
  };
10782
- insert(_el$72, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$74);
11121
+ insert(_el$76, () => queryStatus() === "error" ? "Restore" : "Trigger", _el$78);
10783
11122
  createRenderEffect((_p$) => {
10784
11123
  const _v$29 = clsx(u`
10785
- color: ${tokens.colors.red[400]};
11124
+ color: ${t2(colors.red[500], colors.red[400])};
10786
11125
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error"), _v$30 = queryStatus() === "pending", _v$31 = u`
10787
- background-color: ${tokens.colors.red[400]};
11126
+ background-color: ${t2(colors.red[500], colors.red[400])};
10788
11127
  `;
10789
- _v$29 !== _p$._v$29 && className(_el$72, _p$._v$29 = _v$29);
10790
- _v$30 !== _p$._v$30 && (_el$72.disabled = _p$._v$30 = _v$30);
10791
- _v$31 !== _p$._v$31 && className(_el$73, _p$._v$31 = _v$31);
11128
+ _v$29 !== _p$._v$29 && className(_el$76, _p$._v$29 = _v$29);
11129
+ _v$30 !== _p$._v$30 && (_el$76.disabled = _p$._v$30 = _v$30);
11130
+ _v$31 !== _p$._v$31 && className(_el$77, _p$._v$31 = _v$31);
10792
11131
  return _p$;
10793
11132
  }, {
10794
11133
  _v$29: void 0,
10795
11134
  _v$30: void 0,
10796
11135
  _v$31: void 0
10797
11136
  });
10798
- return _el$72;
11137
+ return _el$76;
10799
11138
  }
10800
11139
  }), null);
10801
- insert(_el$60, createComponent(Show, {
11140
+ insert(_el$64, createComponent(Show, {
10802
11141
  get when() {
10803
11142
  return !(errorTypes().length === 0 || queryStatus() === "error");
10804
11143
  },
10805
11144
  get children() {
10806
- const _el$75 = _tmpl$19(), _el$76 = _el$75.firstChild, _el$77 = _el$76.nextSibling, _el$78 = _el$77.nextSibling; _el$78.firstChild;
10807
- _el$78.addEventListener("change", (e2) => {
10808
- const errorType = errorTypes().find((t2) => t2.name === e2.currentTarget.value);
11145
+ const _el$79 = _tmpl$232(), _el$80 = _el$79.firstChild, _el$81 = _el$80.nextSibling, _el$82 = _el$81.nextSibling; _el$82.firstChild;
11146
+ _el$82.addEventListener("change", (e2) => {
11147
+ const errorType = errorTypes().find((et) => et.name === e2.currentTarget.value);
10809
11148
  triggerError(errorType);
10810
11149
  });
10811
- insert(_el$78, createComponent(For, {
11150
+ insert(_el$82, createComponent(For, {
10812
11151
  get each() {
10813
11152
  return errorTypes();
10814
11153
  },
10815
11154
  children: (errorType) => (() => {
10816
- const _el$84 = _tmpl$21();
10817
- insert(_el$84, () => errorType.name);
10818
- createRenderEffect(() => _el$84.value = errorType.name);
10819
- return _el$84;
11155
+ const _el$88 = _tmpl$25();
11156
+ insert(_el$88, () => errorType.name);
11157
+ createRenderEffect(() => _el$88.value = errorType.name);
11158
+ return _el$88;
10820
11159
  })()
10821
11160
  }), null);
10822
- insert(_el$75, createComponent(ChevronDown, {}), null);
11161
+ insert(_el$79, createComponent(ChevronDown, {}), null);
10823
11162
  createRenderEffect((_p$) => {
10824
- const _v$32 = clsx(styles.actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
11163
+ const _v$32 = clsx(styles().actionsSelect, "tsqd-query-details-actions-btn", "tsqd-query-details-action-error-multiple"), _v$33 = u`
10825
11164
  background-color: ${tokens.colors.red[400]};
10826
11165
  `, _v$34 = queryStatus() === "pending";
10827
- _v$32 !== _p$._v$32 && className(_el$75, _p$._v$32 = _v$32);
10828
- _v$33 !== _p$._v$33 && className(_el$76, _p$._v$33 = _v$33);
10829
- _v$34 !== _p$._v$34 && (_el$78.disabled = _p$._v$34 = _v$34);
11166
+ _v$32 !== _p$._v$32 && className(_el$79, _p$._v$32 = _v$32);
11167
+ _v$33 !== _p$._v$33 && className(_el$80, _p$._v$33 = _v$33);
11168
+ _v$34 !== _p$._v$34 && (_el$82.disabled = _p$._v$34 = _v$34);
10830
11169
  return _p$;
10831
11170
  }, {
10832
11171
  _v$32: void 0,
10833
11172
  _v$33: void 0,
10834
11173
  _v$34: void 0
10835
11174
  });
10836
- return _el$75;
11175
+ return _el$79;
10837
11176
  }
10838
11177
  }), null);
10839
- _el$81.style.setProperty("padding", "0.5rem");
10840
- insert(_el$81, createComponent(Explorer, {
11178
+ _el$85.style.setProperty("padding", "0.5rem");
11179
+ insert(_el$85, createComponent(Explorer, {
10841
11180
  label: "Data",
10842
11181
  defaultExpanded: ["Data"],
10843
11182
  get value() {
@@ -10848,8 +11187,8 @@ var QueryDetails = () => {
10848
11187
  return activeQuery();
10849
11188
  }
10850
11189
  }));
10851
- _el$83.style.setProperty("padding", "0.5rem");
10852
- insert(_el$83, createComponent(Explorer, {
11190
+ _el$87.style.setProperty("padding", "0.5rem");
11191
+ insert(_el$87, createComponent(Explorer, {
10853
11192
  label: "Query",
10854
11193
  defaultExpanded: ["Query", "queryKey"],
10855
11194
  get value() {
@@ -10857,58 +11196,50 @@ var QueryDetails = () => {
10857
11196
  }
10858
11197
  }));
10859
11198
  createRenderEffect((_p$) => {
10860
- const _v$35 = clsx(styles.detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles.detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles.queryDetailsStatus, color() === "gray" ? u`
10861
- background-color: ${tokens.colors[color()][700]};
10862
- color: ${tokens.colors[color()][300]};
10863
- border-color: ${tokens.colors[color()][600]};
10864
- ` : u`
10865
- background-color: ${tokens.colors[color()][900]};
10866
- color: ${tokens.colors[color()][300]};
10867
- border-color: ${tokens.colors[color()][600]};
10868
- `), _v$39 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles.actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
10869
- color: ${tokens.colors.blue[400]};
11199
+ const _v$35 = clsx(styles().detailsContainer, "tsqd-query-details-container"), _v$36 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$37 = clsx(styles().detailsBody, "tsqd-query-details-summary-container"), _v$38 = clsx(styles().queryDetailsStatus, getQueryStatusColors()), _v$39 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$40 = clsx(styles().actionsBody, "tsqd-query-details-actions-container"), _v$41 = clsx(u`
11200
+ color: ${t2(colors.blue[600], colors.blue[400])};
10870
11201
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), _v$42 = statusLabel() === "fetching", _v$43 = u`
10871
- background-color: ${tokens.colors.blue[400]};
11202
+ background-color: ${t2(colors.blue[600], colors.blue[400])};
10872
11203
  `, _v$44 = clsx(u`
10873
- color: ${tokens.colors.yellow[400]};
11204
+ color: ${t2(colors.yellow[600], colors.yellow[400])};
10874
11205
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), _v$45 = queryStatus() === "pending", _v$46 = u`
10875
- background-color: ${tokens.colors.yellow[400]};
11206
+ background-color: ${t2(colors.yellow[600], colors.yellow[400])};
10876
11207
  `, _v$47 = clsx(u`
10877
- color: ${tokens.colors.gray[300]};
11208
+ color: ${t2(colors.gray[600], colors.gray[300])};
10878
11209
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-reset"), _v$48 = queryStatus() === "pending", _v$49 = u`
10879
- background-color: ${tokens.colors.gray[400]};
11210
+ background-color: ${t2(colors.gray[600], colors.gray[400])};
10880
11211
  `, _v$50 = clsx(u`
10881
- color: ${tokens.colors.pink[400]};
11212
+ color: ${t2(colors.pink[500], colors.pink[400])};
10882
11213
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-remove"), _v$51 = statusLabel() === "fetching", _v$52 = u`
10883
- background-color: ${tokens.colors.pink[400]};
11214
+ background-color: ${t2(colors.pink[500], colors.pink[400])};
10884
11215
  `, _v$53 = clsx(u`
10885
- color: ${tokens.colors.cyan[400]};
11216
+ color: ${t2(colors.cyan[500], colors.cyan[400])};
10886
11217
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), _v$54 = restoringLoading(), _v$55 = u`
10887
- background-color: ${tokens.colors.cyan[400]};
10888
- `, _v$56 = clsx(styles.detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles.detailsHeader, "tsqd-query-details-header");
10889
- _v$35 !== _p$._v$35 && className(_el$46, _p$._v$35 = _v$35);
10890
- _v$36 !== _p$._v$36 && className(_el$47, _p$._v$36 = _v$36);
10891
- _v$37 !== _p$._v$37 && className(_el$48, _p$._v$37 = _v$37);
10892
- _v$38 !== _p$._v$38 && className(_el$52, _p$._v$38 = _v$38);
10893
- _v$39 !== _p$._v$39 && className(_el$59, _p$._v$39 = _v$39);
10894
- _v$40 !== _p$._v$40 && className(_el$60, _p$._v$40 = _v$40);
10895
- _v$41 !== _p$._v$41 && className(_el$61, _p$._v$41 = _v$41);
10896
- _v$42 !== _p$._v$42 && (_el$61.disabled = _p$._v$42 = _v$42);
10897
- _v$43 !== _p$._v$43 && className(_el$62, _p$._v$43 = _v$43);
10898
- _v$44 !== _p$._v$44 && className(_el$63, _p$._v$44 = _v$44);
10899
- _v$45 !== _p$._v$45 && (_el$63.disabled = _p$._v$45 = _v$45);
10900
- _v$46 !== _p$._v$46 && className(_el$64, _p$._v$46 = _v$46);
10901
- _v$47 !== _p$._v$47 && className(_el$65, _p$._v$47 = _v$47);
10902
- _v$48 !== _p$._v$48 && (_el$65.disabled = _p$._v$48 = _v$48);
10903
- _v$49 !== _p$._v$49 && className(_el$66, _p$._v$49 = _v$49);
10904
- _v$50 !== _p$._v$50 && className(_el$67, _p$._v$50 = _v$50);
10905
- _v$51 !== _p$._v$51 && (_el$67.disabled = _p$._v$51 = _v$51);
10906
- _v$52 !== _p$._v$52 && className(_el$68, _p$._v$52 = _v$52);
10907
- _v$53 !== _p$._v$53 && className(_el$69, _p$._v$53 = _v$53);
10908
- _v$54 !== _p$._v$54 && (_el$69.disabled = _p$._v$54 = _v$54);
10909
- _v$55 !== _p$._v$55 && className(_el$70, _p$._v$55 = _v$55);
10910
- _v$56 !== _p$._v$56 && className(_el$80, _p$._v$56 = _v$56);
10911
- _v$57 !== _p$._v$57 && className(_el$82, _p$._v$57 = _v$57);
11218
+ background-color: ${t2(colors.cyan[500], colors.cyan[400])};
11219
+ `, _v$56 = clsx(styles().detailsHeader, "tsqd-query-details-header"), _v$57 = clsx(styles().detailsHeader, "tsqd-query-details-header");
11220
+ _v$35 !== _p$._v$35 && className(_el$50, _p$._v$35 = _v$35);
11221
+ _v$36 !== _p$._v$36 && className(_el$51, _p$._v$36 = _v$36);
11222
+ _v$37 !== _p$._v$37 && className(_el$52, _p$._v$37 = _v$37);
11223
+ _v$38 !== _p$._v$38 && className(_el$56, _p$._v$38 = _v$38);
11224
+ _v$39 !== _p$._v$39 && className(_el$63, _p$._v$39 = _v$39);
11225
+ _v$40 !== _p$._v$40 && className(_el$64, _p$._v$40 = _v$40);
11226
+ _v$41 !== _p$._v$41 && className(_el$65, _p$._v$41 = _v$41);
11227
+ _v$42 !== _p$._v$42 && (_el$65.disabled = _p$._v$42 = _v$42);
11228
+ _v$43 !== _p$._v$43 && className(_el$66, _p$._v$43 = _v$43);
11229
+ _v$44 !== _p$._v$44 && className(_el$67, _p$._v$44 = _v$44);
11230
+ _v$45 !== _p$._v$45 && (_el$67.disabled = _p$._v$45 = _v$45);
11231
+ _v$46 !== _p$._v$46 && className(_el$68, _p$._v$46 = _v$46);
11232
+ _v$47 !== _p$._v$47 && className(_el$69, _p$._v$47 = _v$47);
11233
+ _v$48 !== _p$._v$48 && (_el$69.disabled = _p$._v$48 = _v$48);
11234
+ _v$49 !== _p$._v$49 && className(_el$70, _p$._v$49 = _v$49);
11235
+ _v$50 !== _p$._v$50 && className(_el$71, _p$._v$50 = _v$50);
11236
+ _v$51 !== _p$._v$51 && (_el$71.disabled = _p$._v$51 = _v$51);
11237
+ _v$52 !== _p$._v$52 && className(_el$72, _p$._v$52 = _v$52);
11238
+ _v$53 !== _p$._v$53 && className(_el$73, _p$._v$53 = _v$53);
11239
+ _v$54 !== _p$._v$54 && (_el$73.disabled = _p$._v$54 = _v$54);
11240
+ _v$55 !== _p$._v$55 && className(_el$74, _p$._v$55 = _v$55);
11241
+ _v$56 !== _p$._v$56 && className(_el$84, _p$._v$56 = _v$56);
11242
+ _v$57 !== _p$._v$57 && className(_el$86, _p$._v$57 = _v$57);
10912
11243
  return _p$;
10913
11244
  }, {
10914
11245
  _v$35: void 0,
@@ -10935,7 +11266,7 @@ var QueryDetails = () => {
10935
11266
  _v$56: void 0,
10936
11267
  _v$57: void 0
10937
11268
  });
10938
- return _el$46;
11269
+ return _el$50;
10939
11270
  }
10940
11271
  });
10941
11272
  };
@@ -10975,7 +11306,7 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
10975
11306
  });
10976
11307
  return value;
10977
11308
  };
10978
- var getStyles2 = () => {
11309
+ var stylesFactory2 = (theme) => {
10979
11310
  const {
10980
11311
  colors,
10981
11312
  font,
@@ -10984,6 +11315,7 @@ var getStyles2 = () => {
10984
11315
  shadow,
10985
11316
  border
10986
11317
  } = tokens;
11318
+ const t2 = (light, dark) => theme === "light" ? light : dark;
10987
11319
  return {
10988
11320
  devtoolsBtn: u`
10989
11321
  z-index: 100000;
@@ -11045,8 +11377,6 @@ var getStyles2 = () => {
11045
11377
  display: flex;
11046
11378
  gap: ${tokens.size[0.5]};
11047
11379
  & * {
11048
- font-family: 'Inter', sans-serif;
11049
- color: ${colors.gray[300]};
11050
11380
  box-sizing: border-box;
11051
11381
  text-transform: none;
11052
11382
  }
@@ -11073,7 +11403,7 @@ var getStyles2 = () => {
11073
11403
  left: 0;
11074
11404
  max-height: 90%;
11075
11405
  min-height: 3.5rem;
11076
- border-bottom: ${colors.darkGray[300]} 1px solid;
11406
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11077
11407
  `,
11078
11408
  "panel-position-bottom": u`
11079
11409
  bottom: 0;
@@ -11081,20 +11411,20 @@ var getStyles2 = () => {
11081
11411
  left: 0;
11082
11412
  max-height: 90%;
11083
11413
  min-height: 3.5rem;
11084
- border-top: ${colors.darkGray[300]} 1px solid;
11414
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11085
11415
  `,
11086
11416
  "panel-position-right": u`
11087
11417
  bottom: 0;
11088
11418
  right: 0;
11089
11419
  top: 0;
11090
- border-left: ${colors.darkGray[300]} 1px solid;
11420
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11091
11421
  max-width: 90%;
11092
11422
  `,
11093
11423
  "panel-position-left": u`
11094
11424
  bottom: 0;
11095
11425
  left: 0;
11096
11426
  top: 0;
11097
- border-right: ${colors.darkGray[300]} 1px solid;
11427
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11098
11428
  max-width: 90%;
11099
11429
  `,
11100
11430
  closeBtn: u`
@@ -11105,13 +11435,15 @@ var getStyles2 = () => {
11105
11435
  align-items: center;
11106
11436
  justify-content: center;
11107
11437
  outline: none;
11438
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11108
11439
  &:hover {
11109
- background-color: ${colors.darkGray[500]};
11440
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11110
11441
  }
11111
11442
  &:focus-visible {
11112
11443
  outline: 2px solid ${colors.blue[600]};
11113
11444
  }
11114
11445
  & svg {
11446
+ color: ${t2(colors.gray[600], colors.gray[400])};
11115
11447
  width: ${size2[2]};
11116
11448
  height: ${size2[2]};
11117
11449
  }
@@ -11120,11 +11452,10 @@ var getStyles2 = () => {
11120
11452
  bottom: 0;
11121
11453
  right: ${size2[2]};
11122
11454
  transform: translate(0, 100%);
11123
- background-color: ${colors.darkGray[700]};
11124
- border-right: ${colors.darkGray[300]} 1px solid;
11125
- border-left: ${colors.darkGray[300]} 1px solid;
11455
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11456
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11126
11457
  border-top: none;
11127
- border-bottom: ${colors.darkGray[300]} 1px solid;
11458
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11128
11459
  border-radius: 0px 0px ${border.radius.sm} ${border.radius.sm};
11129
11460
  padding: ${size2[0.5]} ${size2[1.5]} ${size2[1]} ${size2[1.5]};
11130
11461
 
@@ -11145,10 +11476,9 @@ var getStyles2 = () => {
11145
11476
  top: 0;
11146
11477
  right: ${size2[2]};
11147
11478
  transform: translate(0, -100%);
11148
- background-color: ${colors.darkGray[700]};
11149
- border-right: ${colors.darkGray[300]} 1px solid;
11150
- border-left: ${colors.darkGray[300]} 1px solid;
11151
- border-top: ${colors.darkGray[300]} 1px solid;
11479
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11480
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11481
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11152
11482
  border-bottom: none;
11153
11483
  border-radius: ${border.radius.sm} ${border.radius.sm} 0px 0px;
11154
11484
  padding: ${size2[1]} ${size2[1.5]} ${size2[0.5]} ${size2[1.5]};
@@ -11166,11 +11496,10 @@ var getStyles2 = () => {
11166
11496
  bottom: ${size2[2]};
11167
11497
  left: 0;
11168
11498
  transform: translate(-100%, 0);
11169
- background-color: ${colors.darkGray[700]};
11170
11499
  border-right: none;
11171
- border-left: ${colors.darkGray[300]} 1px solid;
11172
- border-top: ${colors.darkGray[300]} 1px solid;
11173
- border-bottom: ${colors.darkGray[300]} 1px solid;
11500
+ border-left: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11501
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11502
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11174
11503
  border-radius: ${border.radius.sm} 0px 0px ${border.radius.sm};
11175
11504
  padding: ${size2[1.5]} ${size2[0.5]} ${size2[1.5]} ${size2[1]};
11176
11505
 
@@ -11190,11 +11519,10 @@ var getStyles2 = () => {
11190
11519
  bottom: ${size2[2]};
11191
11520
  right: 0;
11192
11521
  transform: translate(100%, 0);
11193
- background-color: ${colors.darkGray[700]};
11194
11522
  border-left: none;
11195
- border-right: ${colors.darkGray[300]} 1px solid;
11196
- border-top: ${colors.darkGray[300]} 1px solid;
11197
- border-bottom: ${colors.darkGray[300]} 1px solid;
11523
+ border-right: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11524
+ border-top: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11525
+ border-bottom: ${t2(colors.gray[400], colors.darkGray[300])} 1px solid;
11198
11526
  border-radius: 0px ${border.radius.sm} ${border.radius.sm} 0px;
11199
11527
  padding: ${size2[1.5]} ${size2[1]} ${size2[1.5]} ${size2[0.5]};
11200
11528
 
@@ -11212,15 +11540,18 @@ var getStyles2 = () => {
11212
11540
  `,
11213
11541
  queriesContainer: u`
11214
11542
  flex: 1 1 700px;
11215
- background-color: ${colors.darkGray[700]};
11543
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11216
11544
  display: flex;
11217
11545
  flex-direction: column;
11546
+ & * {
11547
+ font-family: 'Inter', sans-serif;
11548
+ }
11218
11549
  `,
11219
11550
  dragHandle: u`
11220
11551
  position: absolute;
11221
11552
  transition: background-color 0.125s ease;
11222
11553
  &:hover {
11223
- background-color: ${colors.purple[400]}${alpha[90]};
11554
+ background-color: ${colors.purple[400]}${t2("", alpha[90])};
11224
11555
  }
11225
11556
  z-index: 4;
11226
11557
  `,
@@ -11254,7 +11585,7 @@ var getStyles2 = () => {
11254
11585
  align-items: center;
11255
11586
  padding: ${tokens.size[2]} ${tokens.size[2.5]};
11256
11587
  gap: ${tokens.size[3]};
11257
- border-bottom: ${colors.darkGray[500]} 1px solid;
11588
+ border-bottom: ${t2(colors.gray[300], colors.darkGray[500])} 1px solid;
11258
11589
  align-items: center;
11259
11590
  & > button {
11260
11591
  padding: 0;
@@ -11281,11 +11612,15 @@ var getStyles2 = () => {
11281
11612
  font-weight: ${font.weight.bold};
11282
11613
  line-height: ${font.lineHeight.xs};
11283
11614
  white-space: nowrap;
11615
+ color: ${t2(colors.gray[600], colors.gray[300])};
11284
11616
  `,
11285
11617
  queryFlavorLogo: u`
11286
11618
  font-weight: ${font.weight.semibold};
11287
11619
  font-size: ${font.size.xs};
11288
- background: linear-gradient(to right, #dd524b, #e9a03b);
11620
+ background: linear-gradient(
11621
+ to right,
11622
+ ${t2("#ea4037, #ff9b11", "#dd524b, #e9a03b")}
11623
+ );
11289
11624
  background-clip: text;
11290
11625
  -webkit-background-clip: text;
11291
11626
  line-height: 1;
@@ -11300,14 +11635,17 @@ var getStyles2 = () => {
11300
11635
  queryStatusTag: u`
11301
11636
  display: flex;
11302
11637
  gap: ${tokens.size[1.5]};
11303
- background: ${colors.darkGray[500]};
11638
+ box-sizing: border-box;
11639
+ height: ${tokens.size[6.5]};
11640
+ background: ${t2(colors.gray[50], colors.darkGray[500])};
11641
+ color: ${t2(colors.gray[700], colors.gray[300])};
11304
11642
  border-radius: ${tokens.border.radius.sm};
11305
11643
  font-size: ${font.size.sm};
11306
11644
  padding: ${tokens.size[1]};
11307
- padding-left: ${tokens.size[2]};
11645
+ padding-left: ${tokens.size[1.5]};
11308
11646
  align-items: center;
11309
11647
  font-weight: ${font.weight.medium};
11310
- border: none;
11648
+ border: ${t2("1px solid " + colors.gray[300], "1px solid transparent")};
11311
11649
  user-select: none;
11312
11650
  position: relative;
11313
11651
  &:focus-visible {
@@ -11324,8 +11662,8 @@ var getStyles2 = () => {
11324
11662
  display: flex;
11325
11663
  align-items: center;
11326
11664
  justify-content: center;
11327
- color: ${colors.gray[400]};
11328
- background-color: ${colors.darkGray[300]};
11665
+ color: ${t2(colors.gray[500], colors.gray[400])};
11666
+ background-color: ${t2(colors.gray[200], colors.darkGray[300])};
11329
11667
  border-radius: 2px;
11330
11668
  font-variant-numeric: tabular-nums;
11331
11669
  height: ${tokens.size[4.5]};
@@ -11333,15 +11671,15 @@ var getStyles2 = () => {
11333
11671
  statusTooltip: u`
11334
11672
  position: absolute;
11335
11673
  z-index: 1;
11336
- background-color: ${colors.darkGray[500]};
11674
+ background-color: ${t2(colors.gray[50], colors.darkGray[500])};
11337
11675
  top: 100%;
11338
11676
  left: 50%;
11339
11677
  transform: translate(-50%, calc(${tokens.size[2]}));
11340
11678
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11341
- border-radius: ${tokens.border.radius.md};
11679
+ border-radius: ${tokens.border.radius.sm};
11342
11680
  font-size: ${font.size.xs};
11343
- border: 1px solid ${colors.gray[600]};
11344
- color: ${tokens.colors["gray"][300]};
11681
+ border: 1px solid ${t2(colors.gray[400], colors.gray[600])};
11682
+ color: ${t2(colors["gray"][600], colors["gray"][300])};
11345
11683
 
11346
11684
  &::before {
11347
11685
  top: 0px;
@@ -11350,7 +11688,8 @@ var getStyles2 = () => {
11350
11688
  left: 50%;
11351
11689
  transform: translate(-50%, -100%);
11352
11690
  position: absolute;
11353
- border-color: transparent transparent ${colors.gray[600]} transparent;
11691
+ border-color: transparent transparent
11692
+ ${t2(colors.gray[400], colors.gray[600])} transparent;
11354
11693
  border-style: solid;
11355
11694
  border-width: 7px;
11356
11695
  /* transform: rotate(180deg); */
@@ -11361,17 +11700,14 @@ var getStyles2 = () => {
11361
11700
  content: ' ';
11362
11701
  display: block;
11363
11702
  left: 50%;
11364
- transform: translate(-50%, calc(-100% + 2.5px));
11703
+ transform: translate(-50%, calc(-100% + 2px));
11365
11704
  position: absolute;
11366
- border-color: transparent transparent ${colors.darkGray[500]}
11367
- transparent;
11705
+ border-color: transparent transparent
11706
+ ${t2(colors.gray[100], colors.darkGray[500])} transparent;
11368
11707
  border-style: solid;
11369
11708
  border-width: 7px;
11370
11709
  }
11371
11710
  `,
11372
- selectedQueryRow: u`
11373
- background-color: ${colors.darkGray[500]};
11374
- `,
11375
11711
  filtersContainer: u`
11376
11712
  display: flex;
11377
11713
  gap: ${tokens.size[2]};
@@ -11380,47 +11716,52 @@ var getStyles2 = () => {
11380
11716
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11381
11717
  padding-right: ${tokens.size[1.5]};
11382
11718
  border-radius: ${tokens.border.radius.sm};
11383
- background-color: ${colors.darkGray[400]};
11719
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11720
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11721
+ color: ${t2(colors.gray[700], colors.gray[300])};
11384
11722
  font-size: ${font.size.xs};
11385
11723
  display: flex;
11386
11724
  align-items: center;
11387
11725
  line-height: ${font.lineHeight.sm};
11388
11726
  gap: ${tokens.size[1.5]};
11389
11727
  max-width: 160px;
11390
- border: 1px solid ${colors.darkGray[200]};
11391
11728
  &:focus-visible {
11392
11729
  outline-offset: 2px;
11393
11730
  border-radius: ${border.radius.xs};
11394
11731
  outline: 2px solid ${colors.blue[800]};
11395
11732
  }
11733
+ & svg {
11734
+ color: ${t2(colors.gray[500], colors.gray[400])};
11735
+ }
11396
11736
  }
11397
11737
  `,
11398
11738
  filterInput: u`
11399
- padding: ${tokens.size[0.5]} ${tokens.size[2]};
11739
+ padding: ${size2[0.5]} ${size2[2]};
11400
11740
  border-radius: ${tokens.border.radius.sm};
11401
- background-color: ${colors.darkGray[400]};
11741
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11402
11742
  display: flex;
11403
11743
  box-sizing: content-box;
11404
11744
  align-items: center;
11405
11745
  gap: ${tokens.size[1.5]};
11406
11746
  max-width: 160px;
11407
11747
  min-width: 100px;
11408
- border: 1px solid ${colors.darkGray[200]};
11748
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11409
11749
  height: min-content;
11750
+ color: ${t2(colors.gray[600], colors.gray[400])};
11410
11751
  & > svg {
11411
- width: ${tokens.size[3]};
11412
- height: ${tokens.size[3]};
11752
+ width: ${size2[3]};
11753
+ height: ${size2[3]};
11413
11754
  }
11414
11755
  & input {
11415
11756
  font-size: ${font.size.xs};
11416
11757
  width: 100%;
11417
- background-color: ${colors.darkGray[400]};
11758
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11418
11759
  border: none;
11419
11760
  padding: 0;
11420
11761
  line-height: ${font.lineHeight.sm};
11421
- color: ${colors.gray[300]};
11762
+ color: ${t2(colors.gray[700], colors.gray[300])};
11422
11763
  &::placeholder {
11423
- color: ${colors.gray[300]};
11764
+ color: ${t2(colors.gray[700], colors.gray[300])};
11424
11765
  }
11425
11766
  &:focus {
11426
11767
  outline: none;
@@ -11436,24 +11777,26 @@ var getStyles2 = () => {
11436
11777
  filterSelect: u`
11437
11778
  padding: ${tokens.size[0.5]} ${tokens.size[2]};
11438
11779
  border-radius: ${tokens.border.radius.sm};
11439
- background-color: ${colors.darkGray[400]};
11780
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11440
11781
  display: flex;
11441
11782
  align-items: center;
11442
11783
  gap: ${tokens.size[1.5]};
11443
11784
  box-sizing: content-box;
11444
11785
  max-width: 160px;
11445
- border: 1px solid ${colors.darkGray[200]};
11786
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11446
11787
  height: min-content;
11447
11788
  & > svg {
11789
+ color: ${t2(colors.gray[600], colors.gray[400])};
11448
11790
  width: ${tokens.size[2]};
11449
11791
  height: ${tokens.size[2]};
11450
11792
  }
11451
11793
  & > select {
11452
11794
  appearance: none;
11795
+ color: ${t2(colors.gray[700], colors.gray[300])};
11453
11796
  min-width: 100px;
11454
11797
  line-height: ${font.lineHeight.sm};
11455
11798
  font-size: ${font.size.xs};
11456
- background-color: ${colors.darkGray[400]};
11799
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11457
11800
  border: none;
11458
11801
  &:focus {
11459
11802
  outline: none;
@@ -11471,7 +11814,8 @@ var getStyles2 = () => {
11471
11814
  `,
11472
11815
  actionsBtn: u`
11473
11816
  border-radius: ${tokens.border.radius.sm};
11474
- background-color: ${colors.darkGray[400]};
11817
+ background-color: ${t2(colors.gray[100], colors.darkGray[400])};
11818
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[200])};
11475
11819
  width: 1.625rem;
11476
11820
  height: 1.625rem;
11477
11821
  justify-content: center;
@@ -11479,13 +11823,13 @@ var getStyles2 = () => {
11479
11823
  align-items: center;
11480
11824
  gap: ${tokens.size[1.5]};
11481
11825
  max-width: 160px;
11482
- border: 1px solid ${colors.darkGray[200]};
11483
11826
  cursor: pointer;
11484
11827
  padding: 0;
11485
11828
  &:hover {
11486
- background-color: ${colors.darkGray[500]};
11829
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11487
11830
  }
11488
11831
  & svg {
11832
+ color: ${t2(colors.gray[700], colors.gray[300])};
11489
11833
  width: ${tokens.size[3]};
11490
11834
  height: ${tokens.size[3]};
11491
11835
  }
@@ -11495,6 +11839,12 @@ var getStyles2 = () => {
11495
11839
  outline: 2px solid ${colors.blue[800]};
11496
11840
  }
11497
11841
  `,
11842
+ actionsBtnOffline: u`
11843
+ & svg {
11844
+ stroke: ${t2(colors.yellow[700], colors.yellow[500])};
11845
+ fill: ${t2(colors.yellow[700], colors.yellow[500])};
11846
+ }
11847
+ `,
11498
11848
  overflowQueryContainer: u`
11499
11849
  flex: 1;
11500
11850
  overflow-y: auto;
@@ -11507,9 +11857,11 @@ var getStyles2 = () => {
11507
11857
  display: flex;
11508
11858
  align-items: center;
11509
11859
  padding: 0;
11510
- background-color: inherit;
11511
11860
  border: none;
11512
11861
  cursor: pointer;
11862
+ color: ${t2(colors.gray[700], colors.gray[300])};
11863
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11864
+ line-height: 1;
11513
11865
  &:focus {
11514
11866
  outline: none;
11515
11867
  }
@@ -11519,7 +11871,7 @@ var getStyles2 = () => {
11519
11871
  outline: 2px solid ${colors.blue[800]};
11520
11872
  }
11521
11873
  &:hover .tsqd-query-hash {
11522
- background-color: ${colors.darkGray[600]};
11874
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
11523
11875
  }
11524
11876
 
11525
11877
  & .tsqd-query-observer-count {
@@ -11534,7 +11886,7 @@ var getStyles2 = () => {
11534
11886
  font-weight: ${font.weight.medium};
11535
11887
  border-bottom-width: 1px;
11536
11888
  border-bottom-style: solid;
11537
- border-bottom: 1px solid ${colors.darkGray[700]};
11889
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[700])};
11538
11890
  }
11539
11891
  & .tsqd-query-hash {
11540
11892
  user-select: text;
@@ -11545,7 +11897,7 @@ var getStyles2 = () => {
11545
11897
  flex: 1;
11546
11898
  padding: ${tokens.size[1]} ${tokens.size[2]};
11547
11899
  font-family: 'Menlo', 'Fira Code', monospace;
11548
- border-bottom: 1px solid ${colors.darkGray[400]};
11900
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11549
11901
  text-align: left;
11550
11902
  text-overflow: clip;
11551
11903
  word-break: break-word;
@@ -11556,15 +11908,20 @@ var getStyles2 = () => {
11556
11908
  display: flex;
11557
11909
  align-items: center;
11558
11910
  padding: 0 ${tokens.size[2]};
11559
- color: ${colors.gray[300]};
11560
- background-color: ${colors.darkGray[600]};
11561
- border-bottom: 1px solid ${colors.darkGray[400]};
11911
+ color: ${t2(colors.gray[800], colors.gray[300])};
11912
+ background-color: ${t2(colors.gray[300], colors.darkGray[600])};
11913
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11562
11914
  font-size: ${font.size.xs};
11563
11915
  }
11564
11916
  `,
11917
+ selectedQueryRow: u`
11918
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11919
+ `,
11565
11920
  detailsContainer: u`
11566
11921
  flex: 1 1 700px;
11567
- background-color: ${colors.darkGray[700]};
11922
+ background-color: ${t2(colors.gray[50], colors.darkGray[700])};
11923
+ color: ${t2(colors.gray[700], colors.gray[300])};
11924
+ font-family: 'Inter', sans-serif;
11568
11925
  display: flex;
11569
11926
  flex-direction: column;
11570
11927
  overflow-y: auto;
@@ -11572,10 +11929,11 @@ var getStyles2 = () => {
11572
11929
  text-align: left;
11573
11930
  `,
11574
11931
  detailsHeader: u`
11932
+ font-family: 'Inter', sans-serif;
11575
11933
  position: sticky;
11576
11934
  top: 0;
11577
11935
  z-index: 2;
11578
- background-color: ${colors.darkGray[600]};
11936
+ background-color: ${t2(colors.gray[200], colors.darkGray[600])};
11579
11937
  padding: ${tokens.size[1.5]} ${tokens.size[2]};
11580
11938
  font-weight: ${font.weight.medium};
11581
11939
  font-size: ${font.size.xs};
@@ -11608,6 +11966,10 @@ var getStyles2 = () => {
11608
11966
  font-size: ${font.size.xs};
11609
11967
  line-height: ${font.lineHeight.xs};
11610
11968
  }
11969
+
11970
+ & pre {
11971
+ margin: 0;
11972
+ }
11611
11973
  `,
11612
11974
  queryDetailsStatus: u`
11613
11975
  border: 1px solid ${colors.darkGray[200]};
@@ -11622,12 +11984,13 @@ var getStyles2 = () => {
11622
11984
  gap: ${tokens.size[2]};
11623
11985
  padding: 0px ${tokens.size[2]};
11624
11986
  & > button {
11987
+ font-family: 'Inter', sans-serif;
11625
11988
  font-size: ${font.size.xs};
11626
11989
  padding: ${tokens.size[1]} ${tokens.size[2]};
11627
11990
  display: flex;
11628
11991
  border-radius: ${tokens.border.radius.sm};
11629
- border: 1px solid ${colors.darkGray[400]};
11630
- background-color: ${colors.darkGray[600]};
11992
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
11993
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11631
11994
  align-items: center;
11632
11995
  gap: ${tokens.size[2]};
11633
11996
  font-weight: ${font.weight.medium};
@@ -11639,7 +12002,7 @@ var getStyles2 = () => {
11639
12002
  outline: 2px solid ${colors.blue[800]};
11640
12003
  }
11641
12004
  &:hover {
11642
- background-color: ${colors.darkGray[500]};
12005
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11643
12006
  }
11644
12007
 
11645
12008
  &:disabled {
@@ -11660,17 +12023,17 @@ var getStyles2 = () => {
11660
12023
  display: flex;
11661
12024
  border-radius: ${tokens.border.radius.sm};
11662
12025
  overflow: hidden;
11663
- border: 1px solid ${colors.darkGray[400]};
11664
- background-color: ${colors.darkGray[600]};
12026
+ background-color: ${t2(colors.gray[100], colors.darkGray[600])};
12027
+ border: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
11665
12028
  align-items: center;
11666
12029
  gap: ${tokens.size[2]};
11667
12030
  font-weight: ${font.weight.medium};
11668
12031
  line-height: ${font.lineHeight.sm};
11669
- color: ${tokens.colors.red[400]};
12032
+ color: ${t2(colors.red[500], colors.red[400])};
11670
12033
  cursor: pointer;
11671
12034
  position: relative;
11672
12035
  &:hover {
11673
- background-color: ${colors.darkGray[500]};
12036
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11674
12037
  }
11675
12038
  & > span {
11676
12039
  width: ${size2[1.5]};
@@ -11711,10 +12074,10 @@ var getStyles2 = () => {
11711
12074
  flex-direction: column;
11712
12075
  gap: ${size2[0.5]};
11713
12076
  border-radius: ${tokens.border.radius.sm};
11714
- border: 1px solid ${colors.gray[700]};
11715
- background-color: ${colors.darkGray[600]};
12077
+ border: 1px solid ${t2(colors.gray[300], colors.gray[700])};
12078
+ background-color: ${t2(colors.gray[50], colors.darkGray[600])};
11716
12079
  font-size: ${font.size.xs};
11717
- color: ${colors.gray[300]};
12080
+ color: ${t2(colors.gray[700], colors.gray[300])};
11718
12081
  z-index: 99999;
11719
12082
  min-width: 120px;
11720
12083
  padding: ${size2[0.5]};
@@ -11724,17 +12087,19 @@ var getStyles2 = () => {
11724
12087
  align-items: center;
11725
12088
  justify-content: space-between;
11726
12089
  border-radius: ${tokens.border.radius.xs};
11727
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12090
+ padding: ${tokens.size[1]} ${tokens.size[1]};
11728
12091
  cursor: pointer;
11729
12092
  background-color: transparent;
11730
12093
  border: none;
12094
+ color: ${t2(colors.gray[700], colors.gray[300])};
11731
12095
  & svg {
12096
+ color: ${t2(colors.gray[600], colors.gray[400])};
11732
12097
  transform: rotate(-90deg);
11733
12098
  width: ${tokens.size[2]};
11734
12099
  height: ${tokens.size[2]};
11735
12100
  }
11736
12101
  &:hover {
11737
- background-color: ${colors.darkGray[500]};
12102
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11738
12103
  }
11739
12104
  &:focus-visible {
11740
12105
  outline-offset: 2px;
@@ -11746,33 +12111,48 @@ var getStyles2 = () => {
11746
12111
  }
11747
12112
  `,
11748
12113
  settingsMenuHeader: u`
11749
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12114
+ padding: ${tokens.size[1]} ${tokens.size[1]};
11750
12115
  font-weight: ${font.weight.medium};
11751
- border-bottom: 1px solid ${colors.darkGray[400]};
11752
- color: ${colors.gray[400]};
12116
+ border-bottom: 1px solid ${t2(colors.gray[300], colors.darkGray[400])};
12117
+ color: ${t2(colors.gray[500], colors.gray[400])};
11753
12118
  font-size: ${font.size["xs"]};
11754
12119
  `,
11755
12120
  settingsSubButton: u`
11756
12121
  display: flex;
11757
12122
  align-items: center;
11758
12123
  justify-content: space-between;
11759
- color: ${colors.gray[300]};
12124
+ color: ${t2(colors.gray[700], colors.gray[300])};
11760
12125
  font-size: ${font.size["xs"]};
11761
12126
  border-radius: ${tokens.border.radius.xs};
11762
- padding: ${tokens.size[0.5]} ${tokens.size[1]};
12127
+ padding: ${tokens.size[1]} ${tokens.size[1]};
11763
12128
  cursor: pointer;
11764
12129
  background-color: transparent;
11765
12130
  border: none;
12131
+ & svg {
12132
+ color: ${t2(colors.gray[600], colors.gray[400])};
12133
+ }
11766
12134
  &:hover {
11767
- background-color: ${colors.darkGray[500]};
12135
+ background-color: ${t2(colors.gray[200], colors.darkGray[500])};
11768
12136
  }
11769
12137
  &:focus-visible {
11770
12138
  outline-offset: 2px;
11771
12139
  outline: 2px solid ${colors.blue[800]};
11772
12140
  }
12141
+ `,
12142
+ themeSelectedButton: u`
12143
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12144
+ color: ${t2(colors.purple[700], colors.purple[300])};
12145
+ & svg {
12146
+ color: ${t2(colors.purple[700], colors.purple[300])};
12147
+ }
12148
+ &:hover {
12149
+ background-color: ${t2(colors.purple[100], colors.purple[900])};
12150
+ }
11773
12151
  `
11774
12152
  };
11775
12153
  };
12154
+ var lightStyles2 = stylesFactory2("light");
12155
+ var darkStyles2 = stylesFactory2("dark");
11776
12156
  delegateEvents(["click", "mousedown", "input"]);
11777
12157
  /*! Bundled license information:
11778
12158