@tanstack/query-devtools 5.0.0-beta.33 → 5.0.0-beta.36

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.
@@ -424,8 +424,8 @@ var characterMap = {
424
424
  var chars = Object.keys(characterMap).join("|");
425
425
  var allAccents = new RegExp(chars, "g");
426
426
  function removeAccents(str) {
427
- return str.replace(allAccents, (match2) => {
428
- return characterMap[match2];
427
+ return str.replace(allAccents, (match) => {
428
+ return characterMap[match];
429
429
  });
430
430
  }
431
431
  var rankings = {
@@ -461,8 +461,8 @@ function rankItem(item, value, options) {
461
461
  accessorThreshold: options.threshold,
462
462
  passed: false
463
463
  };
464
- for (let i = 0; i < valuesToRank.length; i++) {
465
- const rankValue = valuesToRank[i];
464
+ for (let i2 = 0; i2 < valuesToRank.length; i2++) {
465
+ const rankValue = valuesToRank[i2];
466
466
  let newRank = getMatchRanking(rankValue.itemValue, value, options);
467
467
  const {
468
468
  minRanking,
@@ -478,7 +478,7 @@ function rankItem(item, value, options) {
478
478
  if (newRank >= threshold && newRank > rankingInfo.rank) {
479
479
  rankingInfo.rank = newRank;
480
480
  rankingInfo.passed = true;
481
- rankingInfo.accessorIndex = i;
481
+ rankingInfo.accessorIndex = i2;
482
482
  rankingInfo.accessorThreshold = threshold;
483
483
  rankingInfo.rankedValue = rankValue.itemValue;
484
484
  }
@@ -550,8 +550,8 @@ function getClosenessRanking(testString, stringToRank) {
550
550
  return rankings.NO_MATCH;
551
551
  }
552
552
  charNumber = firstIndex;
553
- for (let i = 1, I = stringToRank.length; i < I; i++) {
554
- const matchChar = stringToRank[i];
553
+ for (let i2 = 1, I = stringToRank.length; i2 < I; i2++) {
554
+ const matchChar = stringToRank[i2];
555
555
  charNumber = findMatchingCharacter(matchChar, testString, charNumber);
556
556
  const found = charNumber > -1;
557
557
  if (!found) {
@@ -591,9 +591,9 @@ function getAllValuesToRank(item, accessors) {
591
591
  const accessor = accessors[j];
592
592
  const attributes = getAccessorAttributes(accessor);
593
593
  const itemValues = getItemValues(item, accessor);
594
- for (let i = 0, I = itemValues.length; i < I; i++) {
594
+ for (let i2 = 0, I = itemValues.length; i2 < I; i2++) {
595
595
  allValues.push({
596
- itemValue: itemValues[i],
596
+ itemValue: itemValues[i2],
597
597
  attributes
598
598
  });
599
599
  }
@@ -614,1287 +614,85 @@ function getAccessorAttributes(accessor) {
614
614
  };
615
615
  }
616
616
 
617
- // ../../node_modules/.pnpm/@emotion+sheet@1.2.2/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
618
- function sheetForTag(tag) {
619
- if (tag.sheet) {
620
- return tag.sheet;
617
+ // ../../node_modules/.pnpm/goober@2.1.13_csstype@3.1.2/node_modules/goober/dist/goober.modern.js
618
+ var e = { data: "" };
619
+ var t = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e;
620
+ var l = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
621
+ var a = /\/\*[^]*?\*\/| +/g;
622
+ var n = /\n+/g;
623
+ var o = (e2, t2) => {
624
+ let r2 = "", l2 = "", a2 = "";
625
+ for (let n2 in e2) {
626
+ let c2 = e2[n2];
627
+ "@" == n2[0] ? "i" == n2[1] ? r2 = n2 + " " + c2 + ";" : l2 += "f" == n2[1] ? o(c2, n2) : n2 + "{" + o(c2, "k" == n2[1] ? "" : t2) + "}" : "object" == typeof c2 ? l2 += o(c2, t2 ? t2.replace(/([^,])+/g, (e3) => n2.replace(/(^:.*)|([^,])+/g, (t3) => /&/.test(t3) ? t3.replace(/&/g, e3) : e3 ? e3 + " " + t3 : t3)) : n2) : null != c2 && (n2 = /^--/.test(n2) ? n2 : n2.replace(/[A-Z]/g, "-$&").toLowerCase(), a2 += o.p ? o.p(n2, c2) : n2 + ":" + c2 + ";");
621
628
  }
622
- for (var i = 0; i < document.styleSheets.length; i++) {
623
- if (document.styleSheets[i].ownerNode === tag) {
624
- return document.styleSheets[i];
625
- }
626
- }
627
- }
628
- function createStyleElement(options) {
629
- var tag = document.createElement("style");
630
- tag.setAttribute("data-emotion", options.key);
631
- if (options.nonce !== void 0) {
632
- tag.setAttribute("nonce", options.nonce);
633
- }
634
- tag.appendChild(document.createTextNode(""));
635
- tag.setAttribute("data-s", "");
636
- return tag;
637
- }
638
- var StyleSheet = /* @__PURE__ */ function() {
639
- function StyleSheet2(options) {
640
- var _this = this;
641
- this._insertTag = function(tag) {
642
- var before;
643
- if (_this.tags.length === 0) {
644
- if (_this.insertionPoint) {
645
- before = _this.insertionPoint.nextSibling;
646
- } else if (_this.prepend) {
647
- before = _this.container.firstChild;
648
- } else {
649
- before = _this.before;
650
- }
651
- } else {
652
- before = _this.tags[_this.tags.length - 1].nextSibling;
653
- }
654
- _this.container.insertBefore(tag, before);
655
- _this.tags.push(tag);
656
- };
657
- this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
658
- this.tags = [];
659
- this.ctr = 0;
660
- this.nonce = options.nonce;
661
- this.key = options.key;
662
- this.container = options.container;
663
- this.prepend = options.prepend;
664
- this.insertionPoint = options.insertionPoint;
665
- this.before = null;
666
- }
667
- var _proto = StyleSheet2.prototype;
668
- _proto.hydrate = function hydrate2(nodes) {
669
- nodes.forEach(this._insertTag);
670
- };
671
- _proto.insert = function insert(rule) {
672
- if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
673
- this._insertTag(createStyleElement(this));
674
- }
675
- var tag = this.tags[this.tags.length - 1];
676
- if (false) {
677
- var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
678
- if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
679
- }
680
- this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
681
- }
682
- if (this.isSpeedy) {
683
- var sheet2 = sheetForTag(tag);
684
- try {
685
- sheet2.insertRule(rule, sheet2.cssRules.length);
686
- } catch (e) {
687
- if (false) {
688
- }
689
- }
690
- } else {
691
- tag.appendChild(document.createTextNode(rule));
692
- }
693
- this.ctr++;
694
- };
695
- _proto.flush = function flush2() {
696
- this.tags.forEach(function(tag) {
697
- return tag.parentNode && tag.parentNode.removeChild(tag);
698
- });
699
- this.tags = [];
700
- this.ctr = 0;
701
- if (false) {
702
- this._alreadyInsertedOrderInsensitiveRule = false;
703
- }
704
- };
705
- return StyleSheet2;
706
- }();
707
-
708
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js
709
- var MS = "-ms-";
710
- var MOZ = "-moz-";
711
- var WEBKIT = "-webkit-";
712
- var COMMENT = "comm";
713
- var RULESET = "rule";
714
- var DECLARATION = "decl";
715
- var IMPORT = "@import";
716
- var KEYFRAMES = "@keyframes";
717
- var LAYER = "@layer";
718
-
719
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
720
- var abs = Math.abs;
721
- var from = String.fromCharCode;
722
- var assign = Object.assign;
723
- function hash(value, length2) {
724
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
725
- }
726
- function trim(value) {
727
- return value.trim();
728
- }
729
- function match(value, pattern) {
730
- return (value = pattern.exec(value)) ? value[0] : value;
731
- }
732
- function replace(value, pattern, replacement) {
733
- return value.replace(pattern, replacement);
734
- }
735
- function indexof(value, search) {
736
- return value.indexOf(search);
737
- }
738
- function charat(value, index) {
739
- return value.charCodeAt(index) | 0;
740
- }
741
- function substr(value, begin, end) {
742
- return value.slice(begin, end);
743
- }
744
- function strlen(value) {
745
- return value.length;
746
- }
747
- function sizeof(value) {
748
- return value.length;
749
- }
750
- function append(value, array) {
751
- return array.push(value), value;
752
- }
753
- function combine(array, callback) {
754
- return array.map(callback).join("");
755
- }
756
-
757
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
758
- var line = 1;
759
- var column = 1;
760
- var length = 0;
761
- var position = 0;
762
- var character = 0;
763
- var characters = "";
764
- function node(value, root, parent, type, props, children2, length2) {
765
- return { value, root, parent, type, props, children: children2, line, column, length: length2, return: "" };
766
- }
767
- function copy(root, props) {
768
- return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
769
- }
770
- function char() {
771
- return character;
772
- }
773
- function prev() {
774
- character = position > 0 ? charat(characters, --position) : 0;
775
- if (column--, character === 10)
776
- column = 1, line--;
777
- return character;
778
- }
779
- function next() {
780
- character = position < length ? charat(characters, position++) : 0;
781
- if (column++, character === 10)
782
- column = 1, line++;
783
- return character;
784
- }
785
- function peek() {
786
- return charat(characters, position);
787
- }
788
- function caret() {
789
- return position;
790
- }
791
- function slice(begin, end) {
792
- return substr(characters, begin, end);
793
- }
794
- function token(type) {
795
- switch (type) {
796
- case 0:
797
- case 9:
798
- case 10:
799
- case 13:
800
- case 32:
801
- return 5;
802
- case 33:
803
- case 43:
804
- case 44:
805
- case 47:
806
- case 62:
807
- case 64:
808
- case 126:
809
- case 59:
810
- case 123:
811
- case 125:
812
- return 4;
813
- case 58:
814
- return 3;
815
- case 34:
816
- case 39:
817
- case 40:
818
- case 91:
819
- return 2;
820
- case 41:
821
- case 93:
822
- return 1;
823
- }
824
- return 0;
825
- }
826
- function alloc(value) {
827
- return line = column = 1, length = strlen(characters = value), position = 0, [];
828
- }
829
- function dealloc(value) {
830
- return characters = "", value;
831
- }
832
- function delimit(type) {
833
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
834
- }
835
- function whitespace(type) {
836
- while (character = peek())
837
- if (character < 33)
838
- next();
839
- else
840
- break;
841
- return token(type) > 2 || token(character) > 3 ? "" : " ";
842
- }
843
- function escaping(index, count) {
844
- while (--count && next())
845
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
846
- break;
847
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
848
- }
849
- function delimiter(type) {
850
- while (next())
851
- switch (character) {
852
- case type:
853
- return position;
854
- case 34:
855
- case 39:
856
- if (type !== 34 && type !== 39)
857
- delimiter(character);
858
- break;
859
- case 40:
860
- if (type === 41)
861
- delimiter(type);
862
- break;
863
- case 92:
864
- next();
865
- break;
866
- }
867
- return position;
868
- }
869
- function commenter(type, index) {
870
- while (next())
871
- if (type + character === 47 + 10)
872
- break;
873
- else if (type + character === 42 + 42 && peek() === 47)
874
- break;
875
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
876
- }
877
- function identifier(index) {
878
- while (!token(peek()))
879
- next();
880
- return slice(index, position);
881
- }
882
-
883
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js
884
- function compile(value) {
885
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
886
- }
887
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
888
- var index = 0;
889
- var offset = 0;
890
- var length2 = pseudo;
891
- var atrule = 0;
892
- var property = 0;
893
- var previous = 0;
894
- var variable = 1;
895
- var scanning = 1;
896
- var ampersand = 1;
897
- var character2 = 0;
898
- var type = "";
899
- var props = rules;
900
- var children2 = rulesets;
901
- var reference = rule;
902
- var characters2 = type;
903
- while (scanning)
904
- switch (previous = character2, character2 = next()) {
905
- case 40:
906
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
907
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
908
- ampersand = -1;
909
- break;
910
- }
911
- case 34:
912
- case 39:
913
- case 91:
914
- characters2 += delimit(character2);
915
- break;
916
- case 9:
917
- case 10:
918
- case 13:
919
- case 32:
920
- characters2 += whitespace(previous);
921
- break;
922
- case 92:
923
- characters2 += escaping(caret() - 1, 7);
924
- continue;
925
- case 47:
926
- switch (peek()) {
927
- case 42:
928
- case 47:
929
- append(comment(commenter(next(), caret()), root, parent), declarations);
930
- break;
931
- default:
932
- characters2 += "/";
933
- }
934
- break;
935
- case 123 * variable:
936
- points[index++] = strlen(characters2) * ampersand;
937
- case 125 * variable:
938
- case 59:
939
- case 0:
940
- switch (character2) {
941
- case 0:
942
- case 125:
943
- scanning = 0;
944
- case 59 + offset:
945
- if (ampersand == -1)
946
- characters2 = replace(characters2, /\f/g, "");
947
- if (property > 0 && strlen(characters2) - length2)
948
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
949
- break;
950
- case 59:
951
- characters2 += ";";
952
- default:
953
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children2 = [], length2), rulesets);
954
- if (character2 === 123)
955
- if (offset === 0)
956
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children2);
957
- else
958
- switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
959
- case 100:
960
- case 108:
961
- case 109:
962
- case 115:
963
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children2), rules, children2, length2, points, rule ? props : children2);
964
- break;
965
- default:
966
- parse(characters2, reference, reference, reference, [""], children2, 0, points, children2);
967
- }
968
- }
969
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
970
- break;
971
- case 58:
972
- length2 = 1 + strlen(characters2), property = previous;
973
- default:
974
- if (variable < 1) {
975
- if (character2 == 123)
976
- --variable;
977
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
978
- continue;
979
- }
980
- switch (characters2 += from(character2), character2 * variable) {
981
- case 38:
982
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
983
- break;
984
- case 44:
985
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
986
- break;
987
- case 64:
988
- if (peek() === 45)
989
- characters2 += delimit(next());
990
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
991
- break;
992
- case 45:
993
- if (previous === 45 && strlen(characters2) == 2)
994
- variable = 0;
995
- }
996
- }
997
- return rulesets;
998
- }
999
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children2, length2) {
1000
- var post = offset - 1;
1001
- var rule = offset === 0 ? rules : [""];
1002
- var size = sizeof(rule);
1003
- for (var i = 0, j = 0, k = 0; i < index; ++i)
1004
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
1005
- if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1006
- props[k++] = z;
1007
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children2, length2);
1008
- }
1009
- function comment(value, root, parent) {
1010
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
1011
- }
1012
- function declaration(value, root, parent, length2) {
1013
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
1014
- }
1015
-
1016
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
1017
- function serialize(children2, callback) {
1018
- var output = "";
1019
- var length2 = sizeof(children2);
1020
- for (var i = 0; i < length2; i++)
1021
- output += callback(children2[i], i, children2, callback) || "";
1022
- return output;
1023
- }
1024
- function stringify(element, index, children2, callback) {
1025
- switch (element.type) {
1026
- case LAYER:
1027
- if (element.children.length)
1028
- break;
1029
- case IMPORT:
1030
- case DECLARATION:
1031
- return element.return = element.return || element.value;
1032
- case COMMENT:
1033
- return "";
1034
- case KEYFRAMES:
1035
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
1036
- case RULESET:
1037
- element.value = element.props.join(",");
1038
- }
1039
- return strlen(children2 = serialize(element.children, callback)) ? element.return = element.value + "{" + children2 + "}" : "";
1040
- }
1041
-
1042
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js
1043
- function middleware(collection) {
1044
- var length2 = sizeof(collection);
1045
- return function(element, index, children2, callback) {
1046
- var output = "";
1047
- for (var i = 0; i < length2; i++)
1048
- output += collection[i](element, index, children2, callback) || "";
1049
- return output;
1050
- };
1051
- }
1052
- function rulesheet(callback) {
1053
- return function(element) {
1054
- if (!element.root) {
1055
- if (element = element.return)
1056
- callback(element);
1057
- }
1058
- };
1059
- }
1060
-
1061
- // ../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
1062
- function memoize(fn) {
1063
- var cache2 = /* @__PURE__ */ Object.create(null);
1064
- return function(arg) {
1065
- if (cache2[arg] === void 0)
1066
- cache2[arg] = fn(arg);
1067
- return cache2[arg];
1068
- };
1069
- }
1070
-
1071
- // ../../node_modules/.pnpm/@emotion+cache@11.11.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
1072
- var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
1073
- var previous = 0;
1074
- var character2 = 0;
1075
- while (true) {
1076
- previous = character2;
1077
- character2 = peek();
1078
- if (previous === 38 && character2 === 12) {
1079
- points[index] = 1;
1080
- }
1081
- if (token(character2)) {
1082
- break;
1083
- }
1084
- next();
1085
- }
1086
- return slice(begin, position);
629
+ return r2 + (t2 && a2 ? t2 + "{" + a2 + "}" : a2) + l2;
1087
630
  };
1088
- var toRules = function toRules2(parsed, points) {
1089
- var index = -1;
1090
- var character2 = 44;
1091
- do {
1092
- switch (token(character2)) {
1093
- case 0:
1094
- if (character2 === 38 && peek() === 12) {
1095
- points[index] = 1;
1096
- }
1097
- parsed[index] += identifierWithPointTracking(position - 1, points, index);
1098
- break;
1099
- case 2:
1100
- parsed[index] += delimit(character2);
1101
- break;
1102
- case 4:
1103
- if (character2 === 44) {
1104
- parsed[++index] = peek() === 58 ? "&\f" : "";
1105
- points[index] = parsed[index].length;
1106
- break;
1107
- }
1108
- default:
1109
- parsed[index] += from(character2);
1110
- }
1111
- } while (character2 = next());
1112
- return parsed;
1113
- };
1114
- var getRules = function getRules2(value, points) {
1115
- return dealloc(toRules(alloc(value), points));
1116
- };
1117
- var fixedElements = /* @__PURE__ */ new WeakMap();
1118
- var compat = function compat2(element) {
1119
- if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
1120
- // negative .length indicates that this rule has been already prefixed
1121
- element.length < 1) {
1122
- return;
1123
- }
1124
- var value = element.value, parent = element.parent;
1125
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
1126
- while (parent.type !== "rule") {
1127
- parent = parent.parent;
1128
- if (!parent)
1129
- return;
1130
- }
1131
- if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
1132
- return;
1133
- }
1134
- if (isImplicitRule) {
1135
- return;
1136
- }
1137
- fixedElements.set(element, true);
1138
- var points = [];
1139
- var rules = getRules(value, points);
1140
- var parentRules = parent.props;
1141
- for (var i = 0, k = 0; i < rules.length; i++) {
1142
- for (var j = 0; j < parentRules.length; j++, k++) {
1143
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1144
- }
631
+ var c = {};
632
+ var s = (e2) => {
633
+ if ("object" == typeof e2) {
634
+ let t2 = "";
635
+ for (let r2 in e2)
636
+ t2 += r2 + s(e2[r2]);
637
+ return t2;
1145
638
  }
639
+ return e2;
1146
640
  };
1147
- var removeLabel = function removeLabel2(element) {
1148
- if (element.type === "decl") {
1149
- var value = element.value;
1150
- if (
1151
- // charcode for l
1152
- value.charCodeAt(0) === 108 && // charcode for b
1153
- value.charCodeAt(2) === 98
1154
- ) {
1155
- element["return"] = "";
1156
- element.value = "";
1157
- }
641
+ var i = (e2, t2, r2, i2, p2) => {
642
+ let u2 = s(e2), d = c[u2] || (c[u2] = ((e3) => {
643
+ let t3 = 0, r3 = 11;
644
+ for (; t3 < e3.length; )
645
+ r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
646
+ return "go" + r3;
647
+ })(u2));
648
+ if (!c[d]) {
649
+ let t3 = u2 !== e2 ? e2 : ((e3) => {
650
+ let t4, r3, o2 = [{}];
651
+ for (; t4 = l.exec(e3.replace(a, "")); )
652
+ t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
653
+ return o2[0];
654
+ })(e2);
655
+ c[d] = o(p2 ? { ["@keyframes " + d]: t3 } : t3, r2 ? "" : "." + d);
1158
656
  }
657
+ let f = r2 && c.g ? c.g : null;
658
+ return r2 && (c.g = c[d]), ((e3, t3, r3, l2) => {
659
+ l2 ? t3.data = t3.data.replace(l2, e3) : -1 === t3.data.indexOf(e3) && (t3.data = r3 ? e3 + t3.data : t3.data + e3);
660
+ })(c[d], t2, i2, f), d;
1159
661
  };
1160
- function prefix(value, length2) {
1161
- switch (hash(value, length2)) {
1162
- case 5103:
1163
- return WEBKIT + "print-" + value + value;
1164
- case 5737:
1165
- case 4201:
1166
- case 3177:
1167
- case 3433:
1168
- case 1641:
1169
- case 4457:
1170
- case 2921:
1171
- case 5572:
1172
- case 6356:
1173
- case 5844:
1174
- case 3191:
1175
- case 6645:
1176
- case 3005:
1177
- case 6391:
1178
- case 5879:
1179
- case 5623:
1180
- case 6135:
1181
- case 4599:
1182
- case 4855:
1183
- case 4215:
1184
- case 6389:
1185
- case 5109:
1186
- case 5365:
1187
- case 5621:
1188
- case 3829:
1189
- return WEBKIT + value + value;
1190
- case 5349:
1191
- case 4246:
1192
- case 4810:
1193
- case 6968:
1194
- case 2756:
1195
- return WEBKIT + value + MOZ + value + MS + value + value;
1196
- case 6828:
1197
- case 4268:
1198
- return WEBKIT + value + MS + value + value;
1199
- case 6165:
1200
- return WEBKIT + value + MS + "flex-" + value + value;
1201
- case 5187:
1202
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
1203
- case 5443:
1204
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
1205
- case 4675:
1206
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
1207
- case 5548:
1208
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
1209
- case 5292:
1210
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
1211
- case 6060:
1212
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
1213
- case 4554:
1214
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
1215
- case 6187:
1216
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
1217
- case 5495:
1218
- case 3959:
1219
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
1220
- case 4968:
1221
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
1222
- case 4095:
1223
- case 3583:
1224
- case 4068:
1225
- case 2532:
1226
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
1227
- case 8116:
1228
- case 7059:
1229
- case 5753:
1230
- case 5535:
1231
- case 5445:
1232
- case 5701:
1233
- case 4933:
1234
- case 4677:
1235
- case 5533:
1236
- case 5789:
1237
- case 5021:
1238
- case 4765:
1239
- if (strlen(value) - 1 - length2 > 6)
1240
- switch (charat(value, length2 + 1)) {
1241
- case 109:
1242
- if (charat(value, length2 + 4) !== 45)
1243
- break;
1244
- case 102:
1245
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1246
- case 115:
1247
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
1248
- }
1249
- break;
1250
- case 4949:
1251
- if (charat(value, length2 + 1) !== 115)
1252
- break;
1253
- case 6444:
1254
- switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
1255
- case 107:
1256
- return replace(value, ":", ":" + WEBKIT) + value;
1257
- case 101:
1258
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1259
- }
1260
- break;
1261
- case 5936:
1262
- switch (charat(value, length2 + 11)) {
1263
- case 114:
1264
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1265
- case 108:
1266
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1267
- case 45:
1268
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1269
- }
1270
- return WEBKIT + value + MS + value + value;
662
+ var p = (e2, t2, r2) => e2.reduce((e3, l2, a2) => {
663
+ let n2 = t2[a2];
664
+ if (n2 && n2.call) {
665
+ let e4 = n2(r2), t3 = e4 && e4.props && e4.props.className || /^go/.test(e4) && e4;
666
+ n2 = t3 ? "." + t3 : e4 && "object" == typeof e4 ? e4.props ? "" : o(e4, "") : false === e4 ? "" : e4;
1271
667
  }
1272
- return value;
1273
- }
1274
- var prefixer = function prefixer2(element, index, children2, callback) {
1275
- if (element.length > -1) {
1276
- if (!element["return"])
1277
- switch (element.type) {
1278
- case DECLARATION:
1279
- element["return"] = prefix(element.value, element.length);
1280
- break;
1281
- case KEYFRAMES:
1282
- return serialize([copy(element, {
1283
- value: replace(element.value, "@", "@" + WEBKIT)
1284
- })], callback);
1285
- case RULESET:
1286
- if (element.length)
1287
- return combine(element.props, function(value) {
1288
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
1289
- case ":read-only":
1290
- case ":read-write":
1291
- return serialize([copy(element, {
1292
- props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
1293
- })], callback);
1294
- case "::placeholder":
1295
- return serialize([copy(element, {
1296
- props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
1297
- }), copy(element, {
1298
- props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
1299
- }), copy(element, {
1300
- props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
1301
- })], callback);
1302
- }
1303
- return "";
1304
- });
1305
- }
1306
- }
1307
- };
1308
- var defaultStylisPlugins = [prefixer];
1309
- var createCache = function createCache2(options) {
1310
- var key = options.key;
1311
- if (false) {
1312
- throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
1313
- }
1314
- if (key === "css") {
1315
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1316
- Array.prototype.forEach.call(ssrStyles, function(node2) {
1317
- var dataEmotionAttribute = node2.getAttribute("data-emotion");
1318
- if (dataEmotionAttribute.indexOf(" ") === -1) {
1319
- return;
1320
- }
1321
- document.head.appendChild(node2);
1322
- node2.setAttribute("data-s", "");
1323
- });
1324
- }
1325
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1326
- if (false) {
1327
- if (/[^a-z-]/.test(key)) {
1328
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
1329
- }
1330
- }
1331
- var inserted = {};
1332
- var container;
1333
- var nodesToHydrate = [];
1334
- {
1335
- container = options.container || document.head;
1336
- Array.prototype.forEach.call(
1337
- // this means we will ignore elements which don't have a space in them which
1338
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1339
- document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
1340
- function(node2) {
1341
- var attrib = node2.getAttribute("data-emotion").split(" ");
1342
- for (var i = 1; i < attrib.length; i++) {
1343
- inserted[attrib[i]] = true;
1344
- }
1345
- nodesToHydrate.push(node2);
1346
- }
1347
- );
1348
- }
1349
- var _insert;
1350
- var omnipresentPlugins = [compat, removeLabel];
1351
- if (false) {
1352
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1353
- get compat() {
1354
- return cache2.compat;
1355
- }
1356
- }), incorrectImportAlarm);
1357
- }
1358
- {
1359
- var currentSheet;
1360
- var finalizingPlugins = [stringify, false ? function(element) {
1361
- if (!element.root) {
1362
- if (element["return"]) {
1363
- currentSheet.insert(element["return"]);
1364
- } else if (element.value && element.type !== COMMENT) {
1365
- currentSheet.insert(element.value + "{}");
1366
- }
1367
- }
1368
- } : rulesheet(function(rule) {
1369
- currentSheet.insert(rule);
1370
- })];
1371
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1372
- var stylis = function stylis2(styles) {
1373
- return serialize(compile(styles), serializer);
1374
- };
1375
- _insert = function insert(selector, serialized, sheet2, shouldCache) {
1376
- currentSheet = sheet2;
1377
- if (false) {
1378
- currentSheet = {
1379
- insert: function insert2(rule) {
1380
- sheet2.insert(rule + serialized.map);
1381
- }
1382
- };
1383
- }
1384
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1385
- if (shouldCache) {
1386
- cache2.inserted[serialized.name] = true;
1387
- }
1388
- };
1389
- }
1390
- var cache2 = {
1391
- key,
1392
- sheet: new StyleSheet({
1393
- key,
1394
- container,
1395
- nonce: options.nonce,
1396
- speedy: options.speedy,
1397
- prepend: options.prepend,
1398
- insertionPoint: options.insertionPoint
1399
- }),
1400
- nonce: options.nonce,
1401
- inserted,
1402
- registered: {},
1403
- insert: _insert
1404
- };
1405
- cache2.sheet.hydrate(nodesToHydrate);
1406
- return cache2;
1407
- };
1408
-
1409
- // ../../node_modules/.pnpm/@emotion+hash@0.9.1/node_modules/@emotion/hash/dist/emotion-hash.esm.js
1410
- function murmur2(str) {
1411
- var h = 0;
1412
- var k, i = 0, len = str.length;
1413
- for (; len >= 4; ++i, len -= 4) {
1414
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1415
- k = /* Math.imul(k, m): */
1416
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1417
- k ^= /* k >>> r: */
1418
- k >>> 24;
1419
- h = /* Math.imul(k, m): */
1420
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1421
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1422
- }
1423
- switch (len) {
1424
- case 3:
1425
- h ^= (str.charCodeAt(i + 2) & 255) << 16;
1426
- case 2:
1427
- h ^= (str.charCodeAt(i + 1) & 255) << 8;
1428
- case 1:
1429
- h ^= str.charCodeAt(i) & 255;
1430
- h = /* Math.imul(h, m): */
1431
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1432
- }
1433
- h ^= h >>> 13;
1434
- h = /* Math.imul(h, m): */
1435
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1436
- return ((h ^ h >>> 15) >>> 0).toString(36);
668
+ return e3 + l2 + (null == n2 ? "" : n2);
669
+ }, "");
670
+ function u(e2) {
671
+ let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
672
+ return i(l2.unshift ? l2.raw ? p(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t(r2.target), r2.g, r2.o, r2.k);
1437
673
  }
674
+ var b = u.bind({ g: 1 });
675
+ var h = u.bind({ k: 1 });
1438
676
 
1439
- // ../../node_modules/.pnpm/@emotion+unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
1440
- var unitlessKeys = {
1441
- animationIterationCount: 1,
1442
- aspectRatio: 1,
1443
- borderImageOutset: 1,
1444
- borderImageSlice: 1,
1445
- borderImageWidth: 1,
1446
- boxFlex: 1,
1447
- boxFlexGroup: 1,
1448
- boxOrdinalGroup: 1,
1449
- columnCount: 1,
1450
- columns: 1,
1451
- flex: 1,
1452
- flexGrow: 1,
1453
- flexPositive: 1,
1454
- flexShrink: 1,
1455
- flexNegative: 1,
1456
- flexOrder: 1,
1457
- gridRow: 1,
1458
- gridRowEnd: 1,
1459
- gridRowSpan: 1,
1460
- gridRowStart: 1,
1461
- gridColumn: 1,
1462
- gridColumnEnd: 1,
1463
- gridColumnSpan: 1,
1464
- gridColumnStart: 1,
1465
- msGridRow: 1,
1466
- msGridRowSpan: 1,
1467
- msGridColumn: 1,
1468
- msGridColumnSpan: 1,
1469
- fontWeight: 1,
1470
- lineHeight: 1,
1471
- opacity: 1,
1472
- order: 1,
1473
- orphans: 1,
1474
- tabSize: 1,
1475
- widows: 1,
1476
- zIndex: 1,
1477
- zoom: 1,
1478
- WebkitLineClamp: 1,
1479
- // SVG-related properties
1480
- fillOpacity: 1,
1481
- floodOpacity: 1,
1482
- stopOpacity: 1,
1483
- strokeDasharray: 1,
1484
- strokeDashoffset: 1,
1485
- strokeMiterlimit: 1,
1486
- strokeOpacity: 1,
1487
- strokeWidth: 1
1488
- };
1489
-
1490
- // ../../node_modules/.pnpm/@emotion+serialize@1.1.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
1491
- var hyphenateRegex = /[A-Z]|^ms/g;
1492
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1493
- var isCustomProperty = function isCustomProperty2(property) {
1494
- return property.charCodeAt(1) === 45;
1495
- };
1496
- var isProcessableValue = function isProcessableValue2(value) {
1497
- return value != null && typeof value !== "boolean";
1498
- };
1499
- var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1500
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1501
- });
1502
- var processStyleValue = function processStyleValue2(key, value) {
1503
- switch (key) {
1504
- case "animation":
1505
- case "animationName": {
1506
- if (typeof value === "string") {
1507
- return value.replace(animationRegex, function(match2, p1, p2) {
1508
- cursor = {
1509
- name: p1,
1510
- styles: p2,
1511
- next: cursor
1512
- };
1513
- return p1;
1514
- });
1515
- }
1516
- }
1517
- }
1518
- if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1519
- return value + "px";
1520
- }
1521
- return value;
1522
- };
1523
- if (false) {
1524
- contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1525
- contentValues = ["normal", "none", "initial", "inherit", "unset"];
1526
- oldProcessStyleValue = processStyleValue;
1527
- msPattern = /^-ms-/;
1528
- hyphenPattern = /-(.)/g;
1529
- hyphenatedCache = {};
1530
- processStyleValue = function processStyleValue3(key, value) {
1531
- if (key === "content") {
1532
- if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
1533
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1534
- }
1535
- }
1536
- var processed = oldProcessStyleValue(key, value);
1537
- if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
1538
- hyphenatedCache[key] = true;
1539
- }
1540
- return processed;
1541
- };
1542
- }
1543
- var contentValuePattern;
1544
- var contentValues;
1545
- var oldProcessStyleValue;
1546
- var msPattern;
1547
- var hyphenPattern;
1548
- var hyphenatedCache;
1549
- function handleInterpolation(mergedProps, registered, interpolation) {
1550
- if (interpolation == null) {
1551
- return "";
1552
- }
1553
- if (interpolation.__emotion_styles !== void 0) {
1554
- if (false) {
1555
- throw new Error(noComponentSelectorMessage);
1556
- }
1557
- return interpolation;
1558
- }
1559
- switch (typeof interpolation) {
1560
- case "boolean": {
1561
- return "";
1562
- }
1563
- case "object": {
1564
- if (interpolation.anim === 1) {
1565
- cursor = {
1566
- name: interpolation.name,
1567
- styles: interpolation.styles,
1568
- next: cursor
1569
- };
1570
- return interpolation.name;
1571
- }
1572
- if (interpolation.styles !== void 0) {
1573
- var next2 = interpolation.next;
1574
- if (next2 !== void 0) {
1575
- while (next2 !== void 0) {
1576
- cursor = {
1577
- name: next2.name,
1578
- styles: next2.styles,
1579
- next: cursor
1580
- };
1581
- next2 = next2.next;
1582
- }
1583
- }
1584
- var styles = interpolation.styles + ";";
1585
- if (false) {
1586
- styles += interpolation.map;
1587
- }
1588
- return styles;
1589
- }
1590
- return createStringFromObject(mergedProps, registered, interpolation);
1591
- }
1592
- case "function": {
1593
- if (mergedProps !== void 0) {
1594
- var previousCursor = cursor;
1595
- var result = interpolation(mergedProps);
1596
- cursor = previousCursor;
1597
- return handleInterpolation(mergedProps, registered, result);
1598
- } else if (false) {
1599
- }
1600
- break;
1601
- }
1602
- case "string":
1603
- if (false) {
1604
- var matched = [];
1605
- var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
1606
- var fakeVarName = "animation" + matched.length;
1607
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
1608
- return "${" + fakeVarName + "}";
1609
- });
1610
- if (matched.length) {
1611
- }
1612
- }
1613
- break;
1614
- }
1615
- if (registered == null) {
1616
- return interpolation;
1617
- }
1618
- var cached = registered[interpolation];
1619
- return cached !== void 0 ? cached : interpolation;
1620
- }
1621
- function createStringFromObject(mergedProps, registered, obj) {
1622
- var string = "";
1623
- if (Array.isArray(obj)) {
1624
- for (var i = 0; i < obj.length; i++) {
1625
- string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1626
- }
1627
- } else {
1628
- for (var _key in obj) {
1629
- var value = obj[_key];
1630
- if (typeof value !== "object") {
1631
- if (registered != null && registered[value] !== void 0) {
1632
- string += _key + "{" + registered[value] + "}";
1633
- } else if (isProcessableValue(value)) {
1634
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1635
- }
1636
- } else {
1637
- if (_key === "NO_COMPONENT_SELECTOR" && false) {
1638
- throw new Error(noComponentSelectorMessage);
1639
- }
1640
- if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1641
- for (var _i = 0; _i < value.length; _i++) {
1642
- if (isProcessableValue(value[_i])) {
1643
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1644
- }
1645
- }
1646
- } else {
1647
- var interpolated = handleInterpolation(mergedProps, registered, value);
1648
- switch (_key) {
1649
- case "animation":
1650
- case "animationName": {
1651
- string += processStyleName(_key) + ":" + interpolated + ";";
1652
- break;
1653
- }
1654
- default: {
1655
- if (false) {
1656
- }
1657
- string += _key + "{" + interpolated + "}";
1658
- }
1659
- }
1660
- }
1661
- }
1662
- }
1663
- }
1664
- return string;
677
+ // ../../node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs
678
+ function r(e2) {
679
+ var t2, f, n2 = "";
680
+ if ("string" == typeof e2 || "number" == typeof e2)
681
+ n2 += e2;
682
+ else if ("object" == typeof e2)
683
+ if (Array.isArray(e2))
684
+ for (t2 = 0; t2 < e2.length; t2++)
685
+ e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
686
+ else
687
+ for (t2 in e2)
688
+ e2[t2] && (n2 && (n2 += " "), n2 += t2);
689
+ return n2;
1665
690
  }
1666
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1667
- if (false) {
1668
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
691
+ function clsx() {
692
+ for (var e2, t2, f = 0, n2 = ""; f < arguments.length; )
693
+ (e2 = arguments[f++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
694
+ return n2;
1669
695
  }
1670
- var cursor;
1671
- var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1672
- if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1673
- return args[0];
1674
- }
1675
- var stringMode = true;
1676
- var styles = "";
1677
- cursor = void 0;
1678
- var strings = args[0];
1679
- if (strings == null || strings.raw === void 0) {
1680
- stringMode = false;
1681
- styles += handleInterpolation(mergedProps, registered, strings);
1682
- } else {
1683
- if (false) {
1684
- }
1685
- styles += strings[0];
1686
- }
1687
- for (var i = 1; i < args.length; i++) {
1688
- styles += handleInterpolation(mergedProps, registered, args[i]);
1689
- if (stringMode) {
1690
- if (false) {
1691
- }
1692
- styles += strings[i];
1693
- }
1694
- }
1695
- var sourceMap;
1696
- if (false) {
1697
- styles = styles.replace(sourceMapPattern, function(match3) {
1698
- sourceMap = match3;
1699
- return "";
1700
- });
1701
- }
1702
- labelPattern.lastIndex = 0;
1703
- var identifierName = "";
1704
- var match2;
1705
- while ((match2 = labelPattern.exec(styles)) !== null) {
1706
- identifierName += "-" + // $FlowFixMe we know it's not null
1707
- match2[1];
1708
- }
1709
- var name = murmur2(styles) + identifierName;
1710
- if (false) {
1711
- return {
1712
- name,
1713
- styles,
1714
- map: sourceMap,
1715
- next: cursor,
1716
- toString: function toString() {
1717
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1718
- }
1719
- };
1720
- }
1721
- return {
1722
- name,
1723
- styles,
1724
- next: cursor
1725
- };
1726
- };
1727
-
1728
- // ../../node_modules/.pnpm/@emotion+utils@1.2.1/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
1729
- var isBrowser = true;
1730
- function getRegisteredStyles(registered, registeredStyles, classNames) {
1731
- var rawClassName = "";
1732
- classNames.split(" ").forEach(function(className) {
1733
- if (registered[className] !== void 0) {
1734
- registeredStyles.push(registered[className] + ";");
1735
- } else {
1736
- rawClassName += className + " ";
1737
- }
1738
- });
1739
- return rawClassName;
1740
- }
1741
- var registerStyles = function registerStyles2(cache2, serialized, isStringTag) {
1742
- var className = cache2.key + "-" + serialized.name;
1743
- if (
1744
- // we only need to add the styles to the registered cache if the
1745
- // class name could be used further down
1746
- // the tree but if it's a string tag, we know it won't
1747
- // so we don't have to add it to registered cache.
1748
- // this improves memory usage since we can avoid storing the whole style string
1749
- (isStringTag === false || // we need to always store it if we're in compat mode and
1750
- // in node since emotion-server relies on whether a style is in
1751
- // the registered cache to know whether a style is global or not
1752
- // also, note that this check will be dead code eliminated in the browser
1753
- isBrowser === false) && cache2.registered[className] === void 0
1754
- ) {
1755
- cache2.registered[className] = serialized.styles;
1756
- }
1757
- };
1758
- var insertStyles = function insertStyles2(cache2, serialized, isStringTag) {
1759
- registerStyles(cache2, serialized, isStringTag);
1760
- var className = cache2.key + "-" + serialized.name;
1761
- if (cache2.inserted[serialized.name] === void 0) {
1762
- var current = serialized;
1763
- do {
1764
- cache2.insert(serialized === current ? "." + className : "", current, cache2.sheet, true);
1765
- current = current.next;
1766
- } while (current !== void 0);
1767
- }
1768
- };
1769
-
1770
- // ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
1771
- function insertWithoutScoping(cache2, serialized) {
1772
- if (cache2.inserted[serialized.name] === void 0) {
1773
- return cache2.insert("", serialized, cache2.sheet, true);
1774
- }
1775
- }
1776
- function merge(registered, css2, className) {
1777
- var registeredStyles = [];
1778
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
1779
- if (registeredStyles.length < 2) {
1780
- return className;
1781
- }
1782
- return rawClassName + css2(registeredStyles);
1783
- }
1784
- var createEmotion = function createEmotion2(options) {
1785
- var cache2 = createCache(options);
1786
- cache2.sheet.speedy = function(value) {
1787
- if (false) {
1788
- throw new Error("speedy must be changed before any rules are inserted");
1789
- }
1790
- this.isSpeedy = value;
1791
- };
1792
- cache2.compat = true;
1793
- var css2 = function css3() {
1794
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1795
- args[_key] = arguments[_key];
1796
- }
1797
- var serialized = serializeStyles(args, cache2.registered, void 0);
1798
- insertStyles(cache2, serialized, false);
1799
- return cache2.key + "-" + serialized.name;
1800
- };
1801
- var keyframes2 = function keyframes3() {
1802
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1803
- args[_key2] = arguments[_key2];
1804
- }
1805
- var serialized = serializeStyles(args, cache2.registered);
1806
- var animation = "animation-" + serialized.name;
1807
- insertWithoutScoping(cache2, {
1808
- name: serialized.name,
1809
- styles: "@keyframes " + animation + "{" + serialized.styles + "}"
1810
- });
1811
- return animation;
1812
- };
1813
- var injectGlobal2 = function injectGlobal3() {
1814
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1815
- args[_key3] = arguments[_key3];
1816
- }
1817
- var serialized = serializeStyles(args, cache2.registered);
1818
- insertWithoutScoping(cache2, serialized);
1819
- };
1820
- var cx2 = function cx3() {
1821
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1822
- args[_key4] = arguments[_key4];
1823
- }
1824
- return merge(cache2.registered, css2, classnames(args));
1825
- };
1826
- return {
1827
- css: css2,
1828
- cx: cx2,
1829
- injectGlobal: injectGlobal2,
1830
- keyframes: keyframes2,
1831
- hydrate: function hydrate2(ids) {
1832
- ids.forEach(function(key) {
1833
- cache2.inserted[key] = true;
1834
- });
1835
- },
1836
- flush: function flush2() {
1837
- cache2.registered = {};
1838
- cache2.inserted = {};
1839
- cache2.sheet.flush();
1840
- },
1841
- // $FlowFixMe
1842
- sheet: cache2.sheet,
1843
- cache: cache2,
1844
- getRegisteredStyles: getRegisteredStyles.bind(null, cache2.registered),
1845
- merge: merge.bind(null, cache2.registered, css2)
1846
- };
1847
- };
1848
- var classnames = function classnames2(args) {
1849
- var cls = "";
1850
- for (var i = 0; i < args.length; i++) {
1851
- var arg = args[i];
1852
- if (arg == null)
1853
- continue;
1854
- var toAdd = void 0;
1855
- switch (typeof arg) {
1856
- case "boolean":
1857
- break;
1858
- case "object": {
1859
- if (Array.isArray(arg)) {
1860
- toAdd = classnames2(arg);
1861
- } else {
1862
- toAdd = "";
1863
- for (var k in arg) {
1864
- if (arg[k] && k) {
1865
- toAdd && (toAdd += " ");
1866
- toAdd += k;
1867
- }
1868
- }
1869
- }
1870
- break;
1871
- }
1872
- default: {
1873
- toAdd = arg;
1874
- }
1875
- }
1876
- if (toAdd) {
1877
- cls && (cls += " ");
1878
- cls += toAdd;
1879
- }
1880
- }
1881
- return cls;
1882
- };
1883
-
1884
- // ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/dist/emotion-css.esm.js
1885
- var _createEmotion = createEmotion({
1886
- key: "css"
1887
- });
1888
- var flush = _createEmotion.flush;
1889
- var hydrate = _createEmotion.hydrate;
1890
- var cx = _createEmotion.cx;
1891
- var merge2 = _createEmotion.merge;
1892
- var getRegisteredStyles2 = _createEmotion.getRegisteredStyles;
1893
- var injectGlobal = _createEmotion.injectGlobal;
1894
- var keyframes = _createEmotion.keyframes;
1895
- var css = _createEmotion.css;
1896
- var sheet = _createEmotion.sheet;
1897
- var cache = _createEmotion.cache;
1898
696
 
1899
697
  // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
1900
698
  var noop = () => {
@@ -1902,8 +700,8 @@ var noop = () => {
1902
700
  function createListTransition(source, options) {
1903
701
  const initSource = untrack(source);
1904
702
  if (isServer) {
1905
- const copy3 = initSource.slice();
1906
- return () => copy3;
703
+ const copy2 = initSource.slice();
704
+ return () => copy2;
1907
705
  }
1908
706
  const { onChange } = options;
1909
707
  let prevSet = new Set(options.appear ? void 0 : initSource);
@@ -1911,29 +709,29 @@ function createListTransition(source, options) {
1911
709
  const [toRemove, setToRemove] = createSignal([], { equals: false });
1912
710
  const [isTransitionPending] = useTransition();
1913
711
  const finishRemoved = options.exitMethod === "remove" ? noop : (els) => {
1914
- setToRemove((p) => (p.push.apply(p, els), p));
712
+ setToRemove((p2) => (p2.push.apply(p2, els), p2));
1915
713
  for (const el of els)
1916
714
  exiting.delete(el);
1917
715
  };
1918
- const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i) => els.splice(i, 0, el) : (els, el) => els.push(el);
716
+ const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
1919
717
  return createMemo(
1920
- (prev2) => {
718
+ (prev) => {
1921
719
  const elsToRemove = toRemove();
1922
720
  const sourceList = source();
1923
721
  sourceList[$TRACK];
1924
722
  if (untrack(isTransitionPending)) {
1925
723
  isTransitionPending();
1926
- return prev2;
724
+ return prev;
1927
725
  }
1928
726
  if (elsToRemove.length) {
1929
- const next2 = prev2.filter((e) => !elsToRemove.includes(e));
727
+ const next = prev.filter((e2) => !elsToRemove.includes(e2));
1930
728
  elsToRemove.length = 0;
1931
- onChange({ list: next2, added: [], removed: [], unchanged: next2, finishRemoved });
1932
- return next2;
729
+ onChange({ list: next, added: [], removed: [], unchanged: next, finishRemoved });
730
+ return next;
1933
731
  }
1934
732
  return untrack(() => {
1935
733
  const nextSet = new Set(sourceList);
1936
- const next2 = sourceList.slice();
734
+ const next = sourceList.slice();
1937
735
  const added = [];
1938
736
  const removed = [];
1939
737
  const unchanged = [];
@@ -1941,23 +739,23 @@ function createListTransition(source, options) {
1941
739
  (prevSet.has(el) ? unchanged : added).push(el);
1942
740
  }
1943
741
  let nothingChanged = !added.length;
1944
- for (let i = 0; i < prev2.length; i++) {
1945
- const el = prev2[i];
742
+ for (let i2 = 0; i2 < prev.length; i2++) {
743
+ const el = prev[i2];
1946
744
  if (!nextSet.has(el)) {
1947
745
  if (!exiting.has(el)) {
1948
746
  removed.push(el);
1949
747
  exiting.add(el);
1950
748
  }
1951
- handleRemoved(next2, el, i);
749
+ handleRemoved(next, el, i2);
1952
750
  }
1953
- if (nothingChanged && el !== next2[i])
751
+ if (nothingChanged && el !== next[i2])
1954
752
  nothingChanged = false;
1955
753
  }
1956
754
  if (!removed.length && nothingChanged)
1957
- return prev2;
1958
- onChange({ list: next2, added, removed, unchanged, finishRemoved });
755
+ return prev;
756
+ onChange({ list: next, added, removed, unchanged, finishRemoved });
1959
757
  prevSet = nextSet;
1960
- return next2;
758
+ return next;
1961
759
  });
1962
760
  },
1963
761
  options.appear ? [] : initSource.slice()
@@ -1966,38 +764,38 @@ function createListTransition(source, options) {
1966
764
 
1967
765
  // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
1968
766
  var noop2 = () => void 0;
1969
- var isNonNullable = (i) => i != null;
767
+ var isNonNullable = (i2) => i2 != null;
1970
768
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
1971
769
  var access = (v) => typeof v === "function" && !v.length ? v() : v;
1972
770
  var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
1973
- function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
771
+ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
1974
772
  const currLength = current.length;
1975
- const prevLength = prev2.length;
1976
- let i = 0;
773
+ const prevLength = prev.length;
774
+ let i2 = 0;
1977
775
  if (!prevLength) {
1978
- for (; i < currLength; i++)
1979
- handleAdded(current[i]);
776
+ for (; i2 < currLength; i2++)
777
+ handleAdded(current[i2]);
1980
778
  return;
1981
779
  }
1982
780
  if (!currLength) {
1983
- for (; i < prevLength; i++)
1984
- handleRemoved(prev2[i]);
781
+ for (; i2 < prevLength; i2++)
782
+ handleRemoved(prev[i2]);
1985
783
  return;
1986
784
  }
1987
- for (; i < prevLength; i++) {
1988
- if (prev2[i] !== current[i])
785
+ for (; i2 < prevLength; i2++) {
786
+ if (prev[i2] !== current[i2])
1989
787
  break;
1990
788
  }
1991
789
  let prevEl;
1992
790
  let currEl;
1993
- prev2 = prev2.slice(i);
1994
- current = current.slice(i);
1995
- for (prevEl of prev2) {
791
+ prev = prev.slice(i2);
792
+ current = current.slice(i2);
793
+ for (prevEl of prev) {
1996
794
  if (!current.includes(prevEl))
1997
795
  handleRemoved(prevEl);
1998
796
  }
1999
797
  for (currEl of current) {
2000
- if (!prev2.includes(currEl))
798
+ if (!prev.includes(currEl))
2001
799
  handleAdded(currEl);
2002
800
  }
2003
801
  }
@@ -2050,8 +848,8 @@ function createClassnames(props) {
2050
848
  function nextFrame(fn) {
2051
849
  requestAnimationFrame(() => requestAnimationFrame(fn));
2052
850
  }
2053
- function enterTransition(classnames3, events, el, done) {
2054
- const { enterClasses, enterActiveClasses, enterToClasses } = classnames3, { onBeforeEnter, onEnter, onAfterEnter } = events;
851
+ function enterTransition(classnames, events, el, done) {
852
+ const { enterClasses, enterActiveClasses, enterToClasses } = classnames, { onBeforeEnter, onEnter, onAfterEnter } = events;
2055
853
  onBeforeEnter?.(el);
2056
854
  el.classList.add(...enterClasses);
2057
855
  el.classList.add(...enterActiveClasses);
@@ -2068,8 +866,8 @@ function enterTransition(classnames3, events, el, done) {
2068
866
  el.addEventListener("animationend", endTransition);
2069
867
  }
2070
868
  });
2071
- function endTransition(e) {
2072
- if (!e || e.target === el) {
869
+ function endTransition(e2) {
870
+ if (!e2 || e2.target === el) {
2073
871
  done?.();
2074
872
  el.removeEventListener("transitionend", endTransition);
2075
873
  el.removeEventListener("animationend", endTransition);
@@ -2079,8 +877,8 @@ function enterTransition(classnames3, events, el, done) {
2079
877
  }
2080
878
  }
2081
879
  }
2082
- function exitTransition(classnames3, events, el, done) {
2083
- const { exitClasses, exitActiveClasses, exitToClasses } = classnames3, { onBeforeExit, onExit, onAfterExit } = events;
880
+ function exitTransition(classnames, events, el, done) {
881
+ const { exitClasses, exitActiveClasses, exitToClasses } = classnames, { onBeforeExit, onExit, onAfterExit } = events;
2084
882
  if (!el.parentNode)
2085
883
  return done?.();
2086
884
  onBeforeExit?.(el);
@@ -2095,8 +893,8 @@ function exitTransition(classnames3, events, el, done) {
2095
893
  el.addEventListener("animationend", endTransition);
2096
894
  }
2097
895
  });
2098
- function endTransition(e) {
2099
- if (!e || e.target === el) {
896
+ function endTransition(e2) {
897
+ if (!e2 || e2.target === el) {
2100
898
  done?.();
2101
899
  el.removeEventListener("transitionend", endTransition);
2102
900
  el.removeEventListener("animationend", endTransition);
@@ -2107,12 +905,12 @@ function exitTransition(classnames3, events, el, done) {
2107
905
  }
2108
906
  }
2109
907
  var TransitionGroup = (props) => {
2110
- const classnames3 = createClassnames(props);
908
+ const classnames = createClassnames(props);
2111
909
  return createListTransition(resolveElements(() => props.children).toArray, {
2112
910
  appear: props.appear,
2113
911
  exitMethod: "keep-index",
2114
912
  onChange({ added, removed, finishRemoved, list }) {
2115
- const classes = classnames3();
913
+ const classes = classnames();
2116
914
  for (const el of added) {
2117
915
  enterTransition(classes, props, el);
2118
916
  }
@@ -2136,8 +934,8 @@ var TransitionGroup = (props) => {
2136
934
  }
2137
935
  document.body.offsetHeight;
2138
936
  for (const el of moved) {
2139
- let endTransition2 = function(e) {
2140
- if (e.target === el || /transform$/.test(e.propertyName)) {
937
+ let endTransition2 = function(e2) {
938
+ if (e2.target === el || /transform$/.test(e2.propertyName)) {
2141
939
  el.removeEventListener("transitionend", endTransition2);
2142
940
  el.classList.remove(...classes.moveClasses);
2143
941
  }
@@ -2158,86 +956,86 @@ var TransitionGroup = (props) => {
2158
956
  // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
2159
957
  var FALLBACK = Symbol("fallback");
2160
958
  function dispose(list) {
2161
- for (const o of list)
2162
- o.dispose();
959
+ for (const o2 of list)
960
+ o2.dispose();
2163
961
  }
2164
962
  function keyArray(items, keyFn, mapFn, options = {}) {
2165
963
  if (isServer) {
2166
964
  const itemsRef = items();
2167
- let s = [];
965
+ let s2 = [];
2168
966
  if (itemsRef && itemsRef.length) {
2169
- for (let i = 0, len = itemsRef.length; i < len; i++)
2170
- s.push(
967
+ for (let i2 = 0, len = itemsRef.length; i2 < len; i2++)
968
+ s2.push(
2171
969
  mapFn(
2172
- () => itemsRef[i],
2173
- () => i
970
+ () => itemsRef[i2],
971
+ () => i2
2174
972
  )
2175
973
  );
2176
974
  } else if (options.fallback)
2177
- s = [options.fallback()];
2178
- return () => s;
975
+ s2 = [options.fallback()];
976
+ return () => s2;
2179
977
  }
2180
- const prev2 = /* @__PURE__ */ new Map();
2181
- onCleanup(() => dispose(prev2.values()));
978
+ const prev = /* @__PURE__ */ new Map();
979
+ onCleanup(() => dispose(prev.values()));
2182
980
  return () => {
2183
981
  const list = items() || [];
2184
982
  list[$TRACK];
2185
983
  return untrack(() => {
2186
984
  if (!list.length) {
2187
- dispose(prev2.values());
2188
- prev2.clear();
985
+ dispose(prev.values());
986
+ prev.clear();
2189
987
  if (!options.fallback)
2190
988
  return [];
2191
989
  const fb2 = createRoot((dispose2) => {
2192
- prev2.set(FALLBACK, { dispose: dispose2 });
990
+ prev.set(FALLBACK, { dispose: dispose2 });
2193
991
  return options.fallback();
2194
992
  });
2195
993
  return [fb2];
2196
994
  }
2197
995
  const result = new Array(list.length);
2198
- const fb = prev2.get(FALLBACK);
2199
- if (!prev2.size || fb) {
996
+ const fb = prev.get(FALLBACK);
997
+ if (!prev.size || fb) {
2200
998
  fb?.dispose();
2201
- prev2.delete(FALLBACK);
2202
- for (let i = 0; i < list.length; i++) {
2203
- const item = list[i];
2204
- const key = keyFn(item, i);
2205
- addNewItem(result, item, i, key);
999
+ prev.delete(FALLBACK);
1000
+ for (let i2 = 0; i2 < list.length; i2++) {
1001
+ const item = list[i2];
1002
+ const key = keyFn(item, i2);
1003
+ addNewItem(result, item, i2, key);
2206
1004
  }
2207
1005
  return result;
2208
1006
  }
2209
- const prevKeys = new Set(prev2.keys());
2210
- for (let i = 0; i < list.length; i++) {
2211
- const item = list[i];
2212
- const key = keyFn(item, i);
1007
+ const prevKeys = new Set(prev.keys());
1008
+ for (let i2 = 0; i2 < list.length; i2++) {
1009
+ const item = list[i2];
1010
+ const key = keyFn(item, i2);
2213
1011
  prevKeys.delete(key);
2214
- const lookup = prev2.get(key);
1012
+ const lookup = prev.get(key);
2215
1013
  if (lookup) {
2216
- result[i] = lookup.mapped;
2217
- lookup.setIndex?.(i);
1014
+ result[i2] = lookup.mapped;
1015
+ lookup.setIndex?.(i2);
2218
1016
  lookup.setItem(() => item);
2219
1017
  } else
2220
- addNewItem(result, item, i, key);
1018
+ addNewItem(result, item, i2, key);
2221
1019
  }
2222
1020
  for (const key of prevKeys) {
2223
- prev2.get(key)?.dispose();
2224
- prev2.delete(key);
1021
+ prev.get(key)?.dispose();
1022
+ prev.delete(key);
2225
1023
  }
2226
1024
  return result;
2227
1025
  });
2228
1026
  };
2229
- function addNewItem(list, item, i, key) {
1027
+ function addNewItem(list, item, i2, key) {
2230
1028
  createRoot((dispose2) => {
2231
1029
  const [getItem, setItem] = createSignal(item);
2232
1030
  const save = { setItem, dispose: dispose2 };
2233
1031
  if (mapFn.length > 1) {
2234
- const [index, setIndex] = createSignal(i);
1032
+ const [index, setIndex] = createSignal(i2);
2235
1033
  save.setIndex = setIndex;
2236
1034
  save.mapped = mapFn(getItem, index);
2237
1035
  } else
2238
1036
  save.mapped = mapFn(getItem);
2239
- prev2.set(key, save);
2240
- list[i] = save.mapped;
1037
+ prev.set(key, save);
1038
+ list[i2] = save.mapped;
2241
1039
  });
2242
1040
  }
2243
1041
  }
@@ -2263,27 +1061,27 @@ function createStorage(props) {
2263
1061
  setError(err instanceof Error ? err : new Error(fallback));
2264
1062
  };
2265
1063
  const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
2266
- const prefix2 = props?.prefix ? `${props.prefix}.` : "";
1064
+ const prefix = props?.prefix ? `${props.prefix}.` : "";
2267
1065
  const signals = /* @__PURE__ */ new Map();
2268
1066
  const store = new Proxy(
2269
1067
  {},
2270
1068
  {
2271
1069
  get(_, key) {
2272
- let node2 = signals.get(key);
2273
- if (!node2) {
2274
- node2 = createSignal(void 0, { equals: false });
2275
- signals.set(key, node2);
1070
+ let node = signals.get(key);
1071
+ if (!node) {
1072
+ node = createSignal(void 0, { equals: false });
1073
+ signals.set(key, node);
2276
1074
  }
2277
- node2[0]();
1075
+ node[0]();
2278
1076
  const value = apis.reduce(
2279
1077
  (result, api) => {
2280
1078
  if (result !== null || !api) {
2281
1079
  return result;
2282
1080
  }
2283
1081
  try {
2284
- return api.getItem(`${prefix2}${key}`);
1082
+ return api.getItem(`${prefix}${key}`);
2285
1083
  } catch (err) {
2286
- handleError(err, `Error reading ${prefix2}${key} from ${api["name"]}`);
1084
+ handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
2287
1085
  return null;
2288
1086
  }
2289
1087
  },
@@ -2298,22 +1096,22 @@ function createStorage(props) {
2298
1096
  );
2299
1097
  const setter = (key, value, options) => {
2300
1098
  const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
2301
- const apiKey = `${prefix2}${key}`;
1099
+ const apiKey = `${prefix}${key}`;
2302
1100
  apis.forEach((api) => {
2303
1101
  try {
2304
1102
  api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
2305
1103
  } catch (err) {
2306
- handleError(err, `Error setting ${prefix2}${key} to ${filteredValue} in ${api.name}`);
1104
+ handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
2307
1105
  }
2308
1106
  });
2309
- const node2 = signals.get(key);
2310
- node2 && node2[1]();
1107
+ const node = signals.get(key);
1108
+ node && node[1]();
2311
1109
  };
2312
1110
  const remove = (key) => apis.forEach((api) => {
2313
1111
  try {
2314
- api.removeItem(`${prefix2}${key}`);
1112
+ api.removeItem(`${prefix}${key}`);
2315
1113
  } catch (err) {
2316
- handleError(err, `Error removing ${prefix2}${key} from ${api.name}`);
1114
+ handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
2317
1115
  }
2318
1116
  });
2319
1117
  const clear = () => apis.forEach((api) => {
@@ -2460,15 +1258,15 @@ var cookieStorage = addClearMethod({
2460
1258
  return key;
2461
1259
  },
2462
1260
  get length() {
2463
- let length2 = 0;
1261
+ let length = 0;
2464
1262
  cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
2465
1263
  /(?:^|;)\s*.+?\s*=\s*[^;]+/g,
2466
1264
  (found) => {
2467
- length2 += found ? 1 : 0;
1265
+ length += found ? 1 : 0;
2468
1266
  return "";
2469
1267
  }
2470
1268
  );
2471
- return length2;
1269
+ return length;
2472
1270
  }
2473
1271
  });
2474
1272
 
@@ -2496,9 +1294,9 @@ function createResizeObserver(targets, onResize, options) {
2496
1294
  }
2497
1295
  }
2498
1296
  }, options);
2499
- createEffect((prev2) => {
1297
+ createEffect((prev) => {
2500
1298
  const refs = filterNonNullable(asArray(access(targets)));
2501
- handleDiffArray(refs, prev2, observe, unobserve);
1299
+ handleDiffArray(refs, prev, observe, unobserve);
2502
1300
  return refs;
2503
1301
  }, []);
2504
1302
  }
@@ -2843,14 +1641,14 @@ var Registry = (
2843
1641
  this.generateIdentifier = generateIdentifier;
2844
1642
  this.kv = new DoubleIndexedKV();
2845
1643
  }
2846
- Registry2.prototype.register = function(value, identifier2) {
1644
+ Registry2.prototype.register = function(value, identifier) {
2847
1645
  if (this.kv.getByValue(value)) {
2848
1646
  return;
2849
1647
  }
2850
- if (!identifier2) {
2851
- identifier2 = this.generateIdentifier(value);
1648
+ if (!identifier) {
1649
+ identifier = this.generateIdentifier(value);
2852
1650
  }
2853
- this.kv.set(identifier2, value);
1651
+ this.kv.set(identifier, value);
2854
1652
  };
2855
1653
  Registry2.prototype.clear = function() {
2856
1654
  this.kv.clear();
@@ -2858,8 +1656,8 @@ var Registry = (
2858
1656
  Registry2.prototype.getIdentifier = function(value) {
2859
1657
  return this.kv.getByValue(value);
2860
1658
  };
2861
- Registry2.prototype.getValue = function(identifier2) {
2862
- return this.kv.getByKey(identifier2);
1659
+ Registry2.prototype.getValue = function(identifier) {
1660
+ return this.kv.getByKey(identifier);
2863
1661
  };
2864
1662
  return Registry2;
2865
1663
  }()
@@ -2867,24 +1665,24 @@ var Registry = (
2867
1665
 
2868
1666
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
2869
1667
  var __extends = function() {
2870
- var extendStatics = function(d, b) {
2871
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2872
- d2.__proto__ = b2;
2873
- } || function(d2, b2) {
2874
- for (var p in b2)
2875
- if (Object.prototype.hasOwnProperty.call(b2, p))
2876
- d2[p] = b2[p];
1668
+ var extendStatics = function(d, b2) {
1669
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
1670
+ d2.__proto__ = b3;
1671
+ } || function(d2, b3) {
1672
+ for (var p2 in b3)
1673
+ if (Object.prototype.hasOwnProperty.call(b3, p2))
1674
+ d2[p2] = b3[p2];
2877
1675
  };
2878
- return extendStatics(d, b);
1676
+ return extendStatics(d, b2);
2879
1677
  };
2880
- return function(d, b) {
2881
- if (typeof b !== "function" && b !== null)
2882
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2883
- extendStatics(d, b);
1678
+ return function(d, b2) {
1679
+ if (typeof b2 !== "function" && b2 !== null)
1680
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
1681
+ extendStatics(d, b2);
2884
1682
  function __() {
2885
1683
  this.constructor = d;
2886
1684
  }
2887
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1685
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
2888
1686
  };
2889
1687
  }();
2890
1688
  var ClassRegistry = (
@@ -2892,8 +1690,8 @@ var ClassRegistry = (
2892
1690
  function(_super) {
2893
1691
  __extends(ClassRegistry2, _super);
2894
1692
  function ClassRegistry2() {
2895
- var _this = _super.call(this, function(c) {
2896
- return c.name;
1693
+ var _this = _super.call(this, function(c2) {
1694
+ return c2.name;
2897
1695
  }) || this;
2898
1696
  _this.classToAllowedProps = /* @__PURE__ */ new Map();
2899
1697
  return _this;
@@ -2916,23 +1714,23 @@ var ClassRegistry = (
2916
1714
  );
2917
1715
 
2918
1716
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
2919
- var __read = function(o, n) {
2920
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1717
+ var __read = function(o2, n2) {
1718
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
2921
1719
  if (!m)
2922
- return o;
2923
- var i = m.call(o), r, ar = [], e;
1720
+ return o2;
1721
+ var i2 = m.call(o2), r2, ar = [], e2;
2924
1722
  try {
2925
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2926
- ar.push(r.value);
1723
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
1724
+ ar.push(r2.value);
2927
1725
  } catch (error) {
2928
- e = { error };
1726
+ e2 = { error };
2929
1727
  } finally {
2930
1728
  try {
2931
- if (r && !r.done && (m = i["return"]))
2932
- m.call(i);
1729
+ if (r2 && !r2.done && (m = i2["return"]))
1730
+ m.call(i2);
2933
1731
  } finally {
2934
- if (e)
2935
- throw e.error;
1732
+ if (e2)
1733
+ throw e2.error;
2936
1734
  }
2937
1735
  }
2938
1736
  return ar;
@@ -2955,8 +1753,8 @@ function find(record, predicate) {
2955
1753
  return values.find(predicate);
2956
1754
  }
2957
1755
  var valuesNotNever = values;
2958
- for (var i = 0; i < valuesNotNever.length; i++) {
2959
- var value = valuesNotNever[i];
1756
+ for (var i2 = 0; i2 < valuesNotNever.length; i2++) {
1757
+ var value = valuesNotNever[i2];
2960
1758
  if (predicate(value)) {
2961
1759
  return value;
2962
1760
  }
@@ -2973,8 +1771,8 @@ function includes(arr, value) {
2973
1771
  return arr.indexOf(value) !== -1;
2974
1772
  }
2975
1773
  function findArr(record, predicate) {
2976
- for (var i = 0; i < record.length; i++) {
2977
- var value = record[i];
1774
+ for (var i2 = 0; i2 < record.length; i2++) {
1775
+ var value = record[i2];
2978
1776
  if (predicate(value)) {
2979
1777
  return value;
2980
1778
  }
@@ -3085,21 +1883,21 @@ var stringifyPath = function(path) {
3085
1883
  var parsePath = function(string) {
3086
1884
  var result = [];
3087
1885
  var segment = "";
3088
- for (var i = 0; i < string.length; i++) {
3089
- var char2 = string.charAt(i);
3090
- var isEscapedDot = char2 === "\\" && string.charAt(i + 1) === ".";
1886
+ for (var i2 = 0; i2 < string.length; i2++) {
1887
+ var char = string.charAt(i2);
1888
+ var isEscapedDot = char === "\\" && string.charAt(i2 + 1) === ".";
3091
1889
  if (isEscapedDot) {
3092
1890
  segment += ".";
3093
- i++;
1891
+ i2++;
3094
1892
  continue;
3095
1893
  }
3096
- var isEndOfSegment = char2 === ".";
1894
+ var isEndOfSegment = char === ".";
3097
1895
  if (isEndOfSegment) {
3098
1896
  result.push(segment);
3099
1897
  segment = "";
3100
1898
  continue;
3101
1899
  }
3102
- segment += char2;
1900
+ segment += char;
3103
1901
  }
3104
1902
  var lastSegment = segment;
3105
1903
  result.push(lastSegment);
@@ -3108,41 +1906,41 @@ var parsePath = function(string) {
3108
1906
 
3109
1907
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
3110
1908
  var __assign = function() {
3111
- __assign = Object.assign || function(t) {
3112
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3113
- s = arguments[i];
3114
- for (var p in s)
3115
- if (Object.prototype.hasOwnProperty.call(s, p))
3116
- t[p] = s[p];
1909
+ __assign = Object.assign || function(t2) {
1910
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
1911
+ s2 = arguments[i2];
1912
+ for (var p2 in s2)
1913
+ if (Object.prototype.hasOwnProperty.call(s2, p2))
1914
+ t2[p2] = s2[p2];
3117
1915
  }
3118
- return t;
1916
+ return t2;
3119
1917
  };
3120
1918
  return __assign.apply(this, arguments);
3121
1919
  };
3122
- var __read2 = function(o, n) {
3123
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1920
+ var __read2 = function(o2, n2) {
1921
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3124
1922
  if (!m)
3125
- return o;
3126
- var i = m.call(o), r, ar = [], e;
1923
+ return o2;
1924
+ var i2 = m.call(o2), r2, ar = [], e2;
3127
1925
  try {
3128
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3129
- ar.push(r.value);
1926
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
1927
+ ar.push(r2.value);
3130
1928
  } catch (error) {
3131
- e = { error };
1929
+ e2 = { error };
3132
1930
  } finally {
3133
1931
  try {
3134
- if (r && !r.done && (m = i["return"]))
3135
- m.call(i);
1932
+ if (r2 && !r2.done && (m = i2["return"]))
1933
+ m.call(i2);
3136
1934
  } finally {
3137
- if (e)
3138
- throw e.error;
1935
+ if (e2)
1936
+ throw e2.error;
3139
1937
  }
3140
1938
  }
3141
1939
  return ar;
3142
1940
  };
3143
- var __spreadArray = function(to, from2) {
3144
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3145
- to[j] = from2[i];
1941
+ var __spreadArray = function(to, from) {
1942
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
1943
+ to[j] = from[i2];
3146
1944
  return to;
3147
1945
  };
3148
1946
  function simpleTransformation(isApplicable, annotation, transform, untransform) {
@@ -3182,13 +1980,13 @@ var simpleRules = [
3182
1980
  });
3183
1981
  return baseError;
3184
1982
  }, function(v, superJson) {
3185
- var e = new Error(v.message);
3186
- e.name = v.name;
3187
- e.stack = v.stack;
1983
+ var e2 = new Error(v.message);
1984
+ e2.name = v.name;
1985
+ e2.stack = v.stack;
3188
1986
  superJson.allowedErrorProps.forEach(function(prop) {
3189
- e[prop] = v[prop];
1987
+ e2[prop] = v[prop];
3190
1988
  });
3191
- return e;
1989
+ return e2;
3192
1990
  }),
3193
1991
  simpleTransformation(isRegExp, "regexp", function(v) {
3194
1992
  return "" + v;
@@ -3245,19 +2043,19 @@ function compositeTransformation(isApplicable, annotation, transform, untransfor
3245
2043
  untransform
3246
2044
  };
3247
2045
  }
3248
- var symbolRule = compositeTransformation(function(s, superJson) {
3249
- if (isSymbol(s)) {
3250
- var isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
2046
+ var symbolRule = compositeTransformation(function(s2, superJson) {
2047
+ if (isSymbol(s2)) {
2048
+ var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
3251
2049
  return isRegistered;
3252
2050
  }
3253
2051
  return false;
3254
- }, function(s, superJson) {
3255
- var identifier2 = superJson.symbolRegistry.getIdentifier(s);
3256
- return ["symbol", identifier2];
2052
+ }, function(s2, superJson) {
2053
+ var identifier = superJson.symbolRegistry.getIdentifier(s2);
2054
+ return ["symbol", identifier];
3257
2055
  }, function(v) {
3258
2056
  return v.description;
3259
- }, function(_, a, superJson) {
3260
- var value = superJson.symbolRegistry.getValue(a[1]);
2057
+ }, function(_, a2, superJson) {
2058
+ var value = superJson.symbolRegistry.getValue(a2[1]);
3261
2059
  if (!value) {
3262
2060
  throw new Error("Trying to deserialize unknown symbol");
3263
2061
  }
@@ -3281,8 +2079,8 @@ var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
3281
2079
  return ["typed-array", v.constructor.name];
3282
2080
  }, function(v) {
3283
2081
  return __spreadArray([], __read2(v));
3284
- }, function(v, a) {
3285
- var ctor = constructorToName[a[1]];
2082
+ }, function(v, a2) {
2083
+ var ctor = constructorToName[a2[1]];
3286
2084
  if (!ctor) {
3287
2085
  throw new Error("Trying to deserialize unknown typed array");
3288
2086
  }
@@ -3296,8 +2094,8 @@ function isInstanceOfRegisteredClass(potentialClass, superJson) {
3296
2094
  return false;
3297
2095
  }
3298
2096
  var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
3299
- var identifier2 = superJson.classRegistry.getIdentifier(clazz.constructor);
3300
- return ["class", identifier2];
2097
+ var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
2098
+ return ["class", identifier];
3301
2099
  }, function(clazz, superJson) {
3302
2100
  var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3303
2101
  if (!allowedProps) {
@@ -3308,8 +2106,8 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(cl
3308
2106
  result[prop] = clazz[prop];
3309
2107
  });
3310
2108
  return result;
3311
- }, function(v, a, superJson) {
3312
- var clazz = superJson.classRegistry.getValue(a[1]);
2109
+ }, function(v, a2, superJson) {
2110
+ var clazz = superJson.classRegistry.getValue(a2[1]);
3313
2111
  if (!clazz) {
3314
2112
  throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
3315
2113
  }
@@ -3323,8 +2121,8 @@ var customRule = compositeTransformation(function(value, superJson) {
3323
2121
  }, function(value, superJson) {
3324
2122
  var transformer = superJson.customTransformerRegistry.findApplicable(value);
3325
2123
  return transformer.serialize(value);
3326
- }, function(v, a, superJson) {
3327
- var transformer = superJson.customTransformerRegistry.findByName(a[1]);
2124
+ }, function(v, a2, superJson) {
2125
+ var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
3328
2126
  if (!transformer) {
3329
2127
  throw new Error("Trying to deserialize unknown custom value");
3330
2128
  }
@@ -3380,11 +2178,11 @@ var untransformValue = function(json, type, superJson) {
3380
2178
  };
3381
2179
 
3382
2180
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
3383
- var getNthKey = function(value, n) {
2181
+ var getNthKey = function(value, n2) {
3384
2182
  var keys2 = value.keys();
3385
- while (n > 0) {
2183
+ while (n2 > 0) {
3386
2184
  keys2.next();
3387
- n--;
2185
+ n2--;
3388
2186
  }
3389
2187
  return keys2.next().value;
3390
2188
  };
@@ -3401,13 +2199,13 @@ function validatePath(path) {
3401
2199
  }
3402
2200
  var getDeep = function(object, path) {
3403
2201
  validatePath(path);
3404
- for (var i = 0; i < path.length; i++) {
3405
- var key = path[i];
2202
+ for (var i2 = 0; i2 < path.length; i2++) {
2203
+ var key = path[i2];
3406
2204
  if (isSet(object)) {
3407
2205
  object = getNthKey(object, +key);
3408
2206
  } else if (isMap(object)) {
3409
2207
  var row = +key;
3410
- var type = +path[++i] === 0 ? "key" : "value";
2208
+ var type = +path[++i2] === 0 ? "key" : "value";
3411
2209
  var keyOfRow = getNthKey(object, row);
3412
2210
  switch (type) {
3413
2211
  case "key":
@@ -3429,8 +2227,8 @@ var setDeep = function(object, path, mapper) {
3429
2227
  return mapper(object);
3430
2228
  }
3431
2229
  var parent = object;
3432
- for (var i = 0; i < path.length - 1; i++) {
3433
- var key = path[i];
2230
+ for (var i2 = 0; i2 < path.length - 1; i2++) {
2231
+ var key = path[i2];
3434
2232
  if (isArray(parent)) {
3435
2233
  var index = +key;
3436
2234
  parent = parent[index];
@@ -3440,12 +2238,12 @@ var setDeep = function(object, path, mapper) {
3440
2238
  var row = +key;
3441
2239
  parent = getNthKey(parent, row);
3442
2240
  } else if (isMap(parent)) {
3443
- var isEnd = i === path.length - 2;
2241
+ var isEnd = i2 === path.length - 2;
3444
2242
  if (isEnd) {
3445
2243
  break;
3446
2244
  }
3447
2245
  var row = +key;
3448
- var type = +path[++i] === 0 ? "key" : "value";
2246
+ var type = +path[++i2] === 0 ? "key" : "value";
3449
2247
  var keyOfRow = getNthKey(parent, row);
3450
2248
  switch (type) {
3451
2249
  case "key":
@@ -3494,30 +2292,30 @@ var setDeep = function(object, path, mapper) {
3494
2292
  };
3495
2293
 
3496
2294
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
3497
- var __read3 = function(o, n) {
3498
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2295
+ var __read3 = function(o2, n2) {
2296
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3499
2297
  if (!m)
3500
- return o;
3501
- var i = m.call(o), r, ar = [], e;
2298
+ return o2;
2299
+ var i2 = m.call(o2), r2, ar = [], e2;
3502
2300
  try {
3503
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3504
- ar.push(r.value);
2301
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
2302
+ ar.push(r2.value);
3505
2303
  } catch (error) {
3506
- e = { error };
2304
+ e2 = { error };
3507
2305
  } finally {
3508
2306
  try {
3509
- if (r && !r.done && (m = i["return"]))
3510
- m.call(i);
2307
+ if (r2 && !r2.done && (m = i2["return"]))
2308
+ m.call(i2);
3511
2309
  } finally {
3512
- if (e)
3513
- throw e.error;
2310
+ if (e2)
2311
+ throw e2.error;
3514
2312
  }
3515
2313
  }
3516
2314
  return ar;
3517
2315
  };
3518
- var __spreadArray2 = function(to, from2) {
3519
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3520
- to[j] = from2[i];
2316
+ var __spreadArray2 = function(to, from) {
2317
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
2318
+ to[j] = from[i2];
3521
2319
  return to;
3522
2320
  };
3523
2321
  function traverse(tree, walker2, origin) {
@@ -3593,8 +2391,8 @@ function generateReferentialEqualityAnnotations(identitites) {
3593
2391
  }
3594
2392
  var _a = __read3(paths.map(function(path) {
3595
2393
  return path.map(String);
3596
- }).sort(function(a, b) {
3597
- return a.length - b.length;
2394
+ }).sort(function(a2, b2) {
2395
+ return a2.length - b2.length;
3598
2396
  })), shortestPath = _a[0], identicalPaths = _a.slice(1);
3599
2397
  if (shortestPath.length === 0) {
3600
2398
  rootEqualityPaths = identicalPaths.map(stringifyPath);
@@ -3692,8 +2490,8 @@ function isArray2(payload) {
3692
2490
  return getType2(payload) === "Array";
3693
2491
  }
3694
2492
  var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
3695
- function isOneOf(a, b, c, d, e) {
3696
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
2493
+ function isOneOf(a2, b2, c2, d, e2) {
2494
+ return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
3697
2495
  }
3698
2496
 
3699
2497
  // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
@@ -3710,9 +2508,9 @@ function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
3710
2508
  });
3711
2509
  }
3712
2510
  }
3713
- function copy2(target, options = {}) {
2511
+ function copy(target, options = {}) {
3714
2512
  if (isArray2(target)) {
3715
- return target.map((item) => copy2(item, options));
2513
+ return target.map((item) => copy(item, options));
3716
2514
  }
3717
2515
  if (!isPlainObject2(target)) {
3718
2516
  return target;
@@ -3724,7 +2522,7 @@ function copy2(target, options = {}) {
3724
2522
  return carry;
3725
2523
  }
3726
2524
  const val = target[key];
3727
- const newVal = copy2(val, options);
2525
+ const newVal = copy(val, options);
3728
2526
  assignProp(carry, key, newVal, target, options.nonenumerable);
3729
2527
  return carry;
3730
2528
  }, {});
@@ -3732,41 +2530,41 @@ function copy2(target, options = {}) {
3732
2530
 
3733
2531
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
3734
2532
  var __assign2 = function() {
3735
- __assign2 = Object.assign || function(t) {
3736
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3737
- s = arguments[i];
3738
- for (var p in s)
3739
- if (Object.prototype.hasOwnProperty.call(s, p))
3740
- t[p] = s[p];
2533
+ __assign2 = Object.assign || function(t2) {
2534
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
2535
+ s2 = arguments[i2];
2536
+ for (var p2 in s2)
2537
+ if (Object.prototype.hasOwnProperty.call(s2, p2))
2538
+ t2[p2] = s2[p2];
3741
2539
  }
3742
- return t;
2540
+ return t2;
3743
2541
  };
3744
2542
  return __assign2.apply(this, arguments);
3745
2543
  };
3746
- var __read4 = function(o, n) {
3747
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2544
+ var __read4 = function(o2, n2) {
2545
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3748
2546
  if (!m)
3749
- return o;
3750
- var i = m.call(o), r, ar = [], e;
2547
+ return o2;
2548
+ var i2 = m.call(o2), r2, ar = [], e2;
3751
2549
  try {
3752
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3753
- ar.push(r.value);
2550
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
2551
+ ar.push(r2.value);
3754
2552
  } catch (error) {
3755
- e = { error };
2553
+ e2 = { error };
3756
2554
  } finally {
3757
2555
  try {
3758
- if (r && !r.done && (m = i["return"]))
3759
- m.call(i);
2556
+ if (r2 && !r2.done && (m = i2["return"]))
2557
+ m.call(i2);
3760
2558
  } finally {
3761
- if (e)
3762
- throw e.error;
2559
+ if (e2)
2560
+ throw e2.error;
3763
2561
  }
3764
2562
  }
3765
2563
  return ar;
3766
2564
  };
3767
- var __spreadArray3 = function(to, from2) {
3768
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3769
- to[j] = from2[i];
2565
+ var __spreadArray3 = function(to, from) {
2566
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
2567
+ to[j] = from[i2];
3770
2568
  return to;
3771
2569
  };
3772
2570
  var SuperJSON = (
@@ -3774,9 +2572,9 @@ var SuperJSON = (
3774
2572
  function() {
3775
2573
  function SuperJSON2() {
3776
2574
  this.classRegistry = new ClassRegistry();
3777
- this.symbolRegistry = new Registry(function(s) {
2575
+ this.symbolRegistry = new Registry(function(s2) {
3778
2576
  var _a;
3779
- return (_a = s.description) !== null && _a !== void 0 ? _a : "";
2577
+ return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
3780
2578
  });
3781
2579
  this.customTransformerRegistry = new CustomTransformerRegistry();
3782
2580
  this.allowedErrorProps = [];
@@ -3798,7 +2596,7 @@ var SuperJSON = (
3798
2596
  };
3799
2597
  SuperJSON2.prototype.deserialize = function(payload) {
3800
2598
  var json = payload.json, meta = payload.meta;
3801
- var result = copy2(json);
2599
+ var result = copy(json);
3802
2600
  if (meta === null || meta === void 0 ? void 0 : meta.values) {
3803
2601
  result = applyValueAnnotations(result, meta.values, this);
3804
2602
  }
@@ -3816,8 +2614,8 @@ var SuperJSON = (
3816
2614
  SuperJSON2.prototype.registerClass = function(v, options) {
3817
2615
  this.classRegistry.register(v, options);
3818
2616
  };
3819
- SuperJSON2.prototype.registerSymbol = function(v, identifier2) {
3820
- this.symbolRegistry.register(v, identifier2);
2617
+ SuperJSON2.prototype.registerSymbol = function(v, identifier) {
2618
+ this.symbolRegistry.register(v, identifier);
3821
2619
  };
3822
2620
  SuperJSON2.prototype.registerCustom = function(transformer, name) {
3823
2621
  this.customTransformerRegistry.register(__assign2({ name }, transformer));
@@ -3842,10 +2640,10 @@ var SuperJSON = (
3842
2640
  return SuperJSON2;
3843
2641
  }()
3844
2642
  );
3845
- var serialize2 = SuperJSON.serialize;
2643
+ var serialize = SuperJSON.serialize;
3846
2644
  var deserialize = SuperJSON.deserialize;
3847
- var stringify2 = SuperJSON.stringify;
3848
- var parse2 = SuperJSON.parse;
2645
+ var stringify = SuperJSON.stringify;
2646
+ var parse = SuperJSON.parse;
3849
2647
  var registerClass = SuperJSON.registerClass;
3850
2648
  var registerCustom = SuperJSON.registerCustom;
3851
2649
  var registerSymbol = SuperJSON.registerSymbol;
@@ -3869,17 +2667,17 @@ function getQueryStatusColorByLabel(label) {
3869
2667
  return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
3870
2668
  }
3871
2669
  var displayValue = (value, beautify = false) => {
3872
- const { json } = serialize2(value);
2670
+ const { json } = serialize(value);
3873
2671
  return JSON.stringify(json, null, beautify ? 2 : void 0);
3874
2672
  };
3875
2673
  var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
3876
- var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
3877
- var dateSort = (a, b) => a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1;
3878
- var statusAndDateSort = (a, b) => {
3879
- if (getStatusRank(a) === getStatusRank(b)) {
3880
- return dateSort(a, b);
2674
+ var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
2675
+ var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
2676
+ var statusAndDateSort = (a2, b2) => {
2677
+ if (getStatusRank(a2) === getStatusRank(b2)) {
2678
+ return dateSort(a2, b2);
3881
2679
  }
3882
- return getStatusRank(a) > getStatusRank(b) ? 1 : -1;
2680
+ return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
3883
2681
  };
3884
2682
  var sortFns = {
3885
2683
  status: statusAndDateSort,
@@ -3906,6 +2704,21 @@ function Search() {
3906
2704
  stroke-linejoin="round"
3907
2705
  /></svg>;
3908
2706
  }
2707
+ function Trash() {
2708
+ return <svg
2709
+ width="24"
2710
+ height="24"
2711
+ viewBox="0 0 24 24"
2712
+ fill="none"
2713
+ xmlns="http://www.w3.org/2000/svg"
2714
+ ><path
2715
+ 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"
2716
+ stroke="#98A2B3"
2717
+ stroke-width="1.66667"
2718
+ stroke-linecap="round"
2719
+ stroke-linejoin="round"
2720
+ /></svg>;
2721
+ }
3909
2722
  function ChevronDown() {
3910
2723
  return <svg
3911
2724
  width="10"
@@ -4772,20 +3585,20 @@ function TanstackLogo() {
4772
3585
  function chunkArray(array, size) {
4773
3586
  if (size < 1)
4774
3587
  return [];
4775
- let i = 0;
3588
+ let i2 = 0;
4776
3589
  const result = [];
4777
- while (i < array.length) {
4778
- result.push(array.slice(i, i + size));
4779
- i = i + size;
3590
+ while (i2 < array.length) {
3591
+ result.push(array.slice(i2, i2 + size));
3592
+ i2 = i2 + size;
4780
3593
  }
4781
3594
  return result;
4782
3595
  }
4783
3596
  var Expander = (props) => {
4784
3597
  const styles = getStyles();
4785
3598
  return <span
4786
- class={cx(
3599
+ class={clsx(
4787
3600
  styles.expander,
4788
- css`
3601
+ u`
4789
3602
  transform: rotate(${props.expanded ? 90 : 0}deg);
4790
3603
  `
4791
3604
  )}
@@ -4809,7 +3622,7 @@ var CopyButton = (props) => {
4809
3622
  class={styles.copyButton}
4810
3623
  aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
4811
3624
  onClick={copyState() === "NoCopy" ? () => {
4812
- navigator.clipboard.writeText(stringify2(props.value)).then(
3625
+ navigator.clipboard.writeText(stringify(props.value)).then(
4813
3626
  () => {
4814
3627
  setCopyState("SuccessCopy");
4815
3628
  setTimeout(() => {
@@ -4842,8 +3655,8 @@ function Explorer(props) {
4842
3655
  const [expandedPages, setExpandedPages] = createSignal([]);
4843
3656
  const subEntries = createMemo(() => {
4844
3657
  if (Array.isArray(props.value)) {
4845
- return props.value.map((d, i) => ({
4846
- label: i.toString(),
3658
+ return props.value.map((d, i2) => ({
3659
+ label: i2.toString(),
4847
3660
  value: d
4848
3661
  }));
4849
3662
  } else if (props.value !== null && typeof props.value === "object" && isIterable(props.value) && typeof props.value[Symbol.iterator] === "function") {
@@ -4853,8 +3666,8 @@ function Explorer(props) {
4853
3666
  value: val
4854
3667
  }));
4855
3668
  }
4856
- return Array.from(props.value, (val, i) => ({
4857
- label: i.toString(),
3669
+ return Array.from(props.value, (val, i2) => ({
3670
+ label: i2.toString(),
4858
3671
  value: val
4859
3672
  }));
4860
3673
  } else if (typeof props.value === "object" && props.value !== null) {
@@ -4937,7 +3750,7 @@ function Explorer(props) {
4937
3750
  var getStyles = () => {
4938
3751
  const { colors, font, size, border } = tokens;
4939
3752
  return {
4940
- entry: css`
3753
+ entry: u`
4941
3754
  & * {
4942
3755
  font-size: ${font.size.sm};
4943
3756
  font-family: 'Menlo', 'Fira Code', monospace;
@@ -4947,12 +3760,12 @@ var getStyles = () => {
4947
3760
  outline: none;
4948
3761
  word-break: break-word;
4949
3762
  `,
4950
- subEntry: css`
3763
+ subEntry: u`
4951
3764
  margin: 0 0 0 0.5em;
4952
3765
  padding-left: 0.75em;
4953
3766
  border-left: 2px solid ${colors.darkGray[400]};
4954
3767
  `,
4955
- expander: css`
3768
+ expander: u`
4956
3769
  & path {
4957
3770
  stroke: ${colors.gray[400]};
4958
3771
  }
@@ -4960,7 +3773,7 @@ var getStyles = () => {
4960
3773
  align-items: center;
4961
3774
  transition: all 0.1s ease;
4962
3775
  `,
4963
- expanderButton: css`
3776
+ expanderButton: u`
4964
3777
  cursor: pointer;
4965
3778
  color: inherit;
4966
3779
  font: inherit;
@@ -4978,19 +3791,19 @@ var getStyles = () => {
4978
3791
  outline: 2px solid ${colors.blue[800]};
4979
3792
  }
4980
3793
  `,
4981
- info: css`
3794
+ info: u`
4982
3795
  color: ${colors.gray[500]};
4983
3796
  font-size: ${font.size.xs};
4984
3797
  line-height: ${font.size.xs};
4985
3798
  margin-left: ${size[1]};
4986
3799
  `,
4987
- label: css`
3800
+ label: u`
4988
3801
  color: ${colors.gray[300]};
4989
3802
  `,
4990
- value: css`
3803
+ value: u`
4991
3804
  color: ${colors.purple[400]};
4992
3805
  `,
4993
- copyButton: css`
3806
+ copyButton: u`
4994
3807
  background-color: transparent;
4995
3808
  border: none;
4996
3809
  display: inline-flex;
@@ -5068,46 +3881,55 @@ var Devtools = () => {
5068
3881
  const isOpen = createMemo(() => {
5069
3882
  return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
5070
3883
  });
5071
- const position2 = createMemo(() => {
3884
+ const position = createMemo(() => {
5072
3885
  return localStore.position || useQueryDevtoolsContext().position || POSITION;
5073
3886
  });
3887
+ createEffect(() => {
3888
+ const root = document.querySelector(".tsqd-parent-container");
3889
+ const height = localStore.height || DEFAULT_HEIGHT;
3890
+ const width = localStore.width || DEFAULT_WIDTH;
3891
+ const panelPosition = position();
3892
+ root.style.setProperty(
3893
+ "--tsqd-panel-height",
3894
+ `${panelPosition === "top" ? "-" : ""}${height}px`
3895
+ );
3896
+ root.style.setProperty(
3897
+ "--tsqd-panel-width",
3898
+ `${panelPosition === "left" ? "-" : ""}${width}px`
3899
+ );
3900
+ });
5074
3901
  return <div
5075
- class={css`
5076
- & .TSQD-panel-exit-active,
5077
- & .TSQD-panel-enter-active {
5078
- transition: opacity 0.3s, transform 0.3s;
5079
- }
3902
+ class={clsx(
3903
+ u`
3904
+ & .tsqd-panel-transition-exit-active,
3905
+ & .tsqd-panel-transition-enter-active {
3906
+ transition: opacity 0.3s, transform 0.3s;
3907
+ }
5080
3908
 
5081
- & .TSQD-panel-exit-to,
5082
- & .TSQD-panel-enter {
5083
- ${position2() === "top" ? `transform: translateY(-${Number(
5084
- localStore.height || DEFAULT_HEIGHT
5085
- )}px);` : position2() === "left" ? `transform: translateX(-${Number(
5086
- localStore.width || DEFAULT_WIDTH
5087
- )}px);` : position2() === "right" ? `transform: translateX(${Number(
5088
- localStore.width || DEFAULT_WIDTH
5089
- )}px);` : `transform: translateY(${Number(
5090
- localStore.height || DEFAULT_HEIGHT
5091
- )}px);`}
5092
- }
3909
+ & .tsqd-panel-transition-exit-to,
3910
+ & .tsqd-panel-transition-enter {
3911
+ ${position() === "top" || position() === "bottom" ? `transform: translateY(var(--tsqd-panel-height));` : `transform: translateX(var(--tsqd-panel-width));`}
3912
+ }
5093
3913
 
5094
- & .TSQD-button-exit-active,
5095
- & .TSQD-button-enter-active {
5096
- transition: opacity 0.3s, transform 0.3s;
5097
- }
3914
+ & .tsqd-button-transition-exit-active,
3915
+ & .tsqd-button-transition-enter-active {
3916
+ transition: opacity 0.3s, transform 0.3s;
3917
+ }
5098
3918
 
5099
- & .TSQD-button-exit-to,
5100
- & .TSQD-button-enter {
5101
- transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
5102
- }
5103
- `}
3919
+ & .tsqd-button-transition-exit-to,
3920
+ & .tsqd-button-transition-enter {
3921
+ transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
3922
+ }
3923
+ `,
3924
+ "tsqd-transitions-container"
3925
+ )}
5104
3926
  >
5105
- <TransitionGroup name="TSQD-panel"><Show when={isOpen()}><DevtoolsPanel
3927
+ <TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
5106
3928
  localStore={localStore}
5107
3929
  setLocalStore={setLocalStore}
5108
3930
  /></Show></TransitionGroup>
5109
- <TransitionGroup name="TSQD-button"><Show when={!isOpen()}><div
5110
- class={cx(
3931
+ <TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
3932
+ class={clsx(
5111
3933
  styles.devtoolsBtn,
5112
3934
  styles[`devtoolsBtn-position-${buttonPosition()}`]
5113
3935
  )}
@@ -5129,14 +3951,14 @@ var DevtoolsPanel = (props) => {
5129
3951
  );
5130
3952
  const [offline, setOffline] = createSignal(false);
5131
3953
  const [settingsOpen, setSettingsOpen] = createSignal(false);
5132
- const position2 = createMemo(
3954
+ const position = createMemo(
5133
3955
  () => props.localStore.position || useQueryDevtoolsContext().position || POSITION
5134
3956
  );
5135
3957
  const sortFn = createMemo(() => sortFns[sort()]);
5136
3958
  const onlineManager = createMemo(
5137
3959
  () => useQueryDevtoolsContext().onlineManager
5138
3960
  );
5139
- const cache2 = createMemo(() => {
3961
+ const cache = createMemo(() => {
5140
3962
  return useQueryDevtoolsContext().client.getQueryCache();
5141
3963
  });
5142
3964
  const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
@@ -5146,11 +3968,11 @@ var DevtoolsPanel = (props) => {
5146
3968
  on(
5147
3969
  () => [queryCount(), props.localStore.filter, sort(), sortOrder()],
5148
3970
  () => {
5149
- const curr = cache2().getAll();
3971
+ const curr = cache().getAll();
5150
3972
  const filtered = props.localStore.filter ? curr.filter(
5151
3973
  (item) => rankItem(item.queryHash, props.localStore.filter || "").passed
5152
3974
  ) : [...curr];
5153
- const sorted = sortFn() ? filtered.sort((a, b) => sortFn()(a, b) * sortOrder()) : filtered;
3975
+ const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
5154
3976
  return sorted;
5155
3977
  }
5156
3978
  )
@@ -5168,8 +3990,8 @@ var DevtoolsPanel = (props) => {
5168
3990
  const minWidth = convertRemToPixels(12);
5169
3991
  const runDrag = (moveEvent) => {
5170
3992
  moveEvent.preventDefault();
5171
- if (position2() === "left" || position2() === "right") {
5172
- const valToAdd = position2() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
3993
+ if (position() === "left" || position() === "right") {
3994
+ const valToAdd = position() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
5173
3995
  newSize = Math.round(width + valToAdd);
5174
3996
  if (newSize < minWidth) {
5175
3997
  newSize = minWidth;
@@ -5180,7 +4002,7 @@ var DevtoolsPanel = (props) => {
5180
4002
  props.setLocalStore("width", String(newWidth));
5181
4003
  }
5182
4004
  } else {
5183
- const valToAdd = position2() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
4005
+ const valToAdd = position() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
5184
4006
  newSize = Math.round(height + valToAdd);
5185
4007
  if (newSize < minHeight) {
5186
4008
  newSize = minHeight;
@@ -5241,49 +4063,65 @@ var DevtoolsPanel = (props) => {
5241
4063
  });
5242
4064
  });
5243
4065
  return <aside
5244
- class={`${styles.panel} ${styles[`panel-position-${position2()}`]} ${css`
5245
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
5246
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
5247
- ${panelWidth() < thirdBreakpoint && (position2() === "right" || position2() === "left") ? `
4066
+ class={clsx(
4067
+ styles.panel,
4068
+ styles[`panel-position-${position()}`],
4069
+ u`
4070
+ flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
4071
+ background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
4072
+ `,
4073
+ {
4074
+ [u`
5248
4075
  min-width: min-content;
5249
- ` : ""}
5250
- `}`}
4076
+ `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
4077
+ },
4078
+ "tsqd-main-panel"
4079
+ )}
5251
4080
  style={{
5252
- height: position2() === "bottom" || position2() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
5253
- width: position2() === "right" || position2() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
4081
+ height: position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
4082
+ width: position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
5254
4083
  }}
5255
4084
  ref={panelRef}
5256
4085
  aria-label="Tanstack query devtools"
5257
4086
  >
5258
4087
  <div
5259
- class={cx(
4088
+ class={clsx(
5260
4089
  styles.dragHandle,
5261
- styles[`dragHandle-position-${position2()}`]
4090
+ styles[`dragHandle-position-${position()}`],
4091
+ "tsqd-drag-handle"
5262
4092
  )}
5263
4093
  onMouseDown={handleDragStart}
5264
4094
  />
5265
4095
  <button
5266
4096
  aria-label="Close tanstack query devtools"
5267
- class={cx(styles.closeBtn, styles[`closeBtn-position-${position2()}`])}
4097
+ class={clsx(
4098
+ styles.closeBtn,
4099
+ styles[`closeBtn-position-${position()}`],
4100
+ "tsqd-minimize-btn"
4101
+ )}
5268
4102
  onClick={() => props.setLocalStore("open", "false")}
5269
4103
  ><ChevronDown /></button>
5270
4104
  <div
5271
4105
  ref={queriesContainerRef}
5272
- class={`${styles.queriesContainer} ${css`
5273
- ${panelWidth() < secondBreakpoint && selectedQueryHash() ? `
5274
- height: 50%;
5275
- max-height: 50%;
5276
- ` : ""}
5277
- `}`}
4106
+ class={clsx(
4107
+ styles.queriesContainer,
4108
+ panelWidth() < secondBreakpoint && selectedQueryHash() && u`
4109
+ height: 50%;
4110
+ max-height: 50%;
4111
+ `,
4112
+ "tsqd-queries-container"
4113
+ )}
5278
4114
  >
5279
- <div class={cx(styles.row)}>
4115
+ <div class={clsx(styles.row, "tsqd-header")}>
5280
4116
  <button
5281
- class={styles.logo}
4117
+ class={clsx(styles.logo, "tsqd-text-logo-container")}
5282
4118
  onClick={() => props.setLocalStore("open", "false")}
5283
4119
  aria-label="Close Tanstack query devtools"
5284
4120
  >
5285
- <span class={styles.tanstackLogo}>TANSTACK</span>
5286
- <span class={styles.queryFlavorLogo}>
4121
+ <span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
4122
+ <span
4123
+ class={clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor")}
4124
+ >
5287
4125
  {useQueryDevtoolsContext().queryFlavor}
5288
4126
  {" v"}
5289
4127
  {useQueryDevtoolsContext().version}
@@ -5292,28 +4130,40 @@ var DevtoolsPanel = (props) => {
5292
4130
  <QueryStatusCount />
5293
4131
  </div>
5294
4132
  <div
5295
- class={cx(
4133
+ class={clsx(
5296
4134
  styles.row,
5297
- css`
4135
+ u`
5298
4136
  gap: ${tokens.size[2.5]};
5299
- `
4137
+ `,
4138
+ "tsqd-filters-actions-container"
5300
4139
  )}
5301
4140
  >
5302
- <div class={styles.filtersContainer}>
5303
- <div class={styles.filterInput}>
4141
+ <div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
4142
+ <div
4143
+ class={clsx(
4144
+ styles.filterInput,
4145
+ "tsqd-query-filter-textfield-container"
4146
+ )}
4147
+ >
5304
4148
  <Search />
5305
4149
  <input
5306
4150
  aria-label="Filter queries by query key"
5307
4151
  type="text"
5308
4152
  placeholder="Filter"
5309
- onInput={(e) => props.setLocalStore("filter", e.currentTarget.value)}
4153
+ onInput={(e2) => props.setLocalStore("filter", e2.currentTarget.value)}
4154
+ class="tsqd-query-filter-textfield"
5310
4155
  value={props.localStore.filter || ""}
5311
4156
  />
5312
4157
  </div>
5313
- <div class={styles.filterSelect}>
4158
+ <div
4159
+ class={clsx(
4160
+ styles.filterSelect,
4161
+ "tsqd-query-filter-sort-container"
4162
+ )}
4163
+ >
5314
4164
  <select
5315
4165
  value={sort()}
5316
- onChange={(e) => props.setLocalStore("sort", e.currentTarget.value)}
4166
+ onChange={(e2) => props.setLocalStore("sort", e2.currentTarget.value)}
5317
4167
  >{Object.keys(sortFns).map((key) => <option value={key}>
5318
4168
  {"Sort by "}
5319
4169
  {key}
@@ -5326,6 +4176,7 @@ var DevtoolsPanel = (props) => {
5326
4176
  }}
5327
4177
  aria-label={`Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`}
5328
4178
  aria-pressed={sortOrder() === -1}
4179
+ class="tsqd-query-filter-sort-order-btn"
5329
4180
  >
5330
4181
  <Show when={sortOrder() === 1}>
5331
4182
  <span>Asc</span>
@@ -5337,7 +4188,18 @@ var DevtoolsPanel = (props) => {
5337
4188
  </Show>
5338
4189
  </button>
5339
4190
  </div>
5340
- <div class={styles.actionsContainer}>
4191
+ <div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
4192
+ <button
4193
+ onClick={() => {
4194
+ cache().clear();
4195
+ }}
4196
+ class={clsx(
4197
+ styles.actionsBtn,
4198
+ "tsqd-actions-btn",
4199
+ "tsqd-action-clear-cache"
4200
+ )}
4201
+ aria-label="Clear query cache"
4202
+ ><Trash /></button>
5341
4203
  <button
5342
4204
  onClick={() => {
5343
4205
  if (offline()) {
@@ -5348,33 +4210,52 @@ var DevtoolsPanel = (props) => {
5348
4210
  setOffline(true);
5349
4211
  }
5350
4212
  }}
5351
- class={styles.actionsBtn}
4213
+ class={clsx(
4214
+ styles.actionsBtn,
4215
+ "tsqd-actions-btn",
4216
+ "tsqd-action-mock-offline-behavior"
4217
+ )}
5352
4218
  aria-label={`${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`}
5353
4219
  aria-pressed={offline()}
5354
4220
  >{offline() ? <Offline /> : <Wifi />}</button>
5355
4221
  <div style={{ position: "relative" }}>
5356
4222
  <button
5357
- onClick={() => setSettingsOpen((prev2) => !prev2)}
5358
- class={styles.actionsBtn}
5359
- id="TSQD-settings-menu-btn"
4223
+ onClick={() => setSettingsOpen((prev) => !prev)}
4224
+ class={clsx(
4225
+ styles.actionsBtn,
4226
+ "tsqd-actions-btn",
4227
+ "tsqd-action-settings"
4228
+ )}
4229
+ id="tsqd-settings-menu-btn"
5360
4230
  aria-label={`${settingsOpen() ? "Close" : "Open"} settings menu`}
5361
4231
  aria-haspopup="true"
5362
- aria-controls="TSQD-settings-menu"
4232
+ aria-controls="tsqd-settings-menu"
5363
4233
  ><Settings /></button>
5364
4234
  <Show when={settingsOpen()}><div
5365
4235
  role="menu"
5366
4236
  tabindex="-1"
5367
- aria-labelledby="TSQD-settings-menu-btn"
5368
- id="TSQD-settings-menu"
5369
- class={styles.settingsMenu}
4237
+ aria-labelledby="tsqd-settings-menu-btn"
4238
+ id="tsqd-settings-menu"
4239
+ class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
5370
4240
  >
5371
- <div class={styles.settingsMenuHeader}>Position</div>
5372
- <div class={styles.settingsMenuSection}>
4241
+ <div
4242
+ class={clsx(
4243
+ styles.settingsMenuHeader,
4244
+ "tsqd-settings-menu-header"
4245
+ )}
4246
+ >Position</div>
4247
+ <div
4248
+ class={clsx(
4249
+ styles.settingsMenuSection,
4250
+ "tsqd-settings-menu-section"
4251
+ )}
4252
+ >
5373
4253
  <button
5374
4254
  onClick={() => {
5375
4255
  setDevtoolsPosition("top");
5376
4256
  }}
5377
4257
  aria-label="Position top"
4258
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-top"
5378
4259
  >
5379
4260
  <ArrowUp />
5380
4261
  <span>Top</span>
@@ -5384,6 +4265,7 @@ var DevtoolsPanel = (props) => {
5384
4265
  setDevtoolsPosition("bottom");
5385
4266
  }}
5386
4267
  aria-label="Position bottom"
4268
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-bottom"
5387
4269
  >
5388
4270
  <ArrowDown />
5389
4271
  <span>Bottom</span>
@@ -5393,6 +4275,7 @@ var DevtoolsPanel = (props) => {
5393
4275
  setDevtoolsPosition("left");
5394
4276
  }}
5395
4277
  aria-label="Position left"
4278
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-left"
5396
4279
  >
5397
4280
  <ArrowDown />
5398
4281
  <span>Left</span>
@@ -5402,6 +4285,7 @@ var DevtoolsPanel = (props) => {
5402
4285
  setDevtoolsPosition("right");
5403
4286
  }}
5404
4287
  aria-label="Position right"
4288
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-right"
5405
4289
  >
5406
4290
  <ArrowDown />
5407
4291
  <span>Right</span>
@@ -5411,7 +4295,12 @@ var DevtoolsPanel = (props) => {
5411
4295
  </div>
5412
4296
  </div>
5413
4297
  </div>
5414
- <div class={styles.overflowQueryContainer}><div><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
4298
+ <div
4299
+ class={clsx(
4300
+ styles.overflowQueryContainer,
4301
+ "tsqd-queries-overflow-container"
4302
+ )}
4303
+ ><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
5415
4304
  </div>
5416
4305
  <Show when={selectedQueryHash()}><QueryDetails /></Show>
5417
4306
  </aside>;
@@ -5449,26 +4338,27 @@ var QueryRow = (props) => {
5449
4338
  onClick={() => setSelectedQueryHash(
5450
4339
  props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
5451
4340
  )}
5452
- class={cx(
4341
+ class={clsx(
5453
4342
  styles.queryRow,
5454
- selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow
4343
+ selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
4344
+ "tsqd-query-row"
5455
4345
  )}
5456
4346
  aria-label={`Query key ${props.query.queryHash}`}
5457
4347
  >
5458
4348
  <div
5459
- class={cx(
5460
- "TSQDObserverCount",
5461
- color() === "gray" ? css`
4349
+ class={clsx(
4350
+ color() === "gray" ? u`
5462
4351
  background-color: ${tokens.colors[color()][700]};
5463
4352
  color: ${tokens.colors[color()][300]};
5464
- ` : css`
4353
+ ` : u`
5465
4354
  background-color: ${tokens.colors[color()][900]};
5466
- color: ${tokens.colors[color()][300]} !important;
5467
- `
4355
+ color: ${tokens.colors[color()][300]};
4356
+ `,
4357
+ "tsqd-query-observer-count"
5468
4358
  )}
5469
4359
  >{observers()}</div>
5470
- <code class="TSQDQueryHash">{props.query.queryHash}</code>
5471
- <Show when={isDisabled()}><div class="TSQDQueryDisabled">disabled</div></Show>
4360
+ <code class="tsqd-query-hash">{props.query.queryHash}</code>
4361
+ <Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
5472
4362
  </button></Show>;
5473
4363
  };
5474
4364
  var QueryStatusCount = () => {
@@ -5488,7 +4378,7 @@ var QueryStatusCount = () => {
5488
4378
  (queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
5489
4379
  );
5490
4380
  const styles = getStyles2();
5491
- return <div class={styles.queryStatusContainer}>
4381
+ return <div class={clsx(styles.queryStatusContainer, "tsqd-query-status-container")}>
5492
4382
  <QueryStatus label="Fresh" color="green" count={fresh()} />
5493
4383
  <QueryStatus label="Fetching" color="blue" count={fetching()} />
5494
4384
  <QueryStatus label="Paused" color="purple" count={paused()} />
@@ -5522,42 +4412,48 @@ var QueryStatus = (props) => {
5522
4412
  }}
5523
4413
  disabled={showLabel()}
5524
4414
  ref={tagRef}
5525
- class={cx(
4415
+ class={clsx(
5526
4416
  styles.queryStatusTag,
5527
- !showLabel() ? css`
5528
- cursor: pointer;
5529
- &:hover {
5530
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
5531
- }
5532
- ` : null
4417
+ !showLabel() && u`
4418
+ cursor: pointer;
4419
+ &:hover {
4420
+ background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
4421
+ }
4422
+ `,
4423
+ "tsqd-query-status-tag",
4424
+ `tsqd-query-status-tag-${props.label.toLowerCase()}`
5533
4425
  )}
5534
4426
  {...mouseOver() || focused() ? {
5535
- "aria-describedby": "TSQD-status-tooltip"
4427
+ "aria-describedby": "tsqd-status-tooltip"
5536
4428
  } : {}}
5537
4429
  >
5538
4430
  <Show when={!showLabel() && (mouseOver() || focused())}><div
5539
4431
  role="tooltip"
5540
- id="TSQD-status-tooltip"
5541
- class={cx(styles.statusTooltip)}
4432
+ id="tsqd-status-tooltip"
4433
+ class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
5542
4434
  >{props.label}</div></Show>
5543
4435
  <span
5544
- class={css`
5545
- width: ${tokens.size[2]};
5546
- height: ${tokens.size[2]};
5547
- border-radius: ${tokens.border.radius.full};
5548
- background-color: ${tokens.colors[props.color][500]};
5549
- `}
4436
+ class={clsx(
4437
+ u`
4438
+ width: ${tokens.size[2]};
4439
+ height: ${tokens.size[2]};
4440
+ border-radius: ${tokens.border.radius.full};
4441
+ background-color: ${tokens.colors[props.color][500]};
4442
+ `,
4443
+ "tsqd-query-status-tag-dot"
4444
+ )}
5550
4445
  />
5551
- <Show when={showLabel()}><span>{props.label}</span></Show>
4446
+ <Show when={showLabel()}><span class="tsqd-query-status-tag-label">{props.label}</span></Show>
5552
4447
  <span
5553
- class={cx(
4448
+ class={clsx(
5554
4449
  styles.queryStatusCount,
5555
- props.count > 0 && props.color !== "gray" ? css`
4450
+ props.count > 0 && props.color !== "gray" ? u`
5556
4451
  background-color: ${tokens.colors[props.color][900]};
5557
- color: ${tokens.colors[props.color][300]} !important;
5558
- ` : css`
5559
- color: ${tokens.colors["gray"][400]} !important;
5560
- `
4452
+ color: ${tokens.colors[props.color][300]};
4453
+ ` : u`
4454
+ color: ${tokens.colors["gray"][400]};
4455
+ `,
4456
+ "tsqd-query-status-tag-count"
5561
4457
  )}
5562
4458
  >{props.count}</span>
5563
4459
  </button>;
@@ -5634,19 +4530,21 @@ var QueryDetails = () => {
5634
4530
  setRestoringLoading(false);
5635
4531
  }
5636
4532
  });
5637
- return <Show when={activeQuery() && activeQueryState()}><div class={styles.detailsContainer}>
5638
- <div class={styles.detailsHeader}>Query Details</div>
5639
- <div class={styles.detailsBody}>
5640
- <div>
4533
+ return <Show when={activeQuery() && activeQueryState()}><div class={clsx(styles.detailsContainer, "tsqd-query-details-container")}>
4534
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Details</div>
4535
+ <div
4536
+ class={clsx(styles.detailsBody, "tsqd-query-details-summary-container")}
4537
+ >
4538
+ <div class="tsqd-query-details-summary">
5641
4539
  <pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
5642
4540
  <span
5643
- class={cx(
4541
+ class={clsx(
5644
4542
  styles.queryDetailsStatus,
5645
- color() === "gray" ? css`
4543
+ color() === "gray" ? u`
5646
4544
  background-color: ${tokens.colors[color()][700]};
5647
4545
  color: ${tokens.colors[color()][300]};
5648
4546
  border-color: ${tokens.colors[color()][600]};
5649
- ` : css`
4547
+ ` : u`
5650
4548
  background-color: ${tokens.colors[color()][900]};
5651
4549
  color: ${tokens.colors[color()][300]};
5652
4550
  border-color: ${tokens.colors[color()][600]};
@@ -5654,63 +4552,102 @@ var QueryDetails = () => {
5654
4552
  )}
5655
4553
  >{statusLabel()}</span>
5656
4554
  </div>
5657
- <div>
4555
+ <div class="tsqd-query-details-observers-count">
5658
4556
  <span>Observers:</span>
5659
4557
  <span>{observerCount()}</span>
5660
4558
  </div>
5661
- <div>
4559
+ <div class="tsqd-query-details-last-updated">
5662
4560
  <span>Last Updated:</span>
5663
4561
  <span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
5664
4562
  </div>
5665
4563
  </div>
5666
- <div class={styles.detailsHeader}>Actions</div>
5667
- <div class={styles.actionsBody}>
4564
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
4565
+ <div
4566
+ class={clsx(styles.actionsBody, "tsqd-query-details-actions-container")}
4567
+ >
5668
4568
  <button
5669
- class={css`
5670
- color: ${tokens.colors.blue[400]};
5671
- `}
4569
+ class={clsx(
4570
+ u`
4571
+ color: ${tokens.colors.blue[400]};
4572
+ `,
4573
+ "tsqd-query-details-actions-btn",
4574
+ "tsqd-query-details-action-refetch"
4575
+ )}
5672
4576
  onClick={handleRefetch}
5673
4577
  disabled={statusLabel() === "fetching"}
5674
4578
  >
5675
4579
  <span
5676
- class={css`
4580
+ class={u`
5677
4581
  background-color: ${tokens.colors.blue[400]};
5678
4582
  `}
5679
4583
  />
5680
4584
  {"Refetch"}
5681
4585
  </button>
5682
4586
  <button
5683
- class={css`
5684
- color: ${tokens.colors.yellow[400]};
5685
- `}
4587
+ class={clsx(
4588
+ u`
4589
+ color: ${tokens.colors.yellow[400]};
4590
+ `,
4591
+ "tsqd-query-details-actions-btn",
4592
+ "tsqd-query-details-action-invalidate"
4593
+ )}
5686
4594
  onClick={() => queryClient.invalidateQueries(activeQuery())}
5687
4595
  disabled={queryStatus() === "pending"}
5688
4596
  >
5689
4597
  <span
5690
- class={css`
4598
+ class={u`
5691
4599
  background-color: ${tokens.colors.yellow[400]};
5692
4600
  `}
5693
4601
  />
5694
4602
  {"Invalidate"}
5695
4603
  </button>
5696
4604
  <button
5697
- class={css`
5698
- color: ${tokens.colors.gray[300]};
5699
- `}
4605
+ class={clsx(
4606
+ u`
4607
+ color: ${tokens.colors.gray[300]};
4608
+ `,
4609
+ "tsqd-query-details-actions-btn",
4610
+ "tsqd-query-details-action-reset"
4611
+ )}
5700
4612
  onClick={() => queryClient.resetQueries(activeQuery())}
5701
4613
  disabled={queryStatus() === "pending"}
5702
4614
  >
5703
4615
  <span
5704
- class={css`
4616
+ class={u`
5705
4617
  background-color: ${tokens.colors.gray[400]};
5706
4618
  `}
5707
4619
  />
5708
4620
  {"Reset"}
5709
4621
  </button>
5710
4622
  <button
5711
- class={css`
5712
- color: ${tokens.colors.cyan[400]};
5713
- `}
4623
+ class={clsx(
4624
+ u`
4625
+ color: ${tokens.colors.pink[400]};
4626
+ `,
4627
+ "tsqd-query-details-actions-btn",
4628
+ "tsqd-query-details-action-remove"
4629
+ )}
4630
+ onClick={() => {
4631
+ queryClient.removeQueries(activeQuery());
4632
+ setSelectedQueryHash(null);
4633
+ }}
4634
+ disabled={statusLabel() === "fetching"}
4635
+ >
4636
+ <span
4637
+ class={u`
4638
+ background-color: ${tokens.colors.pink[400]};
4639
+ `}
4640
+ />
4641
+ {"Remove"}
4642
+ </button>
4643
+ <button
4644
+ class={clsx(
4645
+ u`
4646
+ color: ${tokens.colors.cyan[400]};
4647
+ `,
4648
+ "tsqd-query-details-actions-btn",
4649
+ "tsqd-query-details-action-loading"
4650
+ )}
5714
4651
  disabled={restoringLoading()}
5715
4652
  onClick={() => {
5716
4653
  if (activeQuery()?.state.data === void 0) {
@@ -5742,7 +4679,7 @@ var QueryDetails = () => {
5742
4679
  }}
5743
4680
  >
5744
4681
  <span
5745
- class={css`
4682
+ class={u`
5746
4683
  background-color: ${tokens.colors.cyan[400]};
5747
4684
  `}
5748
4685
  />
@@ -5750,9 +4687,13 @@ var QueryDetails = () => {
5750
4687
  {" Loading"}
5751
4688
  </button>
5752
4689
  <Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
5753
- class={css`
5754
- color: ${tokens.colors.red[400]};
5755
- `}
4690
+ class={clsx(
4691
+ u`
4692
+ color: ${tokens.colors.red[400]};
4693
+ `,
4694
+ "tsqd-query-details-actions-btn",
4695
+ "tsqd-query-details-action-error"
4696
+ )}
5756
4697
  onClick={() => {
5757
4698
  if (!activeQuery().state.error) {
5758
4699
  triggerError();
@@ -5763,7 +4704,7 @@ var QueryDetails = () => {
5763
4704
  disabled={queryStatus() === "pending"}
5764
4705
  >
5765
4706
  <span
5766
- class={css`
4707
+ class={u`
5767
4708
  background-color: ${tokens.colors.red[400]};
5768
4709
  `}
5769
4710
  />
@@ -5772,18 +4713,24 @@ var QueryDetails = () => {
5772
4713
  </button></Show>
5773
4714
  <Show
5774
4715
  when={!(errorTypes().length === 0 || queryStatus() === "error")}
5775
- ><div class={styles.actionsSelect}>
4716
+ ><div
4717
+ class={clsx(
4718
+ styles.actionsSelect,
4719
+ "tsqd-query-details-actions-btn",
4720
+ "tsqd-query-details-action-error-multiple"
4721
+ )}
4722
+ >
5776
4723
  <span
5777
- class={css`
4724
+ class={u`
5778
4725
  background-color: ${tokens.colors.red[400]};
5779
4726
  `}
5780
4727
  />
5781
4728
  {"Trigger Error"}
5782
4729
  <select
5783
4730
  disabled={queryStatus() === "pending"}
5784
- onChange={(e) => {
4731
+ onChange={(e2) => {
5785
4732
  const errorType = errorTypes().find(
5786
- (t) => t.name === e.currentTarget.value
4733
+ (t2) => t2.name === e2.currentTarget.value
5787
4734
  );
5788
4735
  triggerError(errorType);
5789
4736
  }}
@@ -5794,22 +4741,24 @@ var QueryDetails = () => {
5794
4741
  <ChevronDown />
5795
4742
  </div></Show>
5796
4743
  </div>
5797
- <div class={styles.detailsHeader}>Data Explorer</div>
4744
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
5798
4745
  <div
5799
4746
  style={{
5800
4747
  padding: "0.5rem"
5801
4748
  }}
4749
+ class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"
5802
4750
  ><Explorer
5803
4751
  label="Data"
5804
4752
  defaultExpanded={["Data"]}
5805
4753
  value={activeQueryStateData()}
5806
4754
  copyable={true}
5807
4755
  /></div>
5808
- <div class={styles.detailsHeader}>Query Explorer</div>
4756
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
5809
4757
  <div
5810
4758
  style={{
5811
4759
  padding: "0.5rem"
5812
4760
  }}
4761
+ class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
5813
4762
  ><Explorer
5814
4763
  label="Query"
5815
4764
  defaultExpanded={["Query", "queryKey"]}
@@ -5857,10 +4806,11 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
5857
4806
  var getStyles2 = () => {
5858
4807
  const { colors, font, size, alpha, shadow, border } = tokens;
5859
4808
  return {
5860
- devtoolsBtn: css`
4809
+ devtoolsBtn: u`
5861
4810
  z-index: 100000;
5862
4811
  position: fixed;
5863
4812
  padding: 4px;
4813
+ text-align: left;
5864
4814
 
5865
4815
  display: flex;
5866
4816
  align-items: center;
@@ -5910,7 +4860,7 @@ var getStyles2 = () => {
5910
4860
  }
5911
4861
  }
5912
4862
  `,
5913
- panel: css`
4863
+ panel: u`
5914
4864
  position: fixed;
5915
4865
  z-index: 9999;
5916
4866
  display: flex;
@@ -5922,23 +4872,23 @@ var getStyles2 = () => {
5922
4872
  text-transform: none;
5923
4873
  }
5924
4874
  `,
5925
- "devtoolsBtn-position-bottom-right": css`
4875
+ "devtoolsBtn-position-bottom-right": u`
5926
4876
  bottom: 12px;
5927
4877
  right: 12px;
5928
4878
  `,
5929
- "devtoolsBtn-position-bottom-left": css`
4879
+ "devtoolsBtn-position-bottom-left": u`
5930
4880
  bottom: 12px;
5931
4881
  left: 12px;
5932
4882
  `,
5933
- "devtoolsBtn-position-top-left": css`
4883
+ "devtoolsBtn-position-top-left": u`
5934
4884
  top: 12px;
5935
4885
  left: 12px;
5936
4886
  `,
5937
- "devtoolsBtn-position-top-right": css`
4887
+ "devtoolsBtn-position-top-right": u`
5938
4888
  top: 12px;
5939
4889
  right: 12px;
5940
4890
  `,
5941
- "panel-position-top": css`
4891
+ "panel-position-top": u`
5942
4892
  top: 0;
5943
4893
  right: 0;
5944
4894
  left: 0;
@@ -5946,7 +4896,7 @@ var getStyles2 = () => {
5946
4896
  min-height: 3.5rem;
5947
4897
  border-bottom: ${colors.darkGray[300]} 1px solid;
5948
4898
  `,
5949
- "panel-position-bottom": css`
4899
+ "panel-position-bottom": u`
5950
4900
  bottom: 0;
5951
4901
  right: 0;
5952
4902
  left: 0;
@@ -5954,21 +4904,21 @@ var getStyles2 = () => {
5954
4904
  min-height: 3.5rem;
5955
4905
  border-top: ${colors.darkGray[300]} 1px solid;
5956
4906
  `,
5957
- "panel-position-right": css`
4907
+ "panel-position-right": u`
5958
4908
  bottom: 0;
5959
4909
  right: 0;
5960
4910
  top: 0;
5961
4911
  border-left: ${colors.darkGray[300]} 1px solid;
5962
4912
  max-width: 90%;
5963
4913
  `,
5964
- "panel-position-left": css`
4914
+ "panel-position-left": u`
5965
4915
  bottom: 0;
5966
4916
  left: 0;
5967
4917
  top: 0;
5968
4918
  border-right: ${colors.darkGray[300]} 1px solid;
5969
4919
  max-width: 90%;
5970
4920
  `,
5971
- closeBtn: css`
4921
+ closeBtn: u`
5972
4922
  position: absolute;
5973
4923
  cursor: pointer;
5974
4924
  z-index: 5;
@@ -5983,7 +4933,7 @@ var getStyles2 = () => {
5983
4933
  outline: 2px solid ${colors.blue[600]};
5984
4934
  }
5985
4935
  `,
5986
- "closeBtn-position-top": css`
4936
+ "closeBtn-position-top": u`
5987
4937
  bottom: 0;
5988
4938
  right: ${size[3]};
5989
4939
  transform: translate(0, 100%);
@@ -6008,7 +4958,7 @@ var getStyles2 = () => {
6008
4958
  transform: rotate(180deg);
6009
4959
  }
6010
4960
  `,
6011
- "closeBtn-position-bottom": css`
4961
+ "closeBtn-position-bottom": u`
6012
4962
  top: 0;
6013
4963
  right: ${size[3]};
6014
4964
  transform: translate(0, -100%);
@@ -6029,7 +4979,7 @@ var getStyles2 = () => {
6029
4979
  width: calc(100% + ${size[5]});
6030
4980
  }
6031
4981
  `,
6032
- "closeBtn-position-right": css`
4982
+ "closeBtn-position-right": u`
6033
4983
  bottom: ${size[3]};
6034
4984
  left: 0;
6035
4985
  transform: translate(-100%, 0);
@@ -6053,7 +5003,7 @@ var getStyles2 = () => {
6053
5003
  transform: rotate(-90deg);
6054
5004
  }
6055
5005
  `,
6056
- "closeBtn-position-left": css`
5006
+ "closeBtn-position-left": u`
6057
5007
  bottom: ${size[3]};
6058
5008
  right: 0;
6059
5009
  transform: translate(100%, 0);
@@ -6077,13 +5027,13 @@ var getStyles2 = () => {
6077
5027
  transform: rotate(90deg);
6078
5028
  }
6079
5029
  `,
6080
- queriesContainer: css`
5030
+ queriesContainer: u`
6081
5031
  flex: 1 1 700px;
6082
5032
  background-color: ${colors.darkGray[700]};
6083
5033
  display: flex;
6084
5034
  flex-direction: column;
6085
5035
  `,
6086
- dragHandle: css`
5036
+ dragHandle: u`
6087
5037
  position: absolute;
6088
5038
  transition: background-color 0.125s ease;
6089
5039
  &:hover {
@@ -6091,31 +5041,31 @@ var getStyles2 = () => {
6091
5041
  }
6092
5042
  z-index: 4;
6093
5043
  `,
6094
- "dragHandle-position-top": css`
5044
+ "dragHandle-position-top": u`
6095
5045
  bottom: 0;
6096
5046
  width: 100%;
6097
5047
  height: ${tokens.size[1]};
6098
5048
  cursor: ns-resize;
6099
5049
  `,
6100
- "dragHandle-position-bottom": css`
5050
+ "dragHandle-position-bottom": u`
6101
5051
  top: 0;
6102
5052
  width: 100%;
6103
5053
  height: ${tokens.size[1]};
6104
5054
  cursor: ns-resize;
6105
5055
  `,
6106
- "dragHandle-position-right": css`
5056
+ "dragHandle-position-right": u`
6107
5057
  left: 0;
6108
5058
  width: ${tokens.size[1]};
6109
5059
  height: 100%;
6110
5060
  cursor: ew-resize;
6111
5061
  `,
6112
- "dragHandle-position-left": css`
5062
+ "dragHandle-position-left": u`
6113
5063
  right: 0;
6114
5064
  width: ${tokens.size[1]};
6115
5065
  height: 100%;
6116
5066
  cursor: ew-resize;
6117
5067
  `,
6118
- row: css`
5068
+ row: u`
6119
5069
  display: flex;
6120
5070
  justify-content: space-between;
6121
5071
  padding: ${tokens.size[2.5]} ${tokens.size[3]};
@@ -6130,7 +5080,7 @@ var getStyles2 = () => {
6130
5080
  flex-direction: column;
6131
5081
  }
6132
5082
  `,
6133
- logo: css`
5083
+ logo: u`
6134
5084
  cursor: pointer;
6135
5085
  &:hover {
6136
5086
  opacity: 0.7;
@@ -6141,27 +5091,28 @@ var getStyles2 = () => {
6141
5091
  outline: 2px solid ${colors.blue[800]};
6142
5092
  }
6143
5093
  `,
6144
- tanstackLogo: css`
5094
+ tanstackLogo: u`
6145
5095
  font-size: ${font.size.lg};
6146
5096
  font-weight: ${font.weight.extrabold};
6147
5097
  line-height: ${font.lineHeight.sm};
6148
5098
  white-space: nowrap;
6149
5099
  `,
6150
- queryFlavorLogo: css`
5100
+ queryFlavorLogo: u`
6151
5101
  font-weight: ${font.weight.semibold};
6152
5102
  font-size: ${font.size.sm};
6153
5103
  background: linear-gradient(to right, #dd524b, #e9a03b);
6154
5104
  background-clip: text;
5105
+ -webkit-background-clip: text;
6155
5106
  line-height: ${font.lineHeight.xs};
6156
5107
  -webkit-text-fill-color: transparent;
6157
5108
  white-space: nowrap;
6158
5109
  `,
6159
- queryStatusContainer: css`
5110
+ queryStatusContainer: u`
6160
5111
  display: flex;
6161
5112
  gap: ${tokens.size[2]};
6162
5113
  height: min-content;
6163
5114
  `,
6164
- queryStatusTag: css`
5115
+ queryStatusTag: u`
6165
5116
  display: flex;
6166
5117
  gap: ${tokens.size[1.5]};
6167
5118
  background: ${colors.darkGray[500]};
@@ -6179,11 +5130,8 @@ var getStyles2 = () => {
6179
5130
  outline-offset: 2px;
6180
5131
  outline: 2px solid ${colors.blue[800]};
6181
5132
  }
6182
- & span:nth-child(2) {
6183
- color: ${colors.gray[300]}${alpha[80]};
6184
- }
6185
5133
  `,
6186
- statusTooltip: css`
5134
+ statusTooltip: u`
6187
5135
  position: absolute;
6188
5136
  z-index: 1;
6189
5137
  background-color: ${colors.darkGray[500]};
@@ -6222,10 +5170,10 @@ var getStyles2 = () => {
6222
5170
  border-width: 7px;
6223
5171
  }
6224
5172
  `,
6225
- selectedQueryRow: css`
5173
+ selectedQueryRow: u`
6226
5174
  background-color: ${colors.darkGray[500]};
6227
5175
  `,
6228
- queryStatusCount: css`
5176
+ queryStatusCount: u`
6229
5177
  padding: 0 8px;
6230
5178
  display: flex;
6231
5179
  align-items: center;
@@ -6235,7 +5183,7 @@ var getStyles2 = () => {
6235
5183
  border-radius: 3px;
6236
5184
  font-variant-numeric: tabular-nums;
6237
5185
  `,
6238
- filtersContainer: css`
5186
+ filtersContainer: u`
6239
5187
  display: flex;
6240
5188
  gap: ${tokens.size[2.5]};
6241
5189
  & > button {
@@ -6258,7 +5206,7 @@ var getStyles2 = () => {
6258
5206
  }
6259
5207
  }
6260
5208
  `,
6261
- filterInput: css`
5209
+ filterInput: u`
6262
5210
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6263
5211
  border-radius: ${tokens.border.radius.md};
6264
5212
  background-color: ${colors.darkGray[400]};
@@ -6296,7 +5244,7 @@ var getStyles2 = () => {
6296
5244
  outline: 2px solid ${colors.blue[800]};
6297
5245
  }
6298
5246
  `,
6299
- filterSelect: css`
5247
+ filterSelect: u`
6300
5248
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6301
5249
  border-radius: ${tokens.border.radius.md};
6302
5250
  background-color: ${colors.darkGray[400]};
@@ -6328,15 +5276,15 @@ var getStyles2 = () => {
6328
5276
  outline: 2px solid ${colors.blue[800]};
6329
5277
  }
6330
5278
  `,
6331
- actionsContainer: css`
5279
+ actionsContainer: u`
6332
5280
  display: flex;
6333
5281
  gap: ${tokens.size[2.5]};
6334
5282
  `,
6335
- actionsBtn: css`
5283
+ actionsBtn: u`
6336
5284
  border-radius: ${tokens.border.radius.md};
6337
5285
  background-color: ${colors.darkGray[400]};
6338
- width: 2.125rem; // 34px
6339
- height: 2.125rem; // 34px
5286
+ width: 2.125rem;
5287
+ height: 2.125rem;
6340
5288
  justify-content: center;
6341
5289
  display: flex;
6342
5290
  align-items: center;
@@ -6358,7 +5306,7 @@ var getStyles2 = () => {
6358
5306
  outline: 2px solid ${colors.blue[800]};
6359
5307
  }
6360
5308
  `,
6361
- overflowQueryContainer: css`
5309
+ overflowQueryContainer: u`
6362
5310
  flex: 1;
6363
5311
  overflow-y: auto;
6364
5312
  & > div {
@@ -6366,27 +5314,30 @@ var getStyles2 = () => {
6366
5314
  flex-direction: column;
6367
5315
  }
6368
5316
  `,
6369
- queryRow: css`
5317
+ queryRow: u`
6370
5318
  display: flex;
6371
5319
  align-items: center;
6372
5320
  padding: 0;
6373
5321
  background-color: inherit;
6374
5322
  border: none;
6375
5323
  cursor: pointer;
5324
+ &:focus {
5325
+ outline: none;
5326
+ }
6376
5327
  &:focus-visible {
6377
5328
  outline-offset: -2px;
6378
5329
  border-radius: ${border.radius.xs};
6379
5330
  outline: 2px solid ${colors.blue[800]};
6380
5331
  }
6381
- &:hover .TSQDQueryHash {
5332
+ &:hover .tsqd-query-hash {
6382
5333
  background-color: ${colors.darkGray[600]};
6383
5334
  }
6384
5335
 
6385
- & .TSQDObserverCount {
5336
+ & .tsqd-query-observer-count {
6386
5337
  padding: 0 ${tokens.size[1]};
6387
5338
  user-select: none;
6388
5339
  min-width: ${tokens.size[8]};
6389
- align-self: stretch !important;
5340
+ align-self: stretch;
6390
5341
  display: flex;
6391
5342
  align-items: center;
6392
5343
  justify-content: center;
@@ -6394,7 +5345,7 @@ var getStyles2 = () => {
6394
5345
  font-weight: ${font.weight.medium};
6395
5346
  border-bottom: 1px solid ${colors.darkGray[700]};
6396
5347
  }
6397
- & .TSQDQueryHash {
5348
+ & .tsqd-query-hash {
6398
5349
  user-select: text;
6399
5350
  font-size: ${font.size.sm};
6400
5351
  display: flex;
@@ -6402,16 +5353,15 @@ var getStyles2 = () => {
6402
5353
  min-height: ${tokens.size[8]};
6403
5354
  flex: 1;
6404
5355
  padding: ${tokens.size[1]} ${tokens.size[2]};
6405
- font-family: 'Menlo', 'Fira Code', monospace !important;
5356
+ font-family: 'Menlo', 'Fira Code', monospace;
6406
5357
  border-bottom: 1px solid ${colors.darkGray[400]};
6407
5358
  text-align: left;
6408
5359
  text-overflow: clip;
6409
5360
  word-break: break-word;
6410
5361
  }
6411
5362
 
6412
- & .TSQDQueryDisabled {
5363
+ & .tsqd-query-disabled-indicator {
6413
5364
  align-self: stretch;
6414
- align-self: stretch !important;
6415
5365
  display: flex;
6416
5366
  align-items: center;
6417
5367
  padding: 0 ${tokens.size[3]};
@@ -6421,15 +5371,16 @@ var getStyles2 = () => {
6421
5371
  font-size: ${font.size.sm};
6422
5372
  }
6423
5373
  `,
6424
- detailsContainer: css`
5374
+ detailsContainer: u`
6425
5375
  flex: 1 1 700px;
6426
5376
  background-color: ${colors.darkGray[700]};
6427
5377
  display: flex;
6428
5378
  flex-direction: column;
6429
5379
  overflow-y: auto;
6430
5380
  display: flex;
5381
+ text-align: left;
6431
5382
  `,
6432
- detailsHeader: css`
5383
+ detailsHeader: u`
6433
5384
  position: sticky;
6434
5385
  top: 0;
6435
5386
  z-index: 2;
@@ -6437,8 +5388,9 @@ var getStyles2 = () => {
6437
5388
  padding: ${tokens.size[2]} ${tokens.size[2]};
6438
5389
  font-weight: ${font.weight.medium};
6439
5390
  font-size: ${font.size.sm};
5391
+ text-align: left;
6440
5392
  `,
6441
- detailsBody: css`
5393
+ detailsBody: u`
6442
5394
  margin: ${tokens.size[2]} 0px ${tokens.size[3]} 0px;
6443
5395
  & > div {
6444
5396
  display: flex;
@@ -6459,19 +5411,19 @@ var getStyles2 = () => {
6459
5411
  }
6460
5412
 
6461
5413
  & code {
6462
- font-family: 'Menlo', 'Fira Code', monospace !important;
5414
+ font-family: 'Menlo', 'Fira Code', monospace;
6463
5415
  margin: 0;
6464
5416
  font-size: ${font.size.sm};
6465
5417
  line-height: ${font.lineHeight.sm};
6466
5418
  }
6467
5419
  `,
6468
- queryDetailsStatus: css`
5420
+ queryDetailsStatus: u`
6469
5421
  border: 1px solid ${colors.darkGray[200]};
6470
5422
  border-radius: ${tokens.border.radius.md};
6471
5423
  font-weight: ${font.weight.medium};
6472
5424
  padding: ${tokens.size[1]} ${tokens.size[2.5]};
6473
5425
  `,
6474
- actionsBody: css`
5426
+ actionsBody: u`
6475
5427
  flex-wrap: wrap;
6476
5428
  margin: ${tokens.size[3]} 0px ${tokens.size[3]} 0px;
6477
5429
  display: flex;
@@ -6510,7 +5462,7 @@ var getStyles2 = () => {
6510
5462
  }
6511
5463
  }
6512
5464
  `,
6513
- actionsSelect: css`
5465
+ actionsSelect: u`
6514
5466
  font-size: ${font.size.sm};
6515
5467
  padding: ${tokens.size[2]} ${tokens.size[2]};
6516
5468
  display: flex;
@@ -6552,10 +5504,10 @@ var getStyles2 = () => {
6552
5504
  }
6553
5505
 
6554
5506
  & svg path {
6555
- stroke: ${tokens.colors.red[400]} !important;
5507
+ stroke: ${tokens.colors.red[400]};
6556
5508
  }
6557
5509
  `,
6558
- settingsMenu: css`
5510
+ settingsMenu: u`
6559
5511
  position: absolute;
6560
5512
  top: calc(100% + ${tokens.size[2]});
6561
5513
  border-radius: ${tokens.border.radius.lg};
@@ -6567,12 +5519,12 @@ var getStyles2 = () => {
6567
5519
  color: ${colors.gray[500]};
6568
5520
  z-index: 7;
6569
5521
  `,
6570
- settingsMenuHeader: css`
5522
+ settingsMenuHeader: u`
6571
5523
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6572
5524
  color: ${colors.gray[300]};
6573
5525
  font-weight: ${font.weight.medium};
6574
5526
  `,
6575
- settingsMenuSection: css`
5527
+ settingsMenuSection: u`
6576
5528
  border-top: 1px solid ${colors.gray[600]};
6577
5529
  display: flex;
6578
5530
  flex-direction: column;