@tanstack/query-devtools 5.0.0-beta.20 → 5.0.0-beta.34

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,1359 +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;
621
- }
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 ? false : 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 (true) {
677
- var isImportRule3 = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
678
- if (isImportRule3 && this._alreadyInsertedOrderInsensitiveRule) {
679
- console.error("You're attempting to insert the following rule:\n" + rule + "\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.");
680
- }
681
- this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule3;
682
- }
683
- if (this.isSpeedy) {
684
- var sheet2 = sheetForTag(tag);
685
- try {
686
- sheet2.insertRule(rule, sheet2.cssRules.length);
687
- } catch (e) {
688
- if (!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
689
- console.error('There was a problem inserting the following rule: "' + rule + '"', e);
690
- }
691
- }
692
- } else {
693
- tag.appendChild(document.createTextNode(rule));
694
- }
695
- this.ctr++;
696
- };
697
- _proto.flush = function flush2() {
698
- this.tags.forEach(function(tag) {
699
- return tag.parentNode && tag.parentNode.removeChild(tag);
700
- });
701
- this.tags = [];
702
- this.ctr = 0;
703
- if (true) {
704
- this._alreadyInsertedOrderInsensitiveRule = false;
705
- }
706
- };
707
- return StyleSheet2;
708
- }();
709
-
710
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js
711
- var MS = "-ms-";
712
- var MOZ = "-moz-";
713
- var WEBKIT = "-webkit-";
714
- var COMMENT = "comm";
715
- var RULESET = "rule";
716
- var DECLARATION = "decl";
717
- var IMPORT = "@import";
718
- var KEYFRAMES = "@keyframes";
719
- var LAYER = "@layer";
720
-
721
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
722
- var abs = Math.abs;
723
- var from = String.fromCharCode;
724
- var assign = Object.assign;
725
- function hash(value, length2) {
726
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
727
- }
728
- function trim(value) {
729
- return value.trim();
730
- }
731
- function match(value, pattern) {
732
- return (value = pattern.exec(value)) ? value[0] : value;
733
- }
734
- function replace(value, pattern, replacement) {
735
- return value.replace(pattern, replacement);
736
- }
737
- function indexof(value, search) {
738
- return value.indexOf(search);
739
- }
740
- function charat(value, index) {
741
- return value.charCodeAt(index) | 0;
742
- }
743
- function substr(value, begin, end) {
744
- return value.slice(begin, end);
745
- }
746
- function strlen(value) {
747
- return value.length;
748
- }
749
- function sizeof(value) {
750
- return value.length;
751
- }
752
- function append(value, array) {
753
- return array.push(value), value;
754
- }
755
- function combine(array, callback) {
756
- return array.map(callback).join("");
757
- }
758
-
759
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
760
- var line = 1;
761
- var column = 1;
762
- var length = 0;
763
- var position = 0;
764
- var character = 0;
765
- var characters = "";
766
- function node(value, root, parent, type, props, children2, length2) {
767
- return { value, root, parent, type, props, children: children2, line, column, length: length2, return: "" };
768
- }
769
- function copy(root, props) {
770
- return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
771
- }
772
- function char() {
773
- return character;
774
- }
775
- function prev() {
776
- character = position > 0 ? charat(characters, --position) : 0;
777
- if (column--, character === 10)
778
- column = 1, line--;
779
- return character;
780
- }
781
- function next() {
782
- character = position < length ? charat(characters, position++) : 0;
783
- if (column++, character === 10)
784
- column = 1, line++;
785
- return character;
786
- }
787
- function peek() {
788
- return charat(characters, position);
789
- }
790
- function caret() {
791
- return position;
792
- }
793
- function slice(begin, end) {
794
- return substr(characters, begin, end);
795
- }
796
- function token(type) {
797
- switch (type) {
798
- case 0:
799
- case 9:
800
- case 10:
801
- case 13:
802
- case 32:
803
- return 5;
804
- case 33:
805
- case 43:
806
- case 44:
807
- case 47:
808
- case 62:
809
- case 64:
810
- case 126:
811
- case 59:
812
- case 123:
813
- case 125:
814
- return 4;
815
- case 58:
816
- return 3;
817
- case 34:
818
- case 39:
819
- case 40:
820
- case 91:
821
- return 2;
822
- case 41:
823
- case 93:
824
- return 1;
825
- }
826
- return 0;
827
- }
828
- function alloc(value) {
829
- return line = column = 1, length = strlen(characters = value), position = 0, [];
830
- }
831
- function dealloc(value) {
832
- return characters = "", value;
833
- }
834
- function delimit(type) {
835
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
836
- }
837
- function whitespace(type) {
838
- while (character = peek())
839
- if (character < 33)
840
- next();
841
- else
842
- break;
843
- return token(type) > 2 || token(character) > 3 ? "" : " ";
844
- }
845
- function escaping(index, count) {
846
- while (--count && next())
847
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
848
- break;
849
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
850
- }
851
- function delimiter(type) {
852
- while (next())
853
- switch (character) {
854
- case type:
855
- return position;
856
- case 34:
857
- case 39:
858
- if (type !== 34 && type !== 39)
859
- delimiter(character);
860
- break;
861
- case 40:
862
- if (type === 41)
863
- delimiter(type);
864
- break;
865
- case 92:
866
- next();
867
- break;
868
- }
869
- return position;
870
- }
871
- function commenter(type, index) {
872
- while (next())
873
- if (type + character === 47 + 10)
874
- break;
875
- else if (type + character === 42 + 42 && peek() === 47)
876
- break;
877
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
878
- }
879
- function identifier(index) {
880
- while (!token(peek()))
881
- next();
882
- return slice(index, position);
883
- }
884
-
885
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js
886
- function compile(value) {
887
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
888
- }
889
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
890
- var index = 0;
891
- var offset = 0;
892
- var length2 = pseudo;
893
- var atrule = 0;
894
- var property = 0;
895
- var previous = 0;
896
- var variable = 1;
897
- var scanning = 1;
898
- var ampersand = 1;
899
- var character2 = 0;
900
- var type = "";
901
- var props = rules;
902
- var children2 = rulesets;
903
- var reference = rule;
904
- var characters2 = type;
905
- while (scanning)
906
- switch (previous = character2, character2 = next()) {
907
- case 40:
908
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
909
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
910
- ampersand = -1;
911
- break;
912
- }
913
- case 34:
914
- case 39:
915
- case 91:
916
- characters2 += delimit(character2);
917
- break;
918
- case 9:
919
- case 10:
920
- case 13:
921
- case 32:
922
- characters2 += whitespace(previous);
923
- break;
924
- case 92:
925
- characters2 += escaping(caret() - 1, 7);
926
- continue;
927
- case 47:
928
- switch (peek()) {
929
- case 42:
930
- case 47:
931
- append(comment(commenter(next(), caret()), root, parent), declarations);
932
- break;
933
- default:
934
- characters2 += "/";
935
- }
936
- break;
937
- case 123 * variable:
938
- points[index++] = strlen(characters2) * ampersand;
939
- case 125 * variable:
940
- case 59:
941
- case 0:
942
- switch (character2) {
943
- case 0:
944
- case 125:
945
- scanning = 0;
946
- case 59 + offset:
947
- if (ampersand == -1)
948
- characters2 = replace(characters2, /\f/g, "");
949
- if (property > 0 && strlen(characters2) - length2)
950
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
951
- break;
952
- case 59:
953
- characters2 += ";";
954
- default:
955
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children2 = [], length2), rulesets);
956
- if (character2 === 123)
957
- if (offset === 0)
958
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children2);
959
- else
960
- switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
961
- case 100:
962
- case 108:
963
- case 109:
964
- case 115:
965
- 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);
966
- break;
967
- default:
968
- parse(characters2, reference, reference, reference, [""], children2, 0, points, children2);
969
- }
970
- }
971
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
972
- break;
973
- case 58:
974
- length2 = 1 + strlen(characters2), property = previous;
975
- default:
976
- if (variable < 1) {
977
- if (character2 == 123)
978
- --variable;
979
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
980
- continue;
981
- }
982
- switch (characters2 += from(character2), character2 * variable) {
983
- case 38:
984
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
985
- break;
986
- case 44:
987
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
988
- break;
989
- case 64:
990
- if (peek() === 45)
991
- characters2 += delimit(next());
992
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
993
- break;
994
- case 45:
995
- if (previous === 45 && strlen(characters2) == 2)
996
- variable = 0;
997
- }
998
- }
999
- return rulesets;
1000
- }
1001
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children2, length2) {
1002
- var post = offset - 1;
1003
- var rule = offset === 0 ? rules : [""];
1004
- var size = sizeof(rule);
1005
- for (var i = 0, j = 0, k = 0; i < index; ++i)
1006
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
1007
- if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1008
- props[k++] = z;
1009
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children2, length2);
1010
- }
1011
- function comment(value, root, parent) {
1012
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
1013
- }
1014
- function declaration(value, root, parent, length2) {
1015
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
1016
- }
1017
-
1018
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
1019
- function serialize(children2, callback) {
1020
- var output = "";
1021
- var length2 = sizeof(children2);
1022
- for (var i = 0; i < length2; i++)
1023
- output += callback(children2[i], i, children2, callback) || "";
1024
- return output;
1025
- }
1026
- function stringify(element, index, children2, callback) {
1027
- switch (element.type) {
1028
- case LAYER:
1029
- if (element.children.length)
1030
- break;
1031
- case IMPORT:
1032
- case DECLARATION:
1033
- return element.return = element.return || element.value;
1034
- case COMMENT:
1035
- return "";
1036
- case KEYFRAMES:
1037
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
1038
- case RULESET:
1039
- element.value = element.props.join(",");
1040
- }
1041
- return strlen(children2 = serialize(element.children, callback)) ? element.return = element.value + "{" + children2 + "}" : "";
1042
- }
1043
-
1044
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js
1045
- function middleware(collection) {
1046
- var length2 = sizeof(collection);
1047
- return function(element, index, children2, callback) {
1048
- var output = "";
1049
- for (var i = 0; i < length2; i++)
1050
- output += collection[i](element, index, children2, callback) || "";
1051
- return output;
1052
- };
1053
- }
1054
-
1055
- // ../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
1056
- function memoize(fn) {
1057
- var cache2 = /* @__PURE__ */ Object.create(null);
1058
- return function(arg) {
1059
- if (cache2[arg] === void 0)
1060
- cache2[arg] = fn(arg);
1061
- return cache2[arg];
1062
- };
1063
- }
1064
-
1065
- // ../../node_modules/.pnpm/@emotion+cache@11.11.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
1066
- var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
1067
- var previous = 0;
1068
- var character2 = 0;
1069
- while (true) {
1070
- previous = character2;
1071
- character2 = peek();
1072
- if (previous === 38 && character2 === 12) {
1073
- points[index] = 1;
1074
- }
1075
- if (token(character2)) {
1076
- break;
1077
- }
1078
- next();
1079
- }
1080
- return slice(begin, position);
1081
- };
1082
- var toRules = function toRules2(parsed, points) {
1083
- var index = -1;
1084
- var character2 = 44;
1085
- do {
1086
- switch (token(character2)) {
1087
- case 0:
1088
- if (character2 === 38 && peek() === 12) {
1089
- points[index] = 1;
1090
- }
1091
- parsed[index] += identifierWithPointTracking(position - 1, points, index);
1092
- break;
1093
- case 2:
1094
- parsed[index] += delimit(character2);
1095
- break;
1096
- case 4:
1097
- if (character2 === 44) {
1098
- parsed[++index] = peek() === 58 ? "&\f" : "";
1099
- points[index] = parsed[index].length;
1100
- break;
1101
- }
1102
- default:
1103
- parsed[index] += from(character2);
1104
- }
1105
- } while (character2 = next());
1106
- return parsed;
1107
- };
1108
- var getRules = function getRules2(value, points) {
1109
- return dealloc(toRules(alloc(value), points));
1110
- };
1111
- var fixedElements = /* @__PURE__ */ new WeakMap();
1112
- var compat = function compat2(element) {
1113
- if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
1114
- // negative .length indicates that this rule has been already prefixed
1115
- element.length < 1) {
1116
- return;
1117
- }
1118
- var value = element.value, parent = element.parent;
1119
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
1120
- while (parent.type !== "rule") {
1121
- parent = parent.parent;
1122
- if (!parent)
1123
- return;
1124
- }
1125
- if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
1126
- return;
1127
- }
1128
- if (isImplicitRule) {
1129
- return;
1130
- }
1131
- fixedElements.set(element, true);
1132
- var points = [];
1133
- var rules = getRules(value, points);
1134
- var parentRules = parent.props;
1135
- for (var i = 0, k = 0; i < rules.length; i++) {
1136
- for (var j = 0; j < parentRules.length; j++, k++) {
1137
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1138
- }
1139
- }
1140
- };
1141
- var removeLabel = function removeLabel2(element) {
1142
- if (element.type === "decl") {
1143
- var value = element.value;
1144
- if (
1145
- // charcode for l
1146
- value.charCodeAt(0) === 108 && // charcode for b
1147
- value.charCodeAt(2) === 98
1148
- ) {
1149
- element["return"] = "";
1150
- element.value = "";
1151
- }
1152
- }
1153
- };
1154
- var ignoreFlag = "emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason";
1155
- var isIgnoringComment = function isIgnoringComment2(element) {
1156
- return element.type === "comm" && element.children.indexOf(ignoreFlag) > -1;
1157
- };
1158
- var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm2(cache2) {
1159
- return function(element, index, children2) {
1160
- if (element.type !== "rule" || cache2.compat)
1161
- return;
1162
- var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
1163
- if (unsafePseudoClasses) {
1164
- var isNested = !!element.parent;
1165
- var commentContainer = isNested ? element.parent.children : (
1166
- // global rule at the root level
1167
- children2
1168
- );
1169
- for (var i = commentContainer.length - 1; i >= 0; i--) {
1170
- var node2 = commentContainer[i];
1171
- if (node2.line < element.line) {
1172
- break;
1173
- }
1174
- if (node2.column < element.column) {
1175
- if (isIgnoringComment(node2)) {
1176
- return;
1177
- }
1178
- break;
1179
- }
1180
- }
1181
- unsafePseudoClasses.forEach(function(unsafePseudoClass) {
1182
- console.error('The pseudo class "' + unsafePseudoClass + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + unsafePseudoClass.split("-child")[0] + '-of-type".');
1183
- });
1184
- }
1185
- };
1186
- };
1187
- var isImportRule = function isImportRule2(element) {
1188
- return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
1189
- };
1190
- var isPrependedWithRegularRules = function isPrependedWithRegularRules2(index, children2) {
1191
- for (var i = index - 1; i >= 0; i--) {
1192
- if (!isImportRule(children2[i])) {
1193
- return true;
1194
- }
1195
- }
1196
- return false;
1197
- };
1198
- var nullifyElement = function nullifyElement2(element) {
1199
- element.type = "";
1200
- element.value = "";
1201
- element["return"] = "";
1202
- element.children = "";
1203
- element.props = "";
1204
- };
1205
- var incorrectImportAlarm = function incorrectImportAlarm2(element, index, children2) {
1206
- if (!isImportRule(element)) {
1207
- return;
1208
- }
1209
- if (element.parent) {
1210
- console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
1211
- nullifyElement(element);
1212
- } else if (isPrependedWithRegularRules(index, children2)) {
1213
- console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
1214
- nullifyElement(element);
1215
- }
1216
- };
1217
- function prefix(value, length2) {
1218
- switch (hash(value, length2)) {
1219
- case 5103:
1220
- return WEBKIT + "print-" + value + value;
1221
- case 5737:
1222
- case 4201:
1223
- case 3177:
1224
- case 3433:
1225
- case 1641:
1226
- case 4457:
1227
- case 2921:
1228
- case 5572:
1229
- case 6356:
1230
- case 5844:
1231
- case 3191:
1232
- case 6645:
1233
- case 3005:
1234
- case 6391:
1235
- case 5879:
1236
- case 5623:
1237
- case 6135:
1238
- case 4599:
1239
- case 4855:
1240
- case 4215:
1241
- case 6389:
1242
- case 5109:
1243
- case 5365:
1244
- case 5621:
1245
- case 3829:
1246
- return WEBKIT + value + value;
1247
- case 5349:
1248
- case 4246:
1249
- case 4810:
1250
- case 6968:
1251
- case 2756:
1252
- return WEBKIT + value + MOZ + value + MS + value + value;
1253
- case 6828:
1254
- case 4268:
1255
- return WEBKIT + value + MS + value + value;
1256
- case 6165:
1257
- return WEBKIT + value + MS + "flex-" + value + value;
1258
- case 5187:
1259
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
1260
- case 5443:
1261
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
1262
- case 4675:
1263
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
1264
- case 5548:
1265
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
1266
- case 5292:
1267
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
1268
- case 6060:
1269
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
1270
- case 4554:
1271
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
1272
- case 6187:
1273
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
1274
- case 5495:
1275
- case 3959:
1276
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
1277
- case 4968:
1278
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
1279
- case 4095:
1280
- case 3583:
1281
- case 4068:
1282
- case 2532:
1283
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
1284
- case 8116:
1285
- case 7059:
1286
- case 5753:
1287
- case 5535:
1288
- case 5445:
1289
- case 5701:
1290
- case 4933:
1291
- case 4677:
1292
- case 5533:
1293
- case 5789:
1294
- case 5021:
1295
- case 4765:
1296
- if (strlen(value) - 1 - length2 > 6)
1297
- switch (charat(value, length2 + 1)) {
1298
- case 109:
1299
- if (charat(value, length2 + 4) !== 45)
1300
- break;
1301
- case 102:
1302
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1303
- case 115:
1304
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
1305
- }
1306
- break;
1307
- case 4949:
1308
- if (charat(value, length2 + 1) !== 115)
1309
- break;
1310
- case 6444:
1311
- switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
1312
- case 107:
1313
- return replace(value, ":", ":" + WEBKIT) + value;
1314
- case 101:
1315
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1316
- }
1317
- break;
1318
- case 5936:
1319
- switch (charat(value, length2 + 11)) {
1320
- case 114:
1321
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1322
- case 108:
1323
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1324
- case 45:
1325
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1326
- }
1327
- return WEBKIT + value + MS + value + value;
1328
- }
1329
- return value;
1330
- }
1331
- var prefixer = function prefixer2(element, index, children2, callback) {
1332
- if (element.length > -1) {
1333
- if (!element["return"])
1334
- switch (element.type) {
1335
- case DECLARATION:
1336
- element["return"] = prefix(element.value, element.length);
1337
- break;
1338
- case KEYFRAMES:
1339
- return serialize([copy(element, {
1340
- value: replace(element.value, "@", "@" + WEBKIT)
1341
- })], callback);
1342
- case RULESET:
1343
- if (element.length)
1344
- return combine(element.props, function(value) {
1345
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
1346
- case ":read-only":
1347
- case ":read-write":
1348
- return serialize([copy(element, {
1349
- props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
1350
- })], callback);
1351
- case "::placeholder":
1352
- return serialize([copy(element, {
1353
- props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
1354
- }), copy(element, {
1355
- props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
1356
- }), copy(element, {
1357
- props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
1358
- })], callback);
1359
- }
1360
- return "";
1361
- });
1362
- }
1363
- }
1364
- };
1365
- var defaultStylisPlugins = [prefixer];
1366
- var createCache = function createCache2(options) {
1367
- var key = options.key;
1368
- if (!key) {
1369
- 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.");
1370
- }
1371
- if (key === "css") {
1372
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1373
- Array.prototype.forEach.call(ssrStyles, function(node2) {
1374
- var dataEmotionAttribute = node2.getAttribute("data-emotion");
1375
- if (dataEmotionAttribute.indexOf(" ") === -1) {
1376
- return;
1377
- }
1378
- document.head.appendChild(node2);
1379
- node2.setAttribute("data-s", "");
1380
- });
1381
- }
1382
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1383
- if (true) {
1384
- if (/[^a-z-]/.test(key)) {
1385
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
1386
- }
1387
- }
1388
- var inserted = {};
1389
- var container;
1390
- var nodesToHydrate = [];
1391
- {
1392
- container = options.container || document.head;
1393
- Array.prototype.forEach.call(
1394
- // this means we will ignore elements which don't have a space in them which
1395
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1396
- document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
1397
- function(node2) {
1398
- var attrib = node2.getAttribute("data-emotion").split(" ");
1399
- for (var i = 1; i < attrib.length; i++) {
1400
- inserted[attrib[i]] = true;
1401
- }
1402
- nodesToHydrate.push(node2);
1403
- }
1404
- );
1405
- }
1406
- var _insert;
1407
- var omnipresentPlugins = [compat, removeLabel];
1408
- if (true) {
1409
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1410
- get compat() {
1411
- return cache2.compat;
1412
- }
1413
- }), incorrectImportAlarm);
1414
- }
1415
- {
1416
- var currentSheet;
1417
- var finalizingPlugins = [stringify, true ? function(element) {
1418
- if (!element.root) {
1419
- if (element["return"]) {
1420
- currentSheet.insert(element["return"]);
1421
- } else if (element.value && element.type !== COMMENT) {
1422
- currentSheet.insert(element.value + "{}");
1423
- }
1424
- }
1425
- } : rulesheet(function(rule) {
1426
- currentSheet.insert(rule);
1427
- })];
1428
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1429
- var stylis = function stylis2(styles) {
1430
- return serialize(compile(styles), serializer);
1431
- };
1432
- _insert = function insert(selector, serialized, sheet2, shouldCache) {
1433
- currentSheet = sheet2;
1434
- if (serialized.map !== void 0) {
1435
- currentSheet = {
1436
- insert: function insert2(rule) {
1437
- sheet2.insert(rule + serialized.map);
1438
- }
1439
- };
1440
- }
1441
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1442
- if (shouldCache) {
1443
- cache2.inserted[serialized.name] = true;
1444
- }
1445
- };
1446
- }
1447
- var cache2 = {
1448
- key,
1449
- sheet: new StyleSheet({
1450
- key,
1451
- container,
1452
- nonce: options.nonce,
1453
- speedy: options.speedy,
1454
- prepend: options.prepend,
1455
- insertionPoint: options.insertionPoint
1456
- }),
1457
- nonce: options.nonce,
1458
- inserted,
1459
- registered: {},
1460
- insert: _insert
1461
- };
1462
- cache2.sheet.hydrate(nodesToHydrate);
1463
- return cache2;
1464
- };
1465
-
1466
- // ../../node_modules/.pnpm/@emotion+hash@0.9.1/node_modules/@emotion/hash/dist/emotion-hash.esm.js
1467
- function murmur2(str) {
1468
- var h = 0;
1469
- var k, i = 0, len = str.length;
1470
- for (; len >= 4; ++i, len -= 4) {
1471
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1472
- k = /* Math.imul(k, m): */
1473
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1474
- k ^= /* k >>> r: */
1475
- k >>> 24;
1476
- h = /* Math.imul(k, m): */
1477
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1478
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1479
- }
1480
- switch (len) {
1481
- case 3:
1482
- h ^= (str.charCodeAt(i + 2) & 255) << 16;
1483
- case 2:
1484
- h ^= (str.charCodeAt(i + 1) & 255) << 8;
1485
- case 1:
1486
- h ^= str.charCodeAt(i) & 255;
1487
- h = /* Math.imul(h, m): */
1488
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1489
- }
1490
- h ^= h >>> 13;
1491
- h = /* Math.imul(h, m): */
1492
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1493
- return ((h ^ h >>> 15) >>> 0).toString(36);
1494
- }
1495
-
1496
- // ../../node_modules/.pnpm/@emotion+unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
1497
- var unitlessKeys = {
1498
- animationIterationCount: 1,
1499
- aspectRatio: 1,
1500
- borderImageOutset: 1,
1501
- borderImageSlice: 1,
1502
- borderImageWidth: 1,
1503
- boxFlex: 1,
1504
- boxFlexGroup: 1,
1505
- boxOrdinalGroup: 1,
1506
- columnCount: 1,
1507
- columns: 1,
1508
- flex: 1,
1509
- flexGrow: 1,
1510
- flexPositive: 1,
1511
- flexShrink: 1,
1512
- flexNegative: 1,
1513
- flexOrder: 1,
1514
- gridRow: 1,
1515
- gridRowEnd: 1,
1516
- gridRowSpan: 1,
1517
- gridRowStart: 1,
1518
- gridColumn: 1,
1519
- gridColumnEnd: 1,
1520
- gridColumnSpan: 1,
1521
- gridColumnStart: 1,
1522
- msGridRow: 1,
1523
- msGridRowSpan: 1,
1524
- msGridColumn: 1,
1525
- msGridColumnSpan: 1,
1526
- fontWeight: 1,
1527
- lineHeight: 1,
1528
- opacity: 1,
1529
- order: 1,
1530
- orphans: 1,
1531
- tabSize: 1,
1532
- widows: 1,
1533
- zIndex: 1,
1534
- zoom: 1,
1535
- WebkitLineClamp: 1,
1536
- // SVG-related properties
1537
- fillOpacity: 1,
1538
- floodOpacity: 1,
1539
- stopOpacity: 1,
1540
- strokeDasharray: 1,
1541
- strokeDashoffset: 1,
1542
- strokeMiterlimit: 1,
1543
- strokeOpacity: 1,
1544
- strokeWidth: 1
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 + ";");
628
+ }
629
+ return r2 + (t2 && a2 ? t2 + "{" + a2 + "}" : a2) + l2;
1545
630
  };
1546
-
1547
- // ../../node_modules/.pnpm/@emotion+serialize@1.1.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
1548
- var ILLEGAL_ESCAPE_SEQUENCE_ERROR = `You have illegal escape sequence in your template literal, most likely inside content's property value.
1549
- Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
1550
- You can read more about this here:
1551
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`;
1552
- var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
1553
- var hyphenateRegex = /[A-Z]|^ms/g;
1554
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1555
- var isCustomProperty = function isCustomProperty2(property) {
1556
- return property.charCodeAt(1) === 45;
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;
638
+ }
639
+ return e2;
1557
640
  };
1558
- var isProcessableValue = function isProcessableValue2(value) {
1559
- return value != null && typeof value !== "boolean";
1560
- };
1561
- var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1562
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1563
- });
1564
- var processStyleValue = function processStyleValue2(key, value) {
1565
- switch (key) {
1566
- case "animation":
1567
- case "animationName": {
1568
- if (typeof value === "string") {
1569
- return value.replace(animationRegex, function(match2, p1, p2) {
1570
- cursor = {
1571
- name: p1,
1572
- styles: p2,
1573
- next: cursor
1574
- };
1575
- return p1;
1576
- });
1577
- }
1578
- }
1579
- }
1580
- if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1581
- return value + "px";
1582
- }
1583
- return value;
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);
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;
1584
661
  };
1585
- if (true) {
1586
- contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1587
- contentValues = ["normal", "none", "initial", "inherit", "unset"];
1588
- oldProcessStyleValue = processStyleValue;
1589
- msPattern = /^-ms-/;
1590
- hyphenPattern = /-(.)/g;
1591
- hyphenatedCache = {};
1592
- processStyleValue = function processStyleValue3(key, value) {
1593
- if (key === "content") {
1594
- 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) !== "'")) {
1595
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1596
- }
1597
- }
1598
- var processed = oldProcessStyleValue(key, value);
1599
- if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
1600
- hyphenatedCache[key] = true;
1601
- console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, "ms-").replace(hyphenPattern, function(str, _char) {
1602
- return _char.toUpperCase();
1603
- }) + "?");
1604
- }
1605
- return processed;
1606
- };
1607
- }
1608
- var contentValuePattern;
1609
- var contentValues;
1610
- var oldProcessStyleValue;
1611
- var msPattern;
1612
- var hyphenPattern;
1613
- var hyphenatedCache;
1614
- var noComponentSelectorMessage = "Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
1615
- function handleInterpolation(mergedProps, registered, interpolation) {
1616
- if (interpolation == null) {
1617
- return "";
1618
- }
1619
- if (interpolation.__emotion_styles !== void 0) {
1620
- if (interpolation.toString() === "NO_COMPONENT_SELECTOR") {
1621
- throw new Error(noComponentSelectorMessage);
1622
- }
1623
- return interpolation;
1624
- }
1625
- switch (typeof interpolation) {
1626
- case "boolean": {
1627
- return "";
1628
- }
1629
- case "object": {
1630
- if (interpolation.anim === 1) {
1631
- cursor = {
1632
- name: interpolation.name,
1633
- styles: interpolation.styles,
1634
- next: cursor
1635
- };
1636
- return interpolation.name;
1637
- }
1638
- if (interpolation.styles !== void 0) {
1639
- var next2 = interpolation.next;
1640
- if (next2 !== void 0) {
1641
- while (next2 !== void 0) {
1642
- cursor = {
1643
- name: next2.name,
1644
- styles: next2.styles,
1645
- next: cursor
1646
- };
1647
- next2 = next2.next;
1648
- }
1649
- }
1650
- var styles = interpolation.styles + ";";
1651
- if (interpolation.map !== void 0) {
1652
- styles += interpolation.map;
1653
- }
1654
- return styles;
1655
- }
1656
- return createStringFromObject(mergedProps, registered, interpolation);
1657
- }
1658
- case "function": {
1659
- if (mergedProps !== void 0) {
1660
- var previousCursor = cursor;
1661
- var result = interpolation(mergedProps);
1662
- cursor = previousCursor;
1663
- return handleInterpolation(mergedProps, registered, result);
1664
- } else if (true) {
1665
- console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");
1666
- }
1667
- break;
1668
- }
1669
- case "string":
1670
- if (true) {
1671
- var matched = [];
1672
- var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
1673
- var fakeVarName = "animation" + matched.length;
1674
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
1675
- return "${" + fakeVarName + "}";
1676
- });
1677
- if (matched.length) {
1678
- console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n" + [].concat(matched, ["`" + replaced + "`"]).join("\n") + "\n\nYou should wrap it with `css` like this:\n\n" + ("css`" + replaced + "`"));
1679
- }
1680
- }
1681
- break;
1682
- }
1683
- if (registered == null) {
1684
- return interpolation;
1685
- }
1686
- var cached = registered[interpolation];
1687
- return cached !== void 0 ? cached : interpolation;
1688
- }
1689
- function createStringFromObject(mergedProps, registered, obj) {
1690
- var string = "";
1691
- if (Array.isArray(obj)) {
1692
- for (var i = 0; i < obj.length; i++) {
1693
- string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1694
- }
1695
- } else {
1696
- for (var _key in obj) {
1697
- var value = obj[_key];
1698
- if (typeof value !== "object") {
1699
- if (registered != null && registered[value] !== void 0) {
1700
- string += _key + "{" + registered[value] + "}";
1701
- } else if (isProcessableValue(value)) {
1702
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1703
- }
1704
- } else {
1705
- if (_key === "NO_COMPONENT_SELECTOR" && true) {
1706
- throw new Error(noComponentSelectorMessage);
1707
- }
1708
- if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1709
- for (var _i = 0; _i < value.length; _i++) {
1710
- if (isProcessableValue(value[_i])) {
1711
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1712
- }
1713
- }
1714
- } else {
1715
- var interpolated = handleInterpolation(mergedProps, registered, value);
1716
- switch (_key) {
1717
- case "animation":
1718
- case "animationName": {
1719
- string += processStyleName(_key) + ":" + interpolated + ";";
1720
- break;
1721
- }
1722
- default: {
1723
- if (_key === "undefined") {
1724
- console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
1725
- }
1726
- string += _key + "{" + interpolated + "}";
1727
- }
1728
- }
1729
- }
1730
- }
1731
- }
1732
- }
1733
- return string;
1734
- }
1735
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1736
- var sourceMapPattern;
1737
- if (true) {
1738
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
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;
667
+ }
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);
1739
673
  }
1740
- var cursor;
1741
- var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1742
- if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1743
- return args[0];
1744
- }
1745
- var stringMode = true;
1746
- var styles = "";
1747
- cursor = void 0;
1748
- var strings = args[0];
1749
- if (strings == null || strings.raw === void 0) {
1750
- stringMode = false;
1751
- styles += handleInterpolation(mergedProps, registered, strings);
1752
- } else {
1753
- if (strings[0] === void 0) {
1754
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1755
- }
1756
- styles += strings[0];
1757
- }
1758
- for (var i = 1; i < args.length; i++) {
1759
- styles += handleInterpolation(mergedProps, registered, args[i]);
1760
- if (stringMode) {
1761
- if (strings[i] === void 0) {
1762
- console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
1763
- }
1764
- styles += strings[i];
1765
- }
1766
- }
1767
- var sourceMap;
1768
- if (true) {
1769
- styles = styles.replace(sourceMapPattern, function(match3) {
1770
- sourceMap = match3;
1771
- return "";
1772
- });
1773
- }
1774
- labelPattern.lastIndex = 0;
1775
- var identifierName = "";
1776
- var match2;
1777
- while ((match2 = labelPattern.exec(styles)) !== null) {
1778
- identifierName += "-" + // $FlowFixMe we know it's not null
1779
- match2[1];
1780
- }
1781
- var name = murmur2(styles) + identifierName;
1782
- if (true) {
1783
- return {
1784
- name,
1785
- styles,
1786
- map: sourceMap,
1787
- next: cursor,
1788
- toString: function toString() {
1789
- 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).";
1790
- }
1791
- };
1792
- }
1793
- return {
1794
- name,
1795
- styles,
1796
- next: cursor
1797
- };
1798
- };
674
+ var b = u.bind({ g: 1 });
675
+ var h = u.bind({ k: 1 });
1799
676
 
1800
- // ../../node_modules/.pnpm/@emotion+utils@1.2.1/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
1801
- var isBrowser = true;
1802
- function getRegisteredStyles(registered, registeredStyles, classNames) {
1803
- var rawClassName = "";
1804
- classNames.split(" ").forEach(function(className) {
1805
- if (registered[className] !== void 0) {
1806
- registeredStyles.push(registered[className] + ";");
1807
- } else {
1808
- rawClassName += className + " ";
1809
- }
1810
- });
1811
- return rawClassName;
1812
- }
1813
- var registerStyles = function registerStyles2(cache2, serialized, isStringTag) {
1814
- var className = cache2.key + "-" + serialized.name;
1815
- if (
1816
- // we only need to add the styles to the registered cache if the
1817
- // class name could be used further down
1818
- // the tree but if it's a string tag, we know it won't
1819
- // so we don't have to add it to registered cache.
1820
- // this improves memory usage since we can avoid storing the whole style string
1821
- (isStringTag === false || // we need to always store it if we're in compat mode and
1822
- // in node since emotion-server relies on whether a style is in
1823
- // the registered cache to know whether a style is global or not
1824
- // also, note that this check will be dead code eliminated in the browser
1825
- isBrowser === false) && cache2.registered[className] === void 0
1826
- ) {
1827
- cache2.registered[className] = serialized.styles;
1828
- }
1829
- };
1830
- var insertStyles = function insertStyles2(cache2, serialized, isStringTag) {
1831
- registerStyles(cache2, serialized, isStringTag);
1832
- var className = cache2.key + "-" + serialized.name;
1833
- if (cache2.inserted[serialized.name] === void 0) {
1834
- var current = serialized;
1835
- do {
1836
- cache2.insert(serialized === current ? "." + className : "", current, cache2.sheet, true);
1837
- current = current.next;
1838
- } while (current !== void 0);
1839
- }
1840
- };
1841
-
1842
- // ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
1843
- function insertWithoutScoping(cache2, serialized) {
1844
- if (cache2.inserted[serialized.name] === void 0) {
1845
- return cache2.insert("", serialized, cache2.sheet, true);
1846
- }
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;
1847
690
  }
1848
- function merge(registered, css2, className) {
1849
- var registeredStyles = [];
1850
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
1851
- if (registeredStyles.length < 2) {
1852
- return className;
1853
- }
1854
- return rawClassName + css2(registeredStyles);
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;
1855
695
  }
1856
- var createEmotion = function createEmotion2(options) {
1857
- var cache2 = createCache(options);
1858
- cache2.sheet.speedy = function(value) {
1859
- if (this.ctr !== 0) {
1860
- throw new Error("speedy must be changed before any rules are inserted");
1861
- }
1862
- this.isSpeedy = value;
1863
- };
1864
- cache2.compat = true;
1865
- var css2 = function css3() {
1866
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1867
- args[_key] = arguments[_key];
1868
- }
1869
- var serialized = serializeStyles(args, cache2.registered, void 0);
1870
- insertStyles(cache2, serialized, false);
1871
- return cache2.key + "-" + serialized.name;
1872
- };
1873
- var keyframes2 = function keyframes3() {
1874
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1875
- args[_key2] = arguments[_key2];
1876
- }
1877
- var serialized = serializeStyles(args, cache2.registered);
1878
- var animation = "animation-" + serialized.name;
1879
- insertWithoutScoping(cache2, {
1880
- name: serialized.name,
1881
- styles: "@keyframes " + animation + "{" + serialized.styles + "}"
1882
- });
1883
- return animation;
1884
- };
1885
- var injectGlobal2 = function injectGlobal3() {
1886
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1887
- args[_key3] = arguments[_key3];
1888
- }
1889
- var serialized = serializeStyles(args, cache2.registered);
1890
- insertWithoutScoping(cache2, serialized);
1891
- };
1892
- var cx2 = function cx3() {
1893
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1894
- args[_key4] = arguments[_key4];
1895
- }
1896
- return merge(cache2.registered, css2, classnames(args));
1897
- };
1898
- return {
1899
- css: css2,
1900
- cx: cx2,
1901
- injectGlobal: injectGlobal2,
1902
- keyframes: keyframes2,
1903
- hydrate: function hydrate2(ids) {
1904
- ids.forEach(function(key) {
1905
- cache2.inserted[key] = true;
1906
- });
1907
- },
1908
- flush: function flush2() {
1909
- cache2.registered = {};
1910
- cache2.inserted = {};
1911
- cache2.sheet.flush();
1912
- },
1913
- // $FlowFixMe
1914
- sheet: cache2.sheet,
1915
- cache: cache2,
1916
- getRegisteredStyles: getRegisteredStyles.bind(null, cache2.registered),
1917
- merge: merge.bind(null, cache2.registered, css2)
1918
- };
1919
- };
1920
- var classnames = function classnames2(args) {
1921
- var cls = "";
1922
- for (var i = 0; i < args.length; i++) {
1923
- var arg = args[i];
1924
- if (arg == null)
1925
- continue;
1926
- var toAdd = void 0;
1927
- switch (typeof arg) {
1928
- case "boolean":
1929
- break;
1930
- case "object": {
1931
- if (Array.isArray(arg)) {
1932
- toAdd = classnames2(arg);
1933
- } else {
1934
- toAdd = "";
1935
- for (var k in arg) {
1936
- if (arg[k] && k) {
1937
- toAdd && (toAdd += " ");
1938
- toAdd += k;
1939
- }
1940
- }
1941
- }
1942
- break;
1943
- }
1944
- default: {
1945
- toAdd = arg;
1946
- }
1947
- }
1948
- if (toAdd) {
1949
- cls && (cls += " ");
1950
- cls += toAdd;
1951
- }
1952
- }
1953
- return cls;
1954
- };
1955
-
1956
- // ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/dist/emotion-css.esm.js
1957
- var _createEmotion = createEmotion({
1958
- key: "css"
1959
- });
1960
- var flush = _createEmotion.flush;
1961
- var hydrate = _createEmotion.hydrate;
1962
- var cx = _createEmotion.cx;
1963
- var merge2 = _createEmotion.merge;
1964
- var getRegisteredStyles2 = _createEmotion.getRegisteredStyles;
1965
- var injectGlobal = _createEmotion.injectGlobal;
1966
- var keyframes = _createEmotion.keyframes;
1967
- var css = _createEmotion.css;
1968
- var sheet = _createEmotion.sheet;
1969
- var cache = _createEmotion.cache;
1970
696
 
1971
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
1972
698
  var noop = () => {
@@ -1974,8 +700,8 @@ var noop = () => {
1974
700
  function createListTransition(source, options) {
1975
701
  const initSource = untrack(source);
1976
702
  if (isServer) {
1977
- const copy3 = initSource.slice();
1978
- return () => copy3;
703
+ const copy2 = initSource.slice();
704
+ return () => copy2;
1979
705
  }
1980
706
  const { onChange } = options;
1981
707
  let prevSet = new Set(options.appear ? void 0 : initSource);
@@ -1983,29 +709,29 @@ function createListTransition(source, options) {
1983
709
  const [toRemove, setToRemove] = createSignal([], { equals: false });
1984
710
  const [isTransitionPending] = useTransition();
1985
711
  const finishRemoved = options.exitMethod === "remove" ? noop : (els) => {
1986
- setToRemove((p) => (p.push.apply(p, els), p));
712
+ setToRemove((p2) => (p2.push.apply(p2, els), p2));
1987
713
  for (const el of els)
1988
714
  exiting.delete(el);
1989
715
  };
1990
- 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);
1991
717
  return createMemo(
1992
- (prev2) => {
718
+ (prev) => {
1993
719
  const elsToRemove = toRemove();
1994
720
  const sourceList = source();
1995
721
  sourceList[$TRACK];
1996
722
  if (untrack(isTransitionPending)) {
1997
723
  isTransitionPending();
1998
- return prev2;
724
+ return prev;
1999
725
  }
2000
726
  if (elsToRemove.length) {
2001
- const next2 = prev2.filter((e) => !elsToRemove.includes(e));
727
+ const next = prev.filter((e2) => !elsToRemove.includes(e2));
2002
728
  elsToRemove.length = 0;
2003
- onChange({ list: next2, added: [], removed: [], unchanged: next2, finishRemoved });
2004
- return next2;
729
+ onChange({ list: next, added: [], removed: [], unchanged: next, finishRemoved });
730
+ return next;
2005
731
  }
2006
732
  return untrack(() => {
2007
733
  const nextSet = new Set(sourceList);
2008
- const next2 = sourceList.slice();
734
+ const next = sourceList.slice();
2009
735
  const added = [];
2010
736
  const removed = [];
2011
737
  const unchanged = [];
@@ -2013,23 +739,23 @@ function createListTransition(source, options) {
2013
739
  (prevSet.has(el) ? unchanged : added).push(el);
2014
740
  }
2015
741
  let nothingChanged = !added.length;
2016
- for (let i = 0; i < prev2.length; i++) {
2017
- const el = prev2[i];
742
+ for (let i2 = 0; i2 < prev.length; i2++) {
743
+ const el = prev[i2];
2018
744
  if (!nextSet.has(el)) {
2019
745
  if (!exiting.has(el)) {
2020
746
  removed.push(el);
2021
747
  exiting.add(el);
2022
748
  }
2023
- handleRemoved(next2, el, i);
749
+ handleRemoved(next, el, i2);
2024
750
  }
2025
- if (nothingChanged && el !== next2[i])
751
+ if (nothingChanged && el !== next[i2])
2026
752
  nothingChanged = false;
2027
753
  }
2028
754
  if (!removed.length && nothingChanged)
2029
- return prev2;
2030
- onChange({ list: next2, added, removed, unchanged, finishRemoved });
755
+ return prev;
756
+ onChange({ list: next, added, removed, unchanged, finishRemoved });
2031
757
  prevSet = nextSet;
2032
- return next2;
758
+ return next;
2033
759
  });
2034
760
  },
2035
761
  options.appear ? [] : initSource.slice()
@@ -2038,38 +764,38 @@ function createListTransition(source, options) {
2038
764
 
2039
765
  // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
2040
766
  var noop2 = () => void 0;
2041
- var isNonNullable = (i) => i != null;
767
+ var isNonNullable = (i2) => i2 != null;
2042
768
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
2043
769
  var access = (v) => typeof v === "function" && !v.length ? v() : v;
2044
770
  var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
2045
- function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
771
+ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
2046
772
  const currLength = current.length;
2047
- const prevLength = prev2.length;
2048
- let i = 0;
773
+ const prevLength = prev.length;
774
+ let i2 = 0;
2049
775
  if (!prevLength) {
2050
- for (; i < currLength; i++)
2051
- handleAdded(current[i]);
776
+ for (; i2 < currLength; i2++)
777
+ handleAdded(current[i2]);
2052
778
  return;
2053
779
  }
2054
780
  if (!currLength) {
2055
- for (; i < prevLength; i++)
2056
- handleRemoved(prev2[i]);
781
+ for (; i2 < prevLength; i2++)
782
+ handleRemoved(prev[i2]);
2057
783
  return;
2058
784
  }
2059
- for (; i < prevLength; i++) {
2060
- if (prev2[i] !== current[i])
785
+ for (; i2 < prevLength; i2++) {
786
+ if (prev[i2] !== current[i2])
2061
787
  break;
2062
788
  }
2063
789
  let prevEl;
2064
790
  let currEl;
2065
- prev2 = prev2.slice(i);
2066
- current = current.slice(i);
2067
- for (prevEl of prev2) {
791
+ prev = prev.slice(i2);
792
+ current = current.slice(i2);
793
+ for (prevEl of prev) {
2068
794
  if (!current.includes(prevEl))
2069
795
  handleRemoved(prevEl);
2070
796
  }
2071
797
  for (currEl of current) {
2072
- if (!prev2.includes(currEl))
798
+ if (!prev.includes(currEl))
2073
799
  handleAdded(currEl);
2074
800
  }
2075
801
  }
@@ -2122,8 +848,8 @@ function createClassnames(props) {
2122
848
  function nextFrame(fn) {
2123
849
  requestAnimationFrame(() => requestAnimationFrame(fn));
2124
850
  }
2125
- function enterTransition(classnames3, events, el, done) {
2126
- 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;
2127
853
  onBeforeEnter?.(el);
2128
854
  el.classList.add(...enterClasses);
2129
855
  el.classList.add(...enterActiveClasses);
@@ -2140,8 +866,8 @@ function enterTransition(classnames3, events, el, done) {
2140
866
  el.addEventListener("animationend", endTransition);
2141
867
  }
2142
868
  });
2143
- function endTransition(e) {
2144
- if (!e || e.target === el) {
869
+ function endTransition(e2) {
870
+ if (!e2 || e2.target === el) {
2145
871
  done?.();
2146
872
  el.removeEventListener("transitionend", endTransition);
2147
873
  el.removeEventListener("animationend", endTransition);
@@ -2151,8 +877,8 @@ function enterTransition(classnames3, events, el, done) {
2151
877
  }
2152
878
  }
2153
879
  }
2154
- function exitTransition(classnames3, events, el, done) {
2155
- 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;
2156
882
  if (!el.parentNode)
2157
883
  return done?.();
2158
884
  onBeforeExit?.(el);
@@ -2167,8 +893,8 @@ function exitTransition(classnames3, events, el, done) {
2167
893
  el.addEventListener("animationend", endTransition);
2168
894
  }
2169
895
  });
2170
- function endTransition(e) {
2171
- if (!e || e.target === el) {
896
+ function endTransition(e2) {
897
+ if (!e2 || e2.target === el) {
2172
898
  done?.();
2173
899
  el.removeEventListener("transitionend", endTransition);
2174
900
  el.removeEventListener("animationend", endTransition);
@@ -2179,12 +905,12 @@ function exitTransition(classnames3, events, el, done) {
2179
905
  }
2180
906
  }
2181
907
  var TransitionGroup = (props) => {
2182
- const classnames3 = createClassnames(props);
908
+ const classnames = createClassnames(props);
2183
909
  return createListTransition(resolveElements(() => props.children).toArray, {
2184
910
  appear: props.appear,
2185
911
  exitMethod: "keep-index",
2186
912
  onChange({ added, removed, finishRemoved, list }) {
2187
- const classes = classnames3();
913
+ const classes = classnames();
2188
914
  for (const el of added) {
2189
915
  enterTransition(classes, props, el);
2190
916
  }
@@ -2208,8 +934,8 @@ var TransitionGroup = (props) => {
2208
934
  }
2209
935
  document.body.offsetHeight;
2210
936
  for (const el of moved) {
2211
- let endTransition2 = function(e) {
2212
- if (e.target === el || /transform$/.test(e.propertyName)) {
937
+ let endTransition2 = function(e2) {
938
+ if (e2.target === el || /transform$/.test(e2.propertyName)) {
2213
939
  el.removeEventListener("transitionend", endTransition2);
2214
940
  el.classList.remove(...classes.moveClasses);
2215
941
  }
@@ -2230,86 +956,86 @@ var TransitionGroup = (props) => {
2230
956
  // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
2231
957
  var FALLBACK = Symbol("fallback");
2232
958
  function dispose(list) {
2233
- for (const o of list)
2234
- o.dispose();
959
+ for (const o2 of list)
960
+ o2.dispose();
2235
961
  }
2236
962
  function keyArray(items, keyFn, mapFn, options = {}) {
2237
963
  if (isServer) {
2238
964
  const itemsRef = items();
2239
- let s = [];
965
+ let s2 = [];
2240
966
  if (itemsRef && itemsRef.length) {
2241
- for (let i = 0, len = itemsRef.length; i < len; i++)
2242
- s.push(
967
+ for (let i2 = 0, len = itemsRef.length; i2 < len; i2++)
968
+ s2.push(
2243
969
  mapFn(
2244
- () => itemsRef[i],
2245
- () => i
970
+ () => itemsRef[i2],
971
+ () => i2
2246
972
  )
2247
973
  );
2248
974
  } else if (options.fallback)
2249
- s = [options.fallback()];
2250
- return () => s;
975
+ s2 = [options.fallback()];
976
+ return () => s2;
2251
977
  }
2252
- const prev2 = /* @__PURE__ */ new Map();
2253
- onCleanup(() => dispose(prev2.values()));
978
+ const prev = /* @__PURE__ */ new Map();
979
+ onCleanup(() => dispose(prev.values()));
2254
980
  return () => {
2255
981
  const list = items() || [];
2256
982
  list[$TRACK];
2257
983
  return untrack(() => {
2258
984
  if (!list.length) {
2259
- dispose(prev2.values());
2260
- prev2.clear();
985
+ dispose(prev.values());
986
+ prev.clear();
2261
987
  if (!options.fallback)
2262
988
  return [];
2263
989
  const fb2 = createRoot((dispose2) => {
2264
- prev2.set(FALLBACK, { dispose: dispose2 });
990
+ prev.set(FALLBACK, { dispose: dispose2 });
2265
991
  return options.fallback();
2266
992
  });
2267
993
  return [fb2];
2268
994
  }
2269
995
  const result = new Array(list.length);
2270
- const fb = prev2.get(FALLBACK);
2271
- if (!prev2.size || fb) {
996
+ const fb = prev.get(FALLBACK);
997
+ if (!prev.size || fb) {
2272
998
  fb?.dispose();
2273
- prev2.delete(FALLBACK);
2274
- for (let i = 0; i < list.length; i++) {
2275
- const item = list[i];
2276
- const key = keyFn(item, i);
2277
- 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);
2278
1004
  }
2279
1005
  return result;
2280
1006
  }
2281
- const prevKeys = new Set(prev2.keys());
2282
- for (let i = 0; i < list.length; i++) {
2283
- const item = list[i];
2284
- 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);
2285
1011
  prevKeys.delete(key);
2286
- const lookup = prev2.get(key);
1012
+ const lookup = prev.get(key);
2287
1013
  if (lookup) {
2288
- result[i] = lookup.mapped;
2289
- lookup.setIndex?.(i);
1014
+ result[i2] = lookup.mapped;
1015
+ lookup.setIndex?.(i2);
2290
1016
  lookup.setItem(() => item);
2291
1017
  } else
2292
- addNewItem(result, item, i, key);
1018
+ addNewItem(result, item, i2, key);
2293
1019
  }
2294
1020
  for (const key of prevKeys) {
2295
- prev2.get(key)?.dispose();
2296
- prev2.delete(key);
1021
+ prev.get(key)?.dispose();
1022
+ prev.delete(key);
2297
1023
  }
2298
1024
  return result;
2299
1025
  });
2300
1026
  };
2301
- function addNewItem(list, item, i, key) {
1027
+ function addNewItem(list, item, i2, key) {
2302
1028
  createRoot((dispose2) => {
2303
1029
  const [getItem, setItem] = createSignal(item);
2304
1030
  const save = { setItem, dispose: dispose2 };
2305
1031
  if (mapFn.length > 1) {
2306
- const [index, setIndex] = createSignal(i);
1032
+ const [index, setIndex] = createSignal(i2);
2307
1033
  save.setIndex = setIndex;
2308
1034
  save.mapped = mapFn(getItem, index);
2309
1035
  } else
2310
1036
  save.mapped = mapFn(getItem);
2311
- prev2.set(key, save);
2312
- list[i] = save.mapped;
1037
+ prev.set(key, save);
1038
+ list[i2] = save.mapped;
2313
1039
  });
2314
1040
  }
2315
1041
  }
@@ -2335,27 +1061,27 @@ function createStorage(props) {
2335
1061
  setError(err instanceof Error ? err : new Error(fallback));
2336
1062
  };
2337
1063
  const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
2338
- const prefix2 = props?.prefix ? `${props.prefix}.` : "";
1064
+ const prefix = props?.prefix ? `${props.prefix}.` : "";
2339
1065
  const signals = /* @__PURE__ */ new Map();
2340
1066
  const store = new Proxy(
2341
1067
  {},
2342
1068
  {
2343
1069
  get(_, key) {
2344
- let node2 = signals.get(key);
2345
- if (!node2) {
2346
- node2 = createSignal(void 0, { equals: false });
2347
- 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);
2348
1074
  }
2349
- node2[0]();
1075
+ node[0]();
2350
1076
  const value = apis.reduce(
2351
1077
  (result, api) => {
2352
1078
  if (result !== null || !api) {
2353
1079
  return result;
2354
1080
  }
2355
1081
  try {
2356
- return api.getItem(`${prefix2}${key}`);
1082
+ return api.getItem(`${prefix}${key}`);
2357
1083
  } catch (err) {
2358
- handleError(err, `Error reading ${prefix2}${key} from ${api["name"]}`);
1084
+ handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
2359
1085
  return null;
2360
1086
  }
2361
1087
  },
@@ -2370,22 +1096,22 @@ function createStorage(props) {
2370
1096
  );
2371
1097
  const setter = (key, value, options) => {
2372
1098
  const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
2373
- const apiKey = `${prefix2}${key}`;
1099
+ const apiKey = `${prefix}${key}`;
2374
1100
  apis.forEach((api) => {
2375
1101
  try {
2376
1102
  api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
2377
1103
  } catch (err) {
2378
- handleError(err, `Error setting ${prefix2}${key} to ${filteredValue} in ${api.name}`);
1104
+ handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
2379
1105
  }
2380
1106
  });
2381
- const node2 = signals.get(key);
2382
- node2 && node2[1]();
1107
+ const node = signals.get(key);
1108
+ node && node[1]();
2383
1109
  };
2384
1110
  const remove = (key) => apis.forEach((api) => {
2385
1111
  try {
2386
- api.removeItem(`${prefix2}${key}`);
1112
+ api.removeItem(`${prefix}${key}`);
2387
1113
  } catch (err) {
2388
- handleError(err, `Error removing ${prefix2}${key} from ${api.name}`);
1114
+ handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
2389
1115
  }
2390
1116
  });
2391
1117
  const clear = () => apis.forEach((api) => {
@@ -2532,15 +1258,15 @@ var cookieStorage = addClearMethod({
2532
1258
  return key;
2533
1259
  },
2534
1260
  get length() {
2535
- let length2 = 0;
1261
+ let length = 0;
2536
1262
  cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
2537
1263
  /(?:^|;)\s*.+?\s*=\s*[^;]+/g,
2538
1264
  (found) => {
2539
- length2 += found ? 1 : 0;
1265
+ length += found ? 1 : 0;
2540
1266
  return "";
2541
1267
  }
2542
1268
  );
2543
- return length2;
1269
+ return length;
2544
1270
  }
2545
1271
  });
2546
1272
 
@@ -2568,9 +1294,9 @@ function createResizeObserver(targets, onResize, options) {
2568
1294
  }
2569
1295
  }
2570
1296
  }, options);
2571
- createEffect((prev2) => {
1297
+ createEffect((prev) => {
2572
1298
  const refs = filterNonNullable(asArray(access(targets)));
2573
- handleDiffArray(refs, prev2, observe, unobserve);
1299
+ handleDiffArray(refs, prev, observe, unobserve);
2574
1300
  return refs;
2575
1301
  }, []);
2576
1302
  }
@@ -2915,14 +1641,14 @@ var Registry = (
2915
1641
  this.generateIdentifier = generateIdentifier;
2916
1642
  this.kv = new DoubleIndexedKV();
2917
1643
  }
2918
- Registry2.prototype.register = function(value, identifier2) {
1644
+ Registry2.prototype.register = function(value, identifier) {
2919
1645
  if (this.kv.getByValue(value)) {
2920
1646
  return;
2921
1647
  }
2922
- if (!identifier2) {
2923
- identifier2 = this.generateIdentifier(value);
1648
+ if (!identifier) {
1649
+ identifier = this.generateIdentifier(value);
2924
1650
  }
2925
- this.kv.set(identifier2, value);
1651
+ this.kv.set(identifier, value);
2926
1652
  };
2927
1653
  Registry2.prototype.clear = function() {
2928
1654
  this.kv.clear();
@@ -2930,8 +1656,8 @@ var Registry = (
2930
1656
  Registry2.prototype.getIdentifier = function(value) {
2931
1657
  return this.kv.getByValue(value);
2932
1658
  };
2933
- Registry2.prototype.getValue = function(identifier2) {
2934
- return this.kv.getByKey(identifier2);
1659
+ Registry2.prototype.getValue = function(identifier) {
1660
+ return this.kv.getByKey(identifier);
2935
1661
  };
2936
1662
  return Registry2;
2937
1663
  }()
@@ -2939,24 +1665,24 @@ var Registry = (
2939
1665
 
2940
1666
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
2941
1667
  var __extends = function() {
2942
- var extendStatics = function(d, b) {
2943
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2944
- d2.__proto__ = b2;
2945
- } || function(d2, b2) {
2946
- for (var p in b2)
2947
- if (Object.prototype.hasOwnProperty.call(b2, p))
2948
- 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];
2949
1675
  };
2950
- return extendStatics(d, b);
1676
+ return extendStatics(d, b2);
2951
1677
  };
2952
- return function(d, b) {
2953
- if (typeof b !== "function" && b !== null)
2954
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2955
- 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);
2956
1682
  function __() {
2957
1683
  this.constructor = d;
2958
1684
  }
2959
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1685
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
2960
1686
  };
2961
1687
  }();
2962
1688
  var ClassRegistry = (
@@ -2964,8 +1690,8 @@ var ClassRegistry = (
2964
1690
  function(_super) {
2965
1691
  __extends(ClassRegistry2, _super);
2966
1692
  function ClassRegistry2() {
2967
- var _this = _super.call(this, function(c) {
2968
- return c.name;
1693
+ var _this = _super.call(this, function(c2) {
1694
+ return c2.name;
2969
1695
  }) || this;
2970
1696
  _this.classToAllowedProps = /* @__PURE__ */ new Map();
2971
1697
  return _this;
@@ -2988,23 +1714,23 @@ var ClassRegistry = (
2988
1714
  );
2989
1715
 
2990
1716
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
2991
- var __read = function(o, n) {
2992
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1717
+ var __read = function(o2, n2) {
1718
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
2993
1719
  if (!m)
2994
- return o;
2995
- var i = m.call(o), r, ar = [], e;
1720
+ return o2;
1721
+ var i2 = m.call(o2), r2, ar = [], e2;
2996
1722
  try {
2997
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2998
- ar.push(r.value);
1723
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
1724
+ ar.push(r2.value);
2999
1725
  } catch (error) {
3000
- e = { error };
1726
+ e2 = { error };
3001
1727
  } finally {
3002
1728
  try {
3003
- if (r && !r.done && (m = i["return"]))
3004
- m.call(i);
1729
+ if (r2 && !r2.done && (m = i2["return"]))
1730
+ m.call(i2);
3005
1731
  } finally {
3006
- if (e)
3007
- throw e.error;
1732
+ if (e2)
1733
+ throw e2.error;
3008
1734
  }
3009
1735
  }
3010
1736
  return ar;
@@ -3027,8 +1753,8 @@ function find(record, predicate) {
3027
1753
  return values.find(predicate);
3028
1754
  }
3029
1755
  var valuesNotNever = values;
3030
- for (var i = 0; i < valuesNotNever.length; i++) {
3031
- var value = valuesNotNever[i];
1756
+ for (var i2 = 0; i2 < valuesNotNever.length; i2++) {
1757
+ var value = valuesNotNever[i2];
3032
1758
  if (predicate(value)) {
3033
1759
  return value;
3034
1760
  }
@@ -3045,8 +1771,8 @@ function includes(arr, value) {
3045
1771
  return arr.indexOf(value) !== -1;
3046
1772
  }
3047
1773
  function findArr(record, predicate) {
3048
- for (var i = 0; i < record.length; i++) {
3049
- var value = record[i];
1774
+ for (var i2 = 0; i2 < record.length; i2++) {
1775
+ var value = record[i2];
3050
1776
  if (predicate(value)) {
3051
1777
  return value;
3052
1778
  }
@@ -3157,21 +1883,21 @@ var stringifyPath = function(path) {
3157
1883
  var parsePath = function(string) {
3158
1884
  var result = [];
3159
1885
  var segment = "";
3160
- for (var i = 0; i < string.length; i++) {
3161
- var char2 = string.charAt(i);
3162
- 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) === ".";
3163
1889
  if (isEscapedDot) {
3164
1890
  segment += ".";
3165
- i++;
1891
+ i2++;
3166
1892
  continue;
3167
1893
  }
3168
- var isEndOfSegment = char2 === ".";
1894
+ var isEndOfSegment = char === ".";
3169
1895
  if (isEndOfSegment) {
3170
1896
  result.push(segment);
3171
1897
  segment = "";
3172
1898
  continue;
3173
1899
  }
3174
- segment += char2;
1900
+ segment += char;
3175
1901
  }
3176
1902
  var lastSegment = segment;
3177
1903
  result.push(lastSegment);
@@ -3180,41 +1906,41 @@ var parsePath = function(string) {
3180
1906
 
3181
1907
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
3182
1908
  var __assign = function() {
3183
- __assign = Object.assign || function(t) {
3184
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3185
- s = arguments[i];
3186
- for (var p in s)
3187
- if (Object.prototype.hasOwnProperty.call(s, p))
3188
- 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];
3189
1915
  }
3190
- return t;
1916
+ return t2;
3191
1917
  };
3192
1918
  return __assign.apply(this, arguments);
3193
1919
  };
3194
- var __read2 = function(o, n) {
3195
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1920
+ var __read2 = function(o2, n2) {
1921
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3196
1922
  if (!m)
3197
- return o;
3198
- var i = m.call(o), r, ar = [], e;
1923
+ return o2;
1924
+ var i2 = m.call(o2), r2, ar = [], e2;
3199
1925
  try {
3200
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3201
- ar.push(r.value);
1926
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
1927
+ ar.push(r2.value);
3202
1928
  } catch (error) {
3203
- e = { error };
1929
+ e2 = { error };
3204
1930
  } finally {
3205
1931
  try {
3206
- if (r && !r.done && (m = i["return"]))
3207
- m.call(i);
1932
+ if (r2 && !r2.done && (m = i2["return"]))
1933
+ m.call(i2);
3208
1934
  } finally {
3209
- if (e)
3210
- throw e.error;
1935
+ if (e2)
1936
+ throw e2.error;
3211
1937
  }
3212
1938
  }
3213
1939
  return ar;
3214
1940
  };
3215
- var __spreadArray = function(to, from2) {
3216
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3217
- 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];
3218
1944
  return to;
3219
1945
  };
3220
1946
  function simpleTransformation(isApplicable, annotation, transform, untransform) {
@@ -3255,13 +1981,13 @@ var simpleRules = [
3255
1981
  });
3256
1982
  return baseError;
3257
1983
  }, function(v, superJson) {
3258
- var e = new Error(v.message);
3259
- e.name = v.name;
3260
- e.stack = v.stack;
1984
+ var e2 = new Error(v.message);
1985
+ e2.name = v.name;
1986
+ e2.stack = v.stack;
3261
1987
  superJson.allowedErrorProps.forEach(function(prop) {
3262
- e[prop] = v[prop];
1988
+ e2[prop] = v[prop];
3263
1989
  });
3264
- return e;
1990
+ return e2;
3265
1991
  }),
3266
1992
  simpleTransformation(isRegExp, "regexp", function(v) {
3267
1993
  return "" + v;
@@ -3318,19 +2044,19 @@ function compositeTransformation(isApplicable, annotation, transform, untransfor
3318
2044
  untransform
3319
2045
  };
3320
2046
  }
3321
- var symbolRule = compositeTransformation(function(s, superJson) {
3322
- if (isSymbol(s)) {
3323
- var isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
2047
+ var symbolRule = compositeTransformation(function(s2, superJson) {
2048
+ if (isSymbol(s2)) {
2049
+ var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
3324
2050
  return isRegistered;
3325
2051
  }
3326
2052
  return false;
3327
- }, function(s, superJson) {
3328
- var identifier2 = superJson.symbolRegistry.getIdentifier(s);
3329
- return ["symbol", identifier2];
2053
+ }, function(s2, superJson) {
2054
+ var identifier = superJson.symbolRegistry.getIdentifier(s2);
2055
+ return ["symbol", identifier];
3330
2056
  }, function(v) {
3331
2057
  return v.description;
3332
- }, function(_, a, superJson) {
3333
- var value = superJson.symbolRegistry.getValue(a[1]);
2058
+ }, function(_, a2, superJson) {
2059
+ var value = superJson.symbolRegistry.getValue(a2[1]);
3334
2060
  if (!value) {
3335
2061
  throw new Error("Trying to deserialize unknown symbol");
3336
2062
  }
@@ -3354,8 +2080,8 @@ var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
3354
2080
  return ["typed-array", v.constructor.name];
3355
2081
  }, function(v) {
3356
2082
  return __spreadArray([], __read2(v));
3357
- }, function(v, a) {
3358
- var ctor = constructorToName[a[1]];
2083
+ }, function(v, a2) {
2084
+ var ctor = constructorToName[a2[1]];
3359
2085
  if (!ctor) {
3360
2086
  throw new Error("Trying to deserialize unknown typed array");
3361
2087
  }
@@ -3369,8 +2095,8 @@ function isInstanceOfRegisteredClass(potentialClass, superJson) {
3369
2095
  return false;
3370
2096
  }
3371
2097
  var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
3372
- var identifier2 = superJson.classRegistry.getIdentifier(clazz.constructor);
3373
- return ["class", identifier2];
2098
+ var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
2099
+ return ["class", identifier];
3374
2100
  }, function(clazz, superJson) {
3375
2101
  var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3376
2102
  if (!allowedProps) {
@@ -3381,8 +2107,8 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(cl
3381
2107
  result[prop] = clazz[prop];
3382
2108
  });
3383
2109
  return result;
3384
- }, function(v, a, superJson) {
3385
- var clazz = superJson.classRegistry.getValue(a[1]);
2110
+ }, function(v, a2, superJson) {
2111
+ var clazz = superJson.classRegistry.getValue(a2[1]);
3386
2112
  if (!clazz) {
3387
2113
  throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
3388
2114
  }
@@ -3396,8 +2122,8 @@ var customRule = compositeTransformation(function(value, superJson) {
3396
2122
  }, function(value, superJson) {
3397
2123
  var transformer = superJson.customTransformerRegistry.findApplicable(value);
3398
2124
  return transformer.serialize(value);
3399
- }, function(v, a, superJson) {
3400
- var transformer = superJson.customTransformerRegistry.findByName(a[1]);
2125
+ }, function(v, a2, superJson) {
2126
+ var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
3401
2127
  if (!transformer) {
3402
2128
  throw new Error("Trying to deserialize unknown custom value");
3403
2129
  }
@@ -3453,11 +2179,11 @@ var untransformValue = function(json, type, superJson) {
3453
2179
  };
3454
2180
 
3455
2181
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
3456
- var getNthKey = function(value, n) {
2182
+ var getNthKey = function(value, n2) {
3457
2183
  var keys2 = value.keys();
3458
- while (n > 0) {
2184
+ while (n2 > 0) {
3459
2185
  keys2.next();
3460
- n--;
2186
+ n2--;
3461
2187
  }
3462
2188
  return keys2.next().value;
3463
2189
  };
@@ -3474,13 +2200,13 @@ function validatePath(path) {
3474
2200
  }
3475
2201
  var getDeep = function(object, path) {
3476
2202
  validatePath(path);
3477
- for (var i = 0; i < path.length; i++) {
3478
- var key = path[i];
2203
+ for (var i2 = 0; i2 < path.length; i2++) {
2204
+ var key = path[i2];
3479
2205
  if (isSet(object)) {
3480
2206
  object = getNthKey(object, +key);
3481
2207
  } else if (isMap(object)) {
3482
2208
  var row = +key;
3483
- var type = +path[++i] === 0 ? "key" : "value";
2209
+ var type = +path[++i2] === 0 ? "key" : "value";
3484
2210
  var keyOfRow = getNthKey(object, row);
3485
2211
  switch (type) {
3486
2212
  case "key":
@@ -3502,8 +2228,8 @@ var setDeep = function(object, path, mapper) {
3502
2228
  return mapper(object);
3503
2229
  }
3504
2230
  var parent = object;
3505
- for (var i = 0; i < path.length - 1; i++) {
3506
- var key = path[i];
2231
+ for (var i2 = 0; i2 < path.length - 1; i2++) {
2232
+ var key = path[i2];
3507
2233
  if (isArray(parent)) {
3508
2234
  var index = +key;
3509
2235
  parent = parent[index];
@@ -3513,12 +2239,12 @@ var setDeep = function(object, path, mapper) {
3513
2239
  var row = +key;
3514
2240
  parent = getNthKey(parent, row);
3515
2241
  } else if (isMap(parent)) {
3516
- var isEnd = i === path.length - 2;
2242
+ var isEnd = i2 === path.length - 2;
3517
2243
  if (isEnd) {
3518
2244
  break;
3519
2245
  }
3520
2246
  var row = +key;
3521
- var type = +path[++i] === 0 ? "key" : "value";
2247
+ var type = +path[++i2] === 0 ? "key" : "value";
3522
2248
  var keyOfRow = getNthKey(parent, row);
3523
2249
  switch (type) {
3524
2250
  case "key":
@@ -3567,30 +2293,30 @@ var setDeep = function(object, path, mapper) {
3567
2293
  };
3568
2294
 
3569
2295
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
3570
- var __read3 = function(o, n) {
3571
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2296
+ var __read3 = function(o2, n2) {
2297
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3572
2298
  if (!m)
3573
- return o;
3574
- var i = m.call(o), r, ar = [], e;
2299
+ return o2;
2300
+ var i2 = m.call(o2), r2, ar = [], e2;
3575
2301
  try {
3576
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3577
- ar.push(r.value);
2302
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
2303
+ ar.push(r2.value);
3578
2304
  } catch (error) {
3579
- e = { error };
2305
+ e2 = { error };
3580
2306
  } finally {
3581
2307
  try {
3582
- if (r && !r.done && (m = i["return"]))
3583
- m.call(i);
2308
+ if (r2 && !r2.done && (m = i2["return"]))
2309
+ m.call(i2);
3584
2310
  } finally {
3585
- if (e)
3586
- throw e.error;
2311
+ if (e2)
2312
+ throw e2.error;
3587
2313
  }
3588
2314
  }
3589
2315
  return ar;
3590
2316
  };
3591
- var __spreadArray2 = function(to, from2) {
3592
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3593
- to[j] = from2[i];
2317
+ var __spreadArray2 = function(to, from) {
2318
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
2319
+ to[j] = from[i2];
3594
2320
  return to;
3595
2321
  };
3596
2322
  function traverse(tree, walker2, origin) {
@@ -3666,8 +2392,8 @@ function generateReferentialEqualityAnnotations(identitites) {
3666
2392
  }
3667
2393
  var _a = __read3(paths.map(function(path) {
3668
2394
  return path.map(String);
3669
- }).sort(function(a, b) {
3670
- return a.length - b.length;
2395
+ }).sort(function(a2, b2) {
2396
+ return a2.length - b2.length;
3671
2397
  })), shortestPath = _a[0], identicalPaths = _a.slice(1);
3672
2398
  if (shortestPath.length === 0) {
3673
2399
  rootEqualityPaths = identicalPaths.map(stringifyPath);
@@ -3765,8 +2491,8 @@ function isArray2(payload) {
3765
2491
  return getType2(payload) === "Array";
3766
2492
  }
3767
2493
  var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
3768
- function isOneOf(a, b, c, d, e) {
3769
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
2494
+ function isOneOf(a2, b2, c2, d, e2) {
2495
+ return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
3770
2496
  }
3771
2497
 
3772
2498
  // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
@@ -3783,9 +2509,9 @@ function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
3783
2509
  });
3784
2510
  }
3785
2511
  }
3786
- function copy2(target, options = {}) {
2512
+ function copy(target, options = {}) {
3787
2513
  if (isArray2(target)) {
3788
- return target.map((item) => copy2(item, options));
2514
+ return target.map((item) => copy(item, options));
3789
2515
  }
3790
2516
  if (!isPlainObject2(target)) {
3791
2517
  return target;
@@ -3797,7 +2523,7 @@ function copy2(target, options = {}) {
3797
2523
  return carry;
3798
2524
  }
3799
2525
  const val = target[key];
3800
- const newVal = copy2(val, options);
2526
+ const newVal = copy(val, options);
3801
2527
  assignProp(carry, key, newVal, target, options.nonenumerable);
3802
2528
  return carry;
3803
2529
  }, {});
@@ -3805,41 +2531,41 @@ function copy2(target, options = {}) {
3805
2531
 
3806
2532
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
3807
2533
  var __assign2 = function() {
3808
- __assign2 = Object.assign || function(t) {
3809
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3810
- s = arguments[i];
3811
- for (var p in s)
3812
- if (Object.prototype.hasOwnProperty.call(s, p))
3813
- t[p] = s[p];
2534
+ __assign2 = Object.assign || function(t2) {
2535
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
2536
+ s2 = arguments[i2];
2537
+ for (var p2 in s2)
2538
+ if (Object.prototype.hasOwnProperty.call(s2, p2))
2539
+ t2[p2] = s2[p2];
3814
2540
  }
3815
- return t;
2541
+ return t2;
3816
2542
  };
3817
2543
  return __assign2.apply(this, arguments);
3818
2544
  };
3819
- var __read4 = function(o, n) {
3820
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2545
+ var __read4 = function(o2, n2) {
2546
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3821
2547
  if (!m)
3822
- return o;
3823
- var i = m.call(o), r, ar = [], e;
2548
+ return o2;
2549
+ var i2 = m.call(o2), r2, ar = [], e2;
3824
2550
  try {
3825
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3826
- ar.push(r.value);
2551
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
2552
+ ar.push(r2.value);
3827
2553
  } catch (error) {
3828
- e = { error };
2554
+ e2 = { error };
3829
2555
  } finally {
3830
2556
  try {
3831
- if (r && !r.done && (m = i["return"]))
3832
- m.call(i);
2557
+ if (r2 && !r2.done && (m = i2["return"]))
2558
+ m.call(i2);
3833
2559
  } finally {
3834
- if (e)
3835
- throw e.error;
2560
+ if (e2)
2561
+ throw e2.error;
3836
2562
  }
3837
2563
  }
3838
2564
  return ar;
3839
2565
  };
3840
- var __spreadArray3 = function(to, from2) {
3841
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3842
- to[j] = from2[i];
2566
+ var __spreadArray3 = function(to, from) {
2567
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
2568
+ to[j] = from[i2];
3843
2569
  return to;
3844
2570
  };
3845
2571
  var SuperJSON = (
@@ -3847,9 +2573,9 @@ var SuperJSON = (
3847
2573
  function() {
3848
2574
  function SuperJSON2() {
3849
2575
  this.classRegistry = new ClassRegistry();
3850
- this.symbolRegistry = new Registry(function(s) {
2576
+ this.symbolRegistry = new Registry(function(s2) {
3851
2577
  var _a;
3852
- return (_a = s.description) !== null && _a !== void 0 ? _a : "";
2578
+ return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
3853
2579
  });
3854
2580
  this.customTransformerRegistry = new CustomTransformerRegistry();
3855
2581
  this.allowedErrorProps = [];
@@ -3871,7 +2597,7 @@ var SuperJSON = (
3871
2597
  };
3872
2598
  SuperJSON2.prototype.deserialize = function(payload) {
3873
2599
  var json = payload.json, meta = payload.meta;
3874
- var result = copy2(json);
2600
+ var result = copy(json);
3875
2601
  if (meta === null || meta === void 0 ? void 0 : meta.values) {
3876
2602
  result = applyValueAnnotations(result, meta.values, this);
3877
2603
  }
@@ -3889,8 +2615,8 @@ var SuperJSON = (
3889
2615
  SuperJSON2.prototype.registerClass = function(v, options) {
3890
2616
  this.classRegistry.register(v, options);
3891
2617
  };
3892
- SuperJSON2.prototype.registerSymbol = function(v, identifier2) {
3893
- this.symbolRegistry.register(v, identifier2);
2618
+ SuperJSON2.prototype.registerSymbol = function(v, identifier) {
2619
+ this.symbolRegistry.register(v, identifier);
3894
2620
  };
3895
2621
  SuperJSON2.prototype.registerCustom = function(transformer, name) {
3896
2622
  this.customTransformerRegistry.register(__assign2({ name }, transformer));
@@ -3915,10 +2641,10 @@ var SuperJSON = (
3915
2641
  return SuperJSON2;
3916
2642
  }()
3917
2643
  );
3918
- var serialize2 = SuperJSON.serialize;
2644
+ var serialize = SuperJSON.serialize;
3919
2645
  var deserialize = SuperJSON.deserialize;
3920
- var stringify2 = SuperJSON.stringify;
3921
- var parse2 = SuperJSON.parse;
2646
+ var stringify = SuperJSON.stringify;
2647
+ var parse = SuperJSON.parse;
3922
2648
  var registerClass = SuperJSON.registerClass;
3923
2649
  var registerCustom = SuperJSON.registerCustom;
3924
2650
  var registerSymbol = SuperJSON.registerSymbol;
@@ -3942,17 +2668,17 @@ function getQueryStatusColorByLabel(label) {
3942
2668
  return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
3943
2669
  }
3944
2670
  var displayValue = (value, beautify = false) => {
3945
- const { json } = serialize2(value);
2671
+ const { json } = serialize(value);
3946
2672
  return JSON.stringify(json, null, beautify ? 2 : void 0);
3947
2673
  };
3948
2674
  var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
3949
- var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
3950
- var dateSort = (a, b) => a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1;
3951
- var statusAndDateSort = (a, b) => {
3952
- if (getStatusRank(a) === getStatusRank(b)) {
3953
- return dateSort(a, b);
2675
+ var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
2676
+ var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
2677
+ var statusAndDateSort = (a2, b2) => {
2678
+ if (getStatusRank(a2) === getStatusRank(b2)) {
2679
+ return dateSort(a2, b2);
3954
2680
  }
3955
- return getStatusRank(a) > getStatusRank(b) ? 1 : -1;
2681
+ return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
3956
2682
  };
3957
2683
  var sortFns = {
3958
2684
  status: statusAndDateSort,
@@ -4845,20 +3571,20 @@ function TanstackLogo() {
4845
3571
  function chunkArray(array, size) {
4846
3572
  if (size < 1)
4847
3573
  return [];
4848
- let i = 0;
3574
+ let i2 = 0;
4849
3575
  const result = [];
4850
- while (i < array.length) {
4851
- result.push(array.slice(i, i + size));
4852
- i = i + size;
3576
+ while (i2 < array.length) {
3577
+ result.push(array.slice(i2, i2 + size));
3578
+ i2 = i2 + size;
4853
3579
  }
4854
3580
  return result;
4855
3581
  }
4856
3582
  var Expander = (props) => {
4857
3583
  const styles = getStyles();
4858
3584
  return <span
4859
- class={cx(
3585
+ class={clsx(
4860
3586
  styles.expander,
4861
- css`
3587
+ u`
4862
3588
  transform: rotate(${props.expanded ? 90 : 0}deg);
4863
3589
  `
4864
3590
  )}
@@ -4882,7 +3608,7 @@ var CopyButton = (props) => {
4882
3608
  class={styles.copyButton}
4883
3609
  aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
4884
3610
  onClick={copyState() === "NoCopy" ? () => {
4885
- navigator.clipboard.writeText(stringify2(props.value)).then(
3611
+ navigator.clipboard.writeText(stringify(props.value)).then(
4886
3612
  () => {
4887
3613
  setCopyState("SuccessCopy");
4888
3614
  setTimeout(() => {
@@ -4916,8 +3642,8 @@ function Explorer(props) {
4916
3642
  const [expandedPages, setExpandedPages] = createSignal([]);
4917
3643
  const subEntries = createMemo(() => {
4918
3644
  if (Array.isArray(props.value)) {
4919
- return props.value.map((d, i) => ({
4920
- label: i.toString(),
3645
+ return props.value.map((d, i2) => ({
3646
+ label: i2.toString(),
4921
3647
  value: d
4922
3648
  }));
4923
3649
  } else if (props.value !== null && typeof props.value === "object" && isIterable(props.value) && typeof props.value[Symbol.iterator] === "function") {
@@ -4927,8 +3653,8 @@ function Explorer(props) {
4927
3653
  value: val
4928
3654
  }));
4929
3655
  }
4930
- return Array.from(props.value, (val, i) => ({
4931
- label: i.toString(),
3656
+ return Array.from(props.value, (val, i2) => ({
3657
+ label: i2.toString(),
4932
3658
  value: val
4933
3659
  }));
4934
3660
  } else if (typeof props.value === "object" && props.value !== null) {
@@ -5011,7 +3737,7 @@ function Explorer(props) {
5011
3737
  var getStyles = () => {
5012
3738
  const { colors, font, size, border } = tokens;
5013
3739
  return {
5014
- entry: css`
3740
+ entry: u`
5015
3741
  & * {
5016
3742
  font-size: ${font.size.sm};
5017
3743
  font-family: 'Menlo', 'Fira Code', monospace;
@@ -5021,12 +3747,12 @@ var getStyles = () => {
5021
3747
  outline: none;
5022
3748
  word-break: break-word;
5023
3749
  `,
5024
- subEntry: css`
3750
+ subEntry: u`
5025
3751
  margin: 0 0 0 0.5em;
5026
3752
  padding-left: 0.75em;
5027
3753
  border-left: 2px solid ${colors.darkGray[400]};
5028
3754
  `,
5029
- expander: css`
3755
+ expander: u`
5030
3756
  & path {
5031
3757
  stroke: ${colors.gray[400]};
5032
3758
  }
@@ -5034,7 +3760,7 @@ var getStyles = () => {
5034
3760
  align-items: center;
5035
3761
  transition: all 0.1s ease;
5036
3762
  `,
5037
- expanderButton: css`
3763
+ expanderButton: u`
5038
3764
  cursor: pointer;
5039
3765
  color: inherit;
5040
3766
  font: inherit;
@@ -5052,19 +3778,19 @@ var getStyles = () => {
5052
3778
  outline: 2px solid ${colors.blue[800]};
5053
3779
  }
5054
3780
  `,
5055
- info: css`
3781
+ info: u`
5056
3782
  color: ${colors.gray[500]};
5057
3783
  font-size: ${font.size.xs};
5058
3784
  line-height: ${font.size.xs};
5059
3785
  margin-left: ${size[1]};
5060
3786
  `,
5061
- label: css`
3787
+ label: u`
5062
3788
  color: ${colors.gray[300]};
5063
3789
  `,
5064
- value: css`
3790
+ value: u`
5065
3791
  color: ${colors.purple[400]};
5066
3792
  `,
5067
- copyButton: css`
3793
+ copyButton: u`
5068
3794
  background-color: transparent;
5069
3795
  border: none;
5070
3796
  display: inline-flex;
@@ -5142,46 +3868,55 @@ var Devtools = () => {
5142
3868
  const isOpen = createMemo(() => {
5143
3869
  return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
5144
3870
  });
5145
- const position2 = createMemo(() => {
3871
+ const position = createMemo(() => {
5146
3872
  return localStore.position || useQueryDevtoolsContext().position || POSITION;
5147
3873
  });
3874
+ createEffect(() => {
3875
+ const root = document.querySelector(".tsqd-parent-container");
3876
+ const height = localStore.height || DEFAULT_HEIGHT;
3877
+ const width = localStore.width || DEFAULT_WIDTH;
3878
+ const panelPosition = position();
3879
+ root.style.setProperty(
3880
+ "--tsqd-panel-height",
3881
+ `${panelPosition === "top" ? "-" : ""}${height}px`
3882
+ );
3883
+ root.style.setProperty(
3884
+ "--tsqd-panel-width",
3885
+ `${panelPosition === "left" ? "-" : ""}${width}px`
3886
+ );
3887
+ });
5148
3888
  return <div
5149
- class={css`
5150
- & .TSQD-panel-exit-active,
5151
- & .TSQD-panel-enter-active {
5152
- transition: opacity 0.3s, transform 0.3s;
5153
- }
3889
+ class={clsx(
3890
+ u`
3891
+ & .tsqd-panel-transition-exit-active,
3892
+ & .tsqd-panel-transition-enter-active {
3893
+ transition: opacity 0.3s, transform 0.3s;
3894
+ }
5154
3895
 
5155
- & .TSQD-panel-exit-to,
5156
- & .TSQD-panel-enter {
5157
- ${position2() === "top" ? `transform: translateY(-${Number(
5158
- localStore.height || DEFAULT_HEIGHT
5159
- )}px);` : position2() === "left" ? `transform: translateX(-${Number(
5160
- localStore.width || DEFAULT_WIDTH
5161
- )}px);` : position2() === "right" ? `transform: translateX(${Number(
5162
- localStore.width || DEFAULT_WIDTH
5163
- )}px);` : `transform: translateY(${Number(
5164
- localStore.height || DEFAULT_HEIGHT
5165
- )}px);`}
5166
- }
3896
+ & .tsqd-panel-transition-exit-to,
3897
+ & .tsqd-panel-transition-enter {
3898
+ ${position() === "top" || position() === "bottom" ? `transform: translateY(var(--tsqd-panel-height));` : `transform: translateX(var(--tsqd-panel-width));`}
3899
+ }
5167
3900
 
5168
- & .TSQD-button-exit-active,
5169
- & .TSQD-button-enter-active {
5170
- transition: opacity 0.3s, transform 0.3s;
5171
- }
3901
+ & .tsqd-button-transition-exit-active,
3902
+ & .tsqd-button-transition-enter-active {
3903
+ transition: opacity 0.3s, transform 0.3s;
3904
+ }
5172
3905
 
5173
- & .TSQD-button-exit-to,
5174
- & .TSQD-button-enter {
5175
- transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
5176
- }
5177
- `}
3906
+ & .tsqd-button-transition-exit-to,
3907
+ & .tsqd-button-transition-enter {
3908
+ transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
3909
+ }
3910
+ `,
3911
+ "tsqd-transitions-container"
3912
+ )}
5178
3913
  >
5179
- <TransitionGroup name="TSQD-panel"><Show when={isOpen()}><DevtoolsPanel
3914
+ <TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
5180
3915
  localStore={localStore}
5181
3916
  setLocalStore={setLocalStore}
5182
3917
  /></Show></TransitionGroup>
5183
- <TransitionGroup name="TSQD-button"><Show when={!isOpen()}><div
5184
- class={cx(
3918
+ <TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
3919
+ class={clsx(
5185
3920
  styles.devtoolsBtn,
5186
3921
  styles[`devtoolsBtn-position-${buttonPosition()}`]
5187
3922
  )}
@@ -5203,14 +3938,14 @@ var DevtoolsPanel = (props) => {
5203
3938
  );
5204
3939
  const [offline, setOffline] = createSignal(false);
5205
3940
  const [settingsOpen, setSettingsOpen] = createSignal(false);
5206
- const position2 = createMemo(
3941
+ const position = createMemo(
5207
3942
  () => props.localStore.position || useQueryDevtoolsContext().position || POSITION
5208
3943
  );
5209
3944
  const sortFn = createMemo(() => sortFns[sort()]);
5210
3945
  const onlineManager = createMemo(
5211
3946
  () => useQueryDevtoolsContext().onlineManager
5212
3947
  );
5213
- const cache2 = createMemo(() => {
3948
+ const cache = createMemo(() => {
5214
3949
  return useQueryDevtoolsContext().client.getQueryCache();
5215
3950
  });
5216
3951
  const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
@@ -5220,11 +3955,11 @@ var DevtoolsPanel = (props) => {
5220
3955
  on(
5221
3956
  () => [queryCount(), props.localStore.filter, sort(), sortOrder()],
5222
3957
  () => {
5223
- const curr = cache2().getAll();
3958
+ const curr = cache().getAll();
5224
3959
  const filtered = props.localStore.filter ? curr.filter(
5225
3960
  (item) => rankItem(item.queryHash, props.localStore.filter || "").passed
5226
3961
  ) : [...curr];
5227
- const sorted = sortFn() ? filtered.sort((a, b) => sortFn()(a, b) * sortOrder()) : filtered;
3962
+ const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
5228
3963
  return sorted;
5229
3964
  }
5230
3965
  )
@@ -5242,8 +3977,8 @@ var DevtoolsPanel = (props) => {
5242
3977
  const minWidth = convertRemToPixels(12);
5243
3978
  const runDrag = (moveEvent) => {
5244
3979
  moveEvent.preventDefault();
5245
- if (position2() === "left" || position2() === "right") {
5246
- const valToAdd = position2() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
3980
+ if (position() === "left" || position() === "right") {
3981
+ const valToAdd = position() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
5247
3982
  newSize = Math.round(width + valToAdd);
5248
3983
  if (newSize < minWidth) {
5249
3984
  newSize = minWidth;
@@ -5254,7 +3989,7 @@ var DevtoolsPanel = (props) => {
5254
3989
  props.setLocalStore("width", String(newWidth));
5255
3990
  }
5256
3991
  } else {
5257
- const valToAdd = position2() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
3992
+ const valToAdd = position() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
5258
3993
  newSize = Math.round(height + valToAdd);
5259
3994
  if (newSize < minHeight) {
5260
3995
  newSize = minHeight;
@@ -5315,49 +4050,65 @@ var DevtoolsPanel = (props) => {
5315
4050
  });
5316
4051
  });
5317
4052
  return <aside
5318
- class={`${styles.panel} ${styles[`panel-position-${position2()}`]} ${css`
5319
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
5320
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
5321
- ${panelWidth() < thirdBreakpoint && (position2() === "right" || position2() === "left") ? `
4053
+ class={clsx(
4054
+ styles.panel,
4055
+ styles[`panel-position-${position()}`],
4056
+ u`
4057
+ flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
4058
+ background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
4059
+ `,
4060
+ {
4061
+ [u`
5322
4062
  min-width: min-content;
5323
- ` : ""}
5324
- `}`}
4063
+ `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
4064
+ },
4065
+ "tsqd-main-panel"
4066
+ )}
5325
4067
  style={{
5326
- height: position2() === "bottom" || position2() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
5327
- width: position2() === "right" || position2() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
4068
+ height: position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
4069
+ width: position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
5328
4070
  }}
5329
4071
  ref={panelRef}
5330
4072
  aria-label="Tanstack query devtools"
5331
4073
  >
5332
4074
  <div
5333
- class={cx(
4075
+ class={clsx(
5334
4076
  styles.dragHandle,
5335
- styles[`dragHandle-position-${position2()}`]
4077
+ styles[`dragHandle-position-${position()}`],
4078
+ "tsqd-drag-handle"
5336
4079
  )}
5337
4080
  onMouseDown={handleDragStart}
5338
4081
  />
5339
4082
  <button
5340
4083
  aria-label="Close tanstack query devtools"
5341
- class={cx(styles.closeBtn, styles[`closeBtn-position-${position2()}`])}
4084
+ class={clsx(
4085
+ styles.closeBtn,
4086
+ styles[`closeBtn-position-${position()}`],
4087
+ "tsqd-minimize-btn"
4088
+ )}
5342
4089
  onClick={() => props.setLocalStore("open", "false")}
5343
4090
  ><ChevronDown /></button>
5344
4091
  <div
5345
4092
  ref={queriesContainerRef}
5346
- class={`${styles.queriesContainer} ${css`
5347
- ${panelWidth() < secondBreakpoint && selectedQueryHash() ? `
5348
- height: 50%;
5349
- max-height: 50%;
5350
- ` : ""}
5351
- `}`}
4093
+ class={clsx(
4094
+ styles.queriesContainer,
4095
+ panelWidth() < secondBreakpoint && selectedQueryHash() && u`
4096
+ height: 50%;
4097
+ max-height: 50%;
4098
+ `,
4099
+ "tsqd-queries-container"
4100
+ )}
5352
4101
  >
5353
- <div class={cx(styles.row)}>
4102
+ <div class={clsx(styles.row, "tsqd-header")}>
5354
4103
  <button
5355
- class={styles.logo}
4104
+ class={clsx(styles.logo, "tsqd-text-logo-container")}
5356
4105
  onClick={() => props.setLocalStore("open", "false")}
5357
4106
  aria-label="Close Tanstack query devtools"
5358
4107
  >
5359
- <span class={styles.tanstackLogo}>TANSTACK</span>
5360
- <span class={styles.queryFlavorLogo}>
4108
+ <span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
4109
+ <span
4110
+ class={clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor")}
4111
+ >
5361
4112
  {useQueryDevtoolsContext().queryFlavor}
5362
4113
  {" v"}
5363
4114
  {useQueryDevtoolsContext().version}
@@ -5366,28 +4117,40 @@ var DevtoolsPanel = (props) => {
5366
4117
  <QueryStatusCount />
5367
4118
  </div>
5368
4119
  <div
5369
- class={cx(
4120
+ class={clsx(
5370
4121
  styles.row,
5371
- css`
4122
+ u`
5372
4123
  gap: ${tokens.size[2.5]};
5373
- `
4124
+ `,
4125
+ "tsqd-filters-actions-container"
5374
4126
  )}
5375
4127
  >
5376
- <div class={styles.filtersContainer}>
5377
- <div class={styles.filterInput}>
4128
+ <div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
4129
+ <div
4130
+ class={clsx(
4131
+ styles.filterInput,
4132
+ "tsqd-query-filter-textfield-container"
4133
+ )}
4134
+ >
5378
4135
  <Search />
5379
4136
  <input
5380
4137
  aria-label="Filter queries by query key"
5381
4138
  type="text"
5382
4139
  placeholder="Filter"
5383
- onInput={(e) => props.setLocalStore("filter", e.currentTarget.value)}
4140
+ onInput={(e2) => props.setLocalStore("filter", e2.currentTarget.value)}
4141
+ class="tsqd-query-filter-textfield"
5384
4142
  value={props.localStore.filter || ""}
5385
4143
  />
5386
4144
  </div>
5387
- <div class={styles.filterSelect}>
4145
+ <div
4146
+ class={clsx(
4147
+ styles.filterSelect,
4148
+ "tsqd-query-filter-sort-container"
4149
+ )}
4150
+ >
5388
4151
  <select
5389
4152
  value={sort()}
5390
- onChange={(e) => props.setLocalStore("sort", e.currentTarget.value)}
4153
+ onChange={(e2) => props.setLocalStore("sort", e2.currentTarget.value)}
5391
4154
  >{Object.keys(sortFns).map((key) => <option value={key}>
5392
4155
  {"Sort by "}
5393
4156
  {key}
@@ -5400,6 +4163,7 @@ var DevtoolsPanel = (props) => {
5400
4163
  }}
5401
4164
  aria-label={`Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`}
5402
4165
  aria-pressed={sortOrder() === -1}
4166
+ class="tsqd-query-filter-sort-order-btn"
5403
4167
  >
5404
4168
  <Show when={sortOrder() === 1}>
5405
4169
  <span>Asc</span>
@@ -5411,7 +4175,7 @@ var DevtoolsPanel = (props) => {
5411
4175
  </Show>
5412
4176
  </button>
5413
4177
  </div>
5414
- <div class={styles.actionsContainer}>
4178
+ <div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
5415
4179
  <button
5416
4180
  onClick={() => {
5417
4181
  if (offline()) {
@@ -5422,33 +4186,52 @@ var DevtoolsPanel = (props) => {
5422
4186
  setOffline(true);
5423
4187
  }
5424
4188
  }}
5425
- class={styles.actionsBtn}
4189
+ class={clsx(
4190
+ styles.actionsBtn,
4191
+ "tsqd-actions-btn",
4192
+ "tsqd-action-mock-offline-behavior"
4193
+ )}
5426
4194
  aria-label={`${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`}
5427
4195
  aria-pressed={offline()}
5428
4196
  >{offline() ? <Offline /> : <Wifi />}</button>
5429
4197
  <div style={{ position: "relative" }}>
5430
4198
  <button
5431
- onClick={() => setSettingsOpen((prev2) => !prev2)}
5432
- class={styles.actionsBtn}
5433
- id="TSQD-settings-menu-btn"
4199
+ onClick={() => setSettingsOpen((prev) => !prev)}
4200
+ class={clsx(
4201
+ styles.actionsBtn,
4202
+ "tsqd-actions-btn",
4203
+ "tsqd-action-settings"
4204
+ )}
4205
+ id="tsqd-settings-menu-btn"
5434
4206
  aria-label={`${settingsOpen() ? "Close" : "Open"} settings menu`}
5435
4207
  aria-haspopup="true"
5436
- aria-controls="TSQD-settings-menu"
4208
+ aria-controls="tsqd-settings-menu"
5437
4209
  ><Settings /></button>
5438
4210
  <Show when={settingsOpen()}><div
5439
4211
  role="menu"
5440
4212
  tabindex="-1"
5441
- aria-labelledby="TSQD-settings-menu-btn"
5442
- id="TSQD-settings-menu"
5443
- class={styles.settingsMenu}
4213
+ aria-labelledby="tsqd-settings-menu-btn"
4214
+ id="tsqd-settings-menu"
4215
+ class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
5444
4216
  >
5445
- <div class={styles.settingsMenuHeader}>Position</div>
5446
- <div class={styles.settingsMenuSection}>
4217
+ <div
4218
+ class={clsx(
4219
+ styles.settingsMenuHeader,
4220
+ "tsqd-settings-menu-header"
4221
+ )}
4222
+ >Position</div>
4223
+ <div
4224
+ class={clsx(
4225
+ styles.settingsMenuSection,
4226
+ "tsqd-settings-menu-section"
4227
+ )}
4228
+ >
5447
4229
  <button
5448
4230
  onClick={() => {
5449
4231
  setDevtoolsPosition("top");
5450
4232
  }}
5451
4233
  aria-label="Position top"
4234
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-top"
5452
4235
  >
5453
4236
  <ArrowUp />
5454
4237
  <span>Top</span>
@@ -5458,6 +4241,7 @@ var DevtoolsPanel = (props) => {
5458
4241
  setDevtoolsPosition("bottom");
5459
4242
  }}
5460
4243
  aria-label="Position bottom"
4244
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-bottom"
5461
4245
  >
5462
4246
  <ArrowDown />
5463
4247
  <span>Bottom</span>
@@ -5467,6 +4251,7 @@ var DevtoolsPanel = (props) => {
5467
4251
  setDevtoolsPosition("left");
5468
4252
  }}
5469
4253
  aria-label="Position left"
4254
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-left"
5470
4255
  >
5471
4256
  <ArrowDown />
5472
4257
  <span>Left</span>
@@ -5476,6 +4261,7 @@ var DevtoolsPanel = (props) => {
5476
4261
  setDevtoolsPosition("right");
5477
4262
  }}
5478
4263
  aria-label="Position right"
4264
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-right"
5479
4265
  >
5480
4266
  <ArrowDown />
5481
4267
  <span>Right</span>
@@ -5485,7 +4271,12 @@ var DevtoolsPanel = (props) => {
5485
4271
  </div>
5486
4272
  </div>
5487
4273
  </div>
5488
- <div class={styles.overflowQueryContainer}><div><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
4274
+ <div
4275
+ class={clsx(
4276
+ styles.overflowQueryContainer,
4277
+ "tsqd-queries-overflow-container"
4278
+ )}
4279
+ ><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
5489
4280
  </div>
5490
4281
  <Show when={selectedQueryHash()}><QueryDetails /></Show>
5491
4282
  </aside>;
@@ -5523,26 +4314,27 @@ var QueryRow = (props) => {
5523
4314
  onClick={() => setSelectedQueryHash(
5524
4315
  props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
5525
4316
  )}
5526
- class={cx(
4317
+ class={clsx(
5527
4318
  styles.queryRow,
5528
- selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow
4319
+ selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
4320
+ "tsqd-query-row"
5529
4321
  )}
5530
4322
  aria-label={`Query key ${props.query.queryHash}`}
5531
4323
  >
5532
4324
  <div
5533
- class={cx(
5534
- "TSQDObserverCount",
5535
- color() === "gray" ? css`
4325
+ class={clsx(
4326
+ color() === "gray" ? u`
5536
4327
  background-color: ${tokens.colors[color()][700]};
5537
4328
  color: ${tokens.colors[color()][300]};
5538
- ` : css`
4329
+ ` : u`
5539
4330
  background-color: ${tokens.colors[color()][900]};
5540
- color: ${tokens.colors[color()][300]} !important;
5541
- `
4331
+ color: ${tokens.colors[color()][300]};
4332
+ `,
4333
+ "tsqd-query-observer-count"
5542
4334
  )}
5543
4335
  >{observers()}</div>
5544
- <code class="TSQDQueryHash">{props.query.queryHash}</code>
5545
- <Show when={isDisabled()}><div class="TSQDQueryDisabled">disabled</div></Show>
4336
+ <code class="tsqd-query-hash">{props.query.queryHash}</code>
4337
+ <Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
5546
4338
  </button></Show>;
5547
4339
  };
5548
4340
  var QueryStatusCount = () => {
@@ -5562,7 +4354,7 @@ var QueryStatusCount = () => {
5562
4354
  (queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
5563
4355
  );
5564
4356
  const styles = getStyles2();
5565
- return <div class={styles.queryStatusContainer}>
4357
+ return <div class={clsx(styles.queryStatusContainer, "tsqd-query-status-container")}>
5566
4358
  <QueryStatus label="Fresh" color="green" count={fresh()} />
5567
4359
  <QueryStatus label="Fetching" color="blue" count={fetching()} />
5568
4360
  <QueryStatus label="Paused" color="purple" count={paused()} />
@@ -5596,42 +4388,48 @@ var QueryStatus = (props) => {
5596
4388
  }}
5597
4389
  disabled={showLabel()}
5598
4390
  ref={tagRef}
5599
- class={cx(
4391
+ class={clsx(
5600
4392
  styles.queryStatusTag,
5601
- !showLabel() ? css`
5602
- cursor: pointer;
5603
- &:hover {
5604
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
5605
- }
5606
- ` : null
4393
+ !showLabel() && u`
4394
+ cursor: pointer;
4395
+ &:hover {
4396
+ background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
4397
+ }
4398
+ `,
4399
+ "tsqd-query-status-tag",
4400
+ `tsqd-query-status-tag-${props.label.toLowerCase()}`
5607
4401
  )}
5608
4402
  {...mouseOver() || focused() ? {
5609
- "aria-describedby": "TSQD-status-tooltip"
4403
+ "aria-describedby": "tsqd-status-tooltip"
5610
4404
  } : {}}
5611
4405
  >
5612
4406
  <Show when={!showLabel() && (mouseOver() || focused())}><div
5613
4407
  role="tooltip"
5614
- id="TSQD-status-tooltip"
5615
- class={cx(styles.statusTooltip)}
4408
+ id="tsqd-status-tooltip"
4409
+ class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
5616
4410
  >{props.label}</div></Show>
5617
4411
  <span
5618
- class={css`
5619
- width: ${tokens.size[2]};
5620
- height: ${tokens.size[2]};
5621
- border-radius: ${tokens.border.radius.full};
5622
- background-color: ${tokens.colors[props.color][500]};
5623
- `}
4412
+ class={clsx(
4413
+ u`
4414
+ width: ${tokens.size[2]};
4415
+ height: ${tokens.size[2]};
4416
+ border-radius: ${tokens.border.radius.full};
4417
+ background-color: ${tokens.colors[props.color][500]};
4418
+ `,
4419
+ "tsqd-query-status-tag-dot"
4420
+ )}
5624
4421
  />
5625
- <Show when={showLabel()}><span>{props.label}</span></Show>
4422
+ <Show when={showLabel()}><span class="tsqd-query-status-tag-label">{props.label}</span></Show>
5626
4423
  <span
5627
- class={cx(
4424
+ class={clsx(
5628
4425
  styles.queryStatusCount,
5629
- props.count > 0 && props.color !== "gray" ? css`
4426
+ props.count > 0 && props.color !== "gray" ? u`
5630
4427
  background-color: ${tokens.colors[props.color][900]};
5631
- color: ${tokens.colors[props.color][300]} !important;
5632
- ` : css`
5633
- color: ${tokens.colors["gray"][400]} !important;
5634
- `
4428
+ color: ${tokens.colors[props.color][300]};
4429
+ ` : u`
4430
+ color: ${tokens.colors["gray"][400]};
4431
+ `,
4432
+ "tsqd-query-status-tag-count"
5635
4433
  )}
5636
4434
  >{props.count}</span>
5637
4435
  </button>;
@@ -5708,19 +4506,21 @@ var QueryDetails = () => {
5708
4506
  setRestoringLoading(false);
5709
4507
  }
5710
4508
  });
5711
- return <Show when={activeQuery() && activeQueryState()}><div class={styles.detailsContainer}>
5712
- <div class={styles.detailsHeader}>Query Details</div>
5713
- <div class={styles.detailsBody}>
5714
- <div>
4509
+ return <Show when={activeQuery() && activeQueryState()}><div class={clsx(styles.detailsContainer, "tsqd-query-details-container")}>
4510
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Details</div>
4511
+ <div
4512
+ class={clsx(styles.detailsBody, "tsqd-query-details-summary-container")}
4513
+ >
4514
+ <div class="tsqd-query-details-summary">
5715
4515
  <pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
5716
4516
  <span
5717
- class={cx(
4517
+ class={clsx(
5718
4518
  styles.queryDetailsStatus,
5719
- color() === "gray" ? css`
4519
+ color() === "gray" ? u`
5720
4520
  background-color: ${tokens.colors[color()][700]};
5721
4521
  color: ${tokens.colors[color()][300]};
5722
4522
  border-color: ${tokens.colors[color()][600]};
5723
- ` : css`
4523
+ ` : u`
5724
4524
  background-color: ${tokens.colors[color()][900]};
5725
4525
  color: ${tokens.colors[color()][300]};
5726
4526
  border-color: ${tokens.colors[color()][600]};
@@ -5728,61 +4528,81 @@ var QueryDetails = () => {
5728
4528
  )}
5729
4529
  >{statusLabel()}</span>
5730
4530
  </div>
5731
- <div>
4531
+ <div class="tsqd-query-details-observers-count">
5732
4532
  <span>Observers:</span>
5733
4533
  <span>{observerCount()}</span>
5734
4534
  </div>
5735
- <div>
4535
+ <div class="tsqd-query-details-last-updated">
5736
4536
  <span>Last Updated:</span>
5737
4537
  <span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
5738
4538
  </div>
5739
4539
  </div>
5740
- <div class={styles.detailsHeader}>Actions</div>
5741
- <div class={styles.actionsBody}>
4540
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
4541
+ <div
4542
+ class={clsx(styles.actionsBody, "tsqd-query-details-actions-container")}
4543
+ >
5742
4544
  <button
5743
- class={css`
5744
- color: ${tokens.colors.blue[400]};
5745
- `}
4545
+ class={clsx(
4546
+ u`
4547
+ color: ${tokens.colors.blue[400]};
4548
+ `,
4549
+ "tsqd-query-details-actions-btn",
4550
+ "tsqd-query-details-action-refetch"
4551
+ )}
5746
4552
  onClick={handleRefetch}
5747
4553
  disabled={statusLabel() === "fetching"}
5748
4554
  >
5749
4555
  <span
5750
- class={css`
4556
+ class={u`
5751
4557
  background-color: ${tokens.colors.blue[400]};
5752
4558
  `}
5753
4559
  />
5754
4560
  {"Refetch"}
5755
4561
  </button>
5756
4562
  <button
5757
- class={css`
5758
- color: ${tokens.colors.yellow[400]};
5759
- `}
4563
+ class={clsx(
4564
+ u`
4565
+ color: ${tokens.colors.yellow[400]};
4566
+ `,
4567
+ "tsqd-query-details-actions-btn",
4568
+ "tsqd-query-details-action-invalidate"
4569
+ )}
5760
4570
  onClick={() => queryClient.invalidateQueries(activeQuery())}
4571
+ disabled={queryStatus() === "pending"}
5761
4572
  >
5762
4573
  <span
5763
- class={css`
4574
+ class={u`
5764
4575
  background-color: ${tokens.colors.yellow[400]};
5765
4576
  `}
5766
4577
  />
5767
4578
  {"Invalidate"}
5768
4579
  </button>
5769
4580
  <button
5770
- class={css`
5771
- color: ${tokens.colors.gray[300]};
5772
- `}
4581
+ class={clsx(
4582
+ u`
4583
+ color: ${tokens.colors.gray[300]};
4584
+ `,
4585
+ "tsqd-query-details-actions-btn",
4586
+ "tsqd-query-details-action-reset"
4587
+ )}
5773
4588
  onClick={() => queryClient.resetQueries(activeQuery())}
4589
+ disabled={queryStatus() === "pending"}
5774
4590
  >
5775
4591
  <span
5776
- class={css`
4592
+ class={u`
5777
4593
  background-color: ${tokens.colors.gray[400]};
5778
4594
  `}
5779
4595
  />
5780
4596
  {"Reset"}
5781
4597
  </button>
5782
4598
  <button
5783
- class={css`
5784
- color: ${tokens.colors.cyan[400]};
5785
- `}
4599
+ class={clsx(
4600
+ u`
4601
+ color: ${tokens.colors.cyan[400]};
4602
+ `,
4603
+ "tsqd-query-details-actions-btn",
4604
+ "tsqd-query-details-action-loading"
4605
+ )}
5786
4606
  disabled={restoringLoading()}
5787
4607
  onClick={() => {
5788
4608
  if (activeQuery()?.state.data === void 0) {
@@ -5814,17 +4634,21 @@ var QueryDetails = () => {
5814
4634
  }}
5815
4635
  >
5816
4636
  <span
5817
- class={css`
4637
+ class={u`
5818
4638
  background-color: ${tokens.colors.cyan[400]};
5819
4639
  `}
5820
4640
  />
5821
- {statusLabel() === "fetching" ? "Restore" : "Trigger"}
4641
+ {queryStatus() === "pending" ? "Restore" : "Trigger"}
5822
4642
  {" Loading"}
5823
4643
  </button>
5824
4644
  <Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
5825
- class={css`
5826
- color: ${tokens.colors.red[400]};
5827
- `}
4645
+ class={clsx(
4646
+ u`
4647
+ color: ${tokens.colors.red[400]};
4648
+ `,
4649
+ "tsqd-query-details-actions-btn",
4650
+ "tsqd-query-details-action-error"
4651
+ )}
5828
4652
  onClick={() => {
5829
4653
  if (!activeQuery().state.error) {
5830
4654
  triggerError();
@@ -5832,9 +4656,10 @@ var QueryDetails = () => {
5832
4656
  queryClient.resetQueries(activeQuery());
5833
4657
  }
5834
4658
  }}
4659
+ disabled={queryStatus() === "pending"}
5835
4660
  >
5836
4661
  <span
5837
- class={css`
4662
+ class={u`
5838
4663
  background-color: ${tokens.colors.red[400]};
5839
4664
  `}
5840
4665
  />
@@ -5843,18 +4668,24 @@ var QueryDetails = () => {
5843
4668
  </button></Show>
5844
4669
  <Show
5845
4670
  when={!(errorTypes().length === 0 || queryStatus() === "error")}
5846
- ><div class={styles.actionsSelect}>
4671
+ ><div
4672
+ class={clsx(
4673
+ styles.actionsSelect,
4674
+ "tsqd-query-details-actions-btn",
4675
+ "tsqd-query-details-action-error-multiple"
4676
+ )}
4677
+ >
5847
4678
  <span
5848
- class={css`
4679
+ class={u`
5849
4680
  background-color: ${tokens.colors.red[400]};
5850
4681
  `}
5851
4682
  />
5852
4683
  {"Trigger Error"}
5853
4684
  <select
5854
4685
  disabled={queryStatus() === "pending"}
5855
- onChange={(e) => {
4686
+ onChange={(e2) => {
5856
4687
  const errorType = errorTypes().find(
5857
- (t) => t.name === e.currentTarget.value
4688
+ (t2) => t2.name === e2.currentTarget.value
5858
4689
  );
5859
4690
  triggerError(errorType);
5860
4691
  }}
@@ -5865,22 +4696,24 @@ var QueryDetails = () => {
5865
4696
  <ChevronDown />
5866
4697
  </div></Show>
5867
4698
  </div>
5868
- <div class={styles.detailsHeader}>Data Explorer</div>
4699
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
5869
4700
  <div
5870
4701
  style={{
5871
4702
  padding: "0.5rem"
5872
4703
  }}
4704
+ class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"
5873
4705
  ><Explorer
5874
4706
  label="Data"
5875
4707
  defaultExpanded={["Data"]}
5876
4708
  value={activeQueryStateData()}
5877
4709
  copyable={true}
5878
4710
  /></div>
5879
- <div class={styles.detailsHeader}>Query Explorer</div>
4711
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
5880
4712
  <div
5881
4713
  style={{
5882
4714
  padding: "0.5rem"
5883
4715
  }}
4716
+ class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
5884
4717
  ><Explorer
5885
4718
  label="Query"
5886
4719
  defaultExpanded={["Query", "queryKey"]}
@@ -5928,10 +4761,11 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
5928
4761
  var getStyles2 = () => {
5929
4762
  const { colors, font, size, alpha, shadow, border } = tokens;
5930
4763
  return {
5931
- devtoolsBtn: css`
4764
+ devtoolsBtn: u`
5932
4765
  z-index: 100000;
5933
4766
  position: fixed;
5934
4767
  padding: 4px;
4768
+ text-align: left;
5935
4769
 
5936
4770
  display: flex;
5937
4771
  align-items: center;
@@ -5981,7 +4815,7 @@ var getStyles2 = () => {
5981
4815
  }
5982
4816
  }
5983
4817
  `,
5984
- panel: css`
4818
+ panel: u`
5985
4819
  position: fixed;
5986
4820
  z-index: 9999;
5987
4821
  display: flex;
@@ -5993,23 +4827,23 @@ var getStyles2 = () => {
5993
4827
  text-transform: none;
5994
4828
  }
5995
4829
  `,
5996
- "devtoolsBtn-position-bottom-right": css`
4830
+ "devtoolsBtn-position-bottom-right": u`
5997
4831
  bottom: 12px;
5998
4832
  right: 12px;
5999
4833
  `,
6000
- "devtoolsBtn-position-bottom-left": css`
4834
+ "devtoolsBtn-position-bottom-left": u`
6001
4835
  bottom: 12px;
6002
4836
  left: 12px;
6003
4837
  `,
6004
- "devtoolsBtn-position-top-left": css`
4838
+ "devtoolsBtn-position-top-left": u`
6005
4839
  top: 12px;
6006
4840
  left: 12px;
6007
4841
  `,
6008
- "devtoolsBtn-position-top-right": css`
4842
+ "devtoolsBtn-position-top-right": u`
6009
4843
  top: 12px;
6010
4844
  right: 12px;
6011
4845
  `,
6012
- "panel-position-top": css`
4846
+ "panel-position-top": u`
6013
4847
  top: 0;
6014
4848
  right: 0;
6015
4849
  left: 0;
@@ -6017,7 +4851,7 @@ var getStyles2 = () => {
6017
4851
  min-height: 3.5rem;
6018
4852
  border-bottom: ${colors.darkGray[300]} 1px solid;
6019
4853
  `,
6020
- "panel-position-bottom": css`
4854
+ "panel-position-bottom": u`
6021
4855
  bottom: 0;
6022
4856
  right: 0;
6023
4857
  left: 0;
@@ -6025,21 +4859,21 @@ var getStyles2 = () => {
6025
4859
  min-height: 3.5rem;
6026
4860
  border-top: ${colors.darkGray[300]} 1px solid;
6027
4861
  `,
6028
- "panel-position-right": css`
4862
+ "panel-position-right": u`
6029
4863
  bottom: 0;
6030
4864
  right: 0;
6031
4865
  top: 0;
6032
4866
  border-left: ${colors.darkGray[300]} 1px solid;
6033
4867
  max-width: 90%;
6034
4868
  `,
6035
- "panel-position-left": css`
4869
+ "panel-position-left": u`
6036
4870
  bottom: 0;
6037
4871
  left: 0;
6038
4872
  top: 0;
6039
4873
  border-right: ${colors.darkGray[300]} 1px solid;
6040
4874
  max-width: 90%;
6041
4875
  `,
6042
- closeBtn: css`
4876
+ closeBtn: u`
6043
4877
  position: absolute;
6044
4878
  cursor: pointer;
6045
4879
  z-index: 5;
@@ -6054,7 +4888,7 @@ var getStyles2 = () => {
6054
4888
  outline: 2px solid ${colors.blue[600]};
6055
4889
  }
6056
4890
  `,
6057
- "closeBtn-position-top": css`
4891
+ "closeBtn-position-top": u`
6058
4892
  bottom: 0;
6059
4893
  right: ${size[3]};
6060
4894
  transform: translate(0, 100%);
@@ -6079,7 +4913,7 @@ var getStyles2 = () => {
6079
4913
  transform: rotate(180deg);
6080
4914
  }
6081
4915
  `,
6082
- "closeBtn-position-bottom": css`
4916
+ "closeBtn-position-bottom": u`
6083
4917
  top: 0;
6084
4918
  right: ${size[3]};
6085
4919
  transform: translate(0, -100%);
@@ -6100,7 +4934,7 @@ var getStyles2 = () => {
6100
4934
  width: calc(100% + ${size[5]});
6101
4935
  }
6102
4936
  `,
6103
- "closeBtn-position-right": css`
4937
+ "closeBtn-position-right": u`
6104
4938
  bottom: ${size[3]};
6105
4939
  left: 0;
6106
4940
  transform: translate(-100%, 0);
@@ -6124,7 +4958,7 @@ var getStyles2 = () => {
6124
4958
  transform: rotate(-90deg);
6125
4959
  }
6126
4960
  `,
6127
- "closeBtn-position-left": css`
4961
+ "closeBtn-position-left": u`
6128
4962
  bottom: ${size[3]};
6129
4963
  right: 0;
6130
4964
  transform: translate(100%, 0);
@@ -6148,13 +4982,13 @@ var getStyles2 = () => {
6148
4982
  transform: rotate(90deg);
6149
4983
  }
6150
4984
  `,
6151
- queriesContainer: css`
4985
+ queriesContainer: u`
6152
4986
  flex: 1 1 700px;
6153
4987
  background-color: ${colors.darkGray[700]};
6154
4988
  display: flex;
6155
4989
  flex-direction: column;
6156
4990
  `,
6157
- dragHandle: css`
4991
+ dragHandle: u`
6158
4992
  position: absolute;
6159
4993
  transition: background-color 0.125s ease;
6160
4994
  &:hover {
@@ -6162,31 +4996,31 @@ var getStyles2 = () => {
6162
4996
  }
6163
4997
  z-index: 4;
6164
4998
  `,
6165
- "dragHandle-position-top": css`
4999
+ "dragHandle-position-top": u`
6166
5000
  bottom: 0;
6167
5001
  width: 100%;
6168
5002
  height: ${tokens.size[1]};
6169
5003
  cursor: ns-resize;
6170
5004
  `,
6171
- "dragHandle-position-bottom": css`
5005
+ "dragHandle-position-bottom": u`
6172
5006
  top: 0;
6173
5007
  width: 100%;
6174
5008
  height: ${tokens.size[1]};
6175
5009
  cursor: ns-resize;
6176
5010
  `,
6177
- "dragHandle-position-right": css`
5011
+ "dragHandle-position-right": u`
6178
5012
  left: 0;
6179
5013
  width: ${tokens.size[1]};
6180
5014
  height: 100%;
6181
5015
  cursor: ew-resize;
6182
5016
  `,
6183
- "dragHandle-position-left": css`
5017
+ "dragHandle-position-left": u`
6184
5018
  right: 0;
6185
5019
  width: ${tokens.size[1]};
6186
5020
  height: 100%;
6187
5021
  cursor: ew-resize;
6188
5022
  `,
6189
- row: css`
5023
+ row: u`
6190
5024
  display: flex;
6191
5025
  justify-content: space-between;
6192
5026
  padding: ${tokens.size[2.5]} ${tokens.size[3]};
@@ -6201,7 +5035,7 @@ var getStyles2 = () => {
6201
5035
  flex-direction: column;
6202
5036
  }
6203
5037
  `,
6204
- logo: css`
5038
+ logo: u`
6205
5039
  cursor: pointer;
6206
5040
  &:hover {
6207
5041
  opacity: 0.7;
@@ -6212,27 +5046,28 @@ var getStyles2 = () => {
6212
5046
  outline: 2px solid ${colors.blue[800]};
6213
5047
  }
6214
5048
  `,
6215
- tanstackLogo: css`
5049
+ tanstackLogo: u`
6216
5050
  font-size: ${font.size.lg};
6217
5051
  font-weight: ${font.weight.extrabold};
6218
5052
  line-height: ${font.lineHeight.sm};
6219
5053
  white-space: nowrap;
6220
5054
  `,
6221
- queryFlavorLogo: css`
5055
+ queryFlavorLogo: u`
6222
5056
  font-weight: ${font.weight.semibold};
6223
5057
  font-size: ${font.size.sm};
6224
5058
  background: linear-gradient(to right, #dd524b, #e9a03b);
6225
5059
  background-clip: text;
5060
+ -webkit-background-clip: text;
6226
5061
  line-height: ${font.lineHeight.xs};
6227
5062
  -webkit-text-fill-color: transparent;
6228
5063
  white-space: nowrap;
6229
5064
  `,
6230
- queryStatusContainer: css`
5065
+ queryStatusContainer: u`
6231
5066
  display: flex;
6232
5067
  gap: ${tokens.size[2]};
6233
5068
  height: min-content;
6234
5069
  `,
6235
- queryStatusTag: css`
5070
+ queryStatusTag: u`
6236
5071
  display: flex;
6237
5072
  gap: ${tokens.size[1.5]};
6238
5073
  background: ${colors.darkGray[500]};
@@ -6254,7 +5089,7 @@ var getStyles2 = () => {
6254
5089
  color: ${colors.gray[300]}${alpha[80]};
6255
5090
  }
6256
5091
  `,
6257
- statusTooltip: css`
5092
+ statusTooltip: u`
6258
5093
  position: absolute;
6259
5094
  z-index: 1;
6260
5095
  background-color: ${colors.darkGray[500]};
@@ -6293,10 +5128,10 @@ var getStyles2 = () => {
6293
5128
  border-width: 7px;
6294
5129
  }
6295
5130
  `,
6296
- selectedQueryRow: css`
5131
+ selectedQueryRow: u`
6297
5132
  background-color: ${colors.darkGray[500]};
6298
5133
  `,
6299
- queryStatusCount: css`
5134
+ queryStatusCount: u`
6300
5135
  padding: 0 8px;
6301
5136
  display: flex;
6302
5137
  align-items: center;
@@ -6306,7 +5141,7 @@ var getStyles2 = () => {
6306
5141
  border-radius: 3px;
6307
5142
  font-variant-numeric: tabular-nums;
6308
5143
  `,
6309
- filtersContainer: css`
5144
+ filtersContainer: u`
6310
5145
  display: flex;
6311
5146
  gap: ${tokens.size[2.5]};
6312
5147
  & > button {
@@ -6329,7 +5164,7 @@ var getStyles2 = () => {
6329
5164
  }
6330
5165
  }
6331
5166
  `,
6332
- filterInput: css`
5167
+ filterInput: u`
6333
5168
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6334
5169
  border-radius: ${tokens.border.radius.md};
6335
5170
  background-color: ${colors.darkGray[400]};
@@ -6367,7 +5202,7 @@ var getStyles2 = () => {
6367
5202
  outline: 2px solid ${colors.blue[800]};
6368
5203
  }
6369
5204
  `,
6370
- filterSelect: css`
5205
+ filterSelect: u`
6371
5206
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6372
5207
  border-radius: ${tokens.border.radius.md};
6373
5208
  background-color: ${colors.darkGray[400]};
@@ -6399,15 +5234,15 @@ var getStyles2 = () => {
6399
5234
  outline: 2px solid ${colors.blue[800]};
6400
5235
  }
6401
5236
  `,
6402
- actionsContainer: css`
5237
+ actionsContainer: u`
6403
5238
  display: flex;
6404
5239
  gap: ${tokens.size[2.5]};
6405
5240
  `,
6406
- actionsBtn: css`
5241
+ actionsBtn: u`
6407
5242
  border-radius: ${tokens.border.radius.md};
6408
5243
  background-color: ${colors.darkGray[400]};
6409
- width: 2.125rem; // 34px
6410
- height: 2.125rem; // 34px
5244
+ width: 2.125rem;
5245
+ height: 2.125rem;
6411
5246
  justify-content: center;
6412
5247
  display: flex;
6413
5248
  align-items: center;
@@ -6429,7 +5264,7 @@ var getStyles2 = () => {
6429
5264
  outline: 2px solid ${colors.blue[800]};
6430
5265
  }
6431
5266
  `,
6432
- overflowQueryContainer: css`
5267
+ overflowQueryContainer: u`
6433
5268
  flex: 1;
6434
5269
  overflow-y: auto;
6435
5270
  & > div {
@@ -6437,27 +5272,30 @@ var getStyles2 = () => {
6437
5272
  flex-direction: column;
6438
5273
  }
6439
5274
  `,
6440
- queryRow: css`
5275
+ queryRow: u`
6441
5276
  display: flex;
6442
5277
  align-items: center;
6443
5278
  padding: 0;
6444
5279
  background-color: inherit;
6445
5280
  border: none;
6446
5281
  cursor: pointer;
5282
+ &:focus {
5283
+ outline: none;
5284
+ }
6447
5285
  &:focus-visible {
6448
5286
  outline-offset: -2px;
6449
5287
  border-radius: ${border.radius.xs};
6450
5288
  outline: 2px solid ${colors.blue[800]};
6451
5289
  }
6452
- &:hover .TSQDQueryHash {
5290
+ &:hover .tsqd-query-hash {
6453
5291
  background-color: ${colors.darkGray[600]};
6454
5292
  }
6455
5293
 
6456
- & .TSQDObserverCount {
5294
+ & .tsqd-query-observer-count {
6457
5295
  padding: 0 ${tokens.size[1]};
6458
5296
  user-select: none;
6459
5297
  min-width: ${tokens.size[8]};
6460
- align-self: stretch !important;
5298
+ align-self: stretch;
6461
5299
  display: flex;
6462
5300
  align-items: center;
6463
5301
  justify-content: center;
@@ -6465,7 +5303,7 @@ var getStyles2 = () => {
6465
5303
  font-weight: ${font.weight.medium};
6466
5304
  border-bottom: 1px solid ${colors.darkGray[700]};
6467
5305
  }
6468
- & .TSQDQueryHash {
5306
+ & .tsqd-query-hash {
6469
5307
  user-select: text;
6470
5308
  font-size: ${font.size.sm};
6471
5309
  display: flex;
@@ -6473,16 +5311,15 @@ var getStyles2 = () => {
6473
5311
  min-height: ${tokens.size[8]};
6474
5312
  flex: 1;
6475
5313
  padding: ${tokens.size[1]} ${tokens.size[2]};
6476
- font-family: 'Menlo', 'Fira Code', monospace !important;
5314
+ font-family: 'Menlo', 'Fira Code', monospace;
6477
5315
  border-bottom: 1px solid ${colors.darkGray[400]};
6478
5316
  text-align: left;
6479
5317
  text-overflow: clip;
6480
5318
  word-break: break-word;
6481
5319
  }
6482
5320
 
6483
- & .TSQDQueryDisabled {
5321
+ & .tsqd-query-disabled-indicator {
6484
5322
  align-self: stretch;
6485
- align-self: stretch !important;
6486
5323
  display: flex;
6487
5324
  align-items: center;
6488
5325
  padding: 0 ${tokens.size[3]};
@@ -6492,15 +5329,16 @@ var getStyles2 = () => {
6492
5329
  font-size: ${font.size.sm};
6493
5330
  }
6494
5331
  `,
6495
- detailsContainer: css`
5332
+ detailsContainer: u`
6496
5333
  flex: 1 1 700px;
6497
5334
  background-color: ${colors.darkGray[700]};
6498
5335
  display: flex;
6499
5336
  flex-direction: column;
6500
5337
  overflow-y: auto;
6501
5338
  display: flex;
5339
+ text-align: left;
6502
5340
  `,
6503
- detailsHeader: css`
5341
+ detailsHeader: u`
6504
5342
  position: sticky;
6505
5343
  top: 0;
6506
5344
  z-index: 2;
@@ -6508,8 +5346,9 @@ var getStyles2 = () => {
6508
5346
  padding: ${tokens.size[2]} ${tokens.size[2]};
6509
5347
  font-weight: ${font.weight.medium};
6510
5348
  font-size: ${font.size.sm};
5349
+ text-align: left;
6511
5350
  `,
6512
- detailsBody: css`
5351
+ detailsBody: u`
6513
5352
  margin: ${tokens.size[2]} 0px ${tokens.size[3]} 0px;
6514
5353
  & > div {
6515
5354
  display: flex;
@@ -6530,19 +5369,19 @@ var getStyles2 = () => {
6530
5369
  }
6531
5370
 
6532
5371
  & code {
6533
- font-family: 'Menlo', 'Fira Code', monospace !important;
5372
+ font-family: 'Menlo', 'Fira Code', monospace;
6534
5373
  margin: 0;
6535
5374
  font-size: ${font.size.sm};
6536
5375
  line-height: ${font.lineHeight.sm};
6537
5376
  }
6538
5377
  `,
6539
- queryDetailsStatus: css`
5378
+ queryDetailsStatus: u`
6540
5379
  border: 1px solid ${colors.darkGray[200]};
6541
5380
  border-radius: ${tokens.border.radius.md};
6542
5381
  font-weight: ${font.weight.medium};
6543
5382
  padding: ${tokens.size[1]} ${tokens.size[2.5]};
6544
5383
  `,
6545
- actionsBody: css`
5384
+ actionsBody: u`
6546
5385
  flex-wrap: wrap;
6547
5386
  margin: ${tokens.size[3]} 0px ${tokens.size[3]} 0px;
6548
5387
  display: flex;
@@ -6581,7 +5420,7 @@ var getStyles2 = () => {
6581
5420
  }
6582
5421
  }
6583
5422
  `,
6584
- actionsSelect: css`
5423
+ actionsSelect: u`
6585
5424
  font-size: ${font.size.sm};
6586
5425
  padding: ${tokens.size[2]} ${tokens.size[2]};
6587
5426
  display: flex;
@@ -6623,10 +5462,10 @@ var getStyles2 = () => {
6623
5462
  }
6624
5463
 
6625
5464
  & svg path {
6626
- stroke: ${tokens.colors.red[400]} !important;
5465
+ stroke: ${tokens.colors.red[400]};
6627
5466
  }
6628
5467
  `,
6629
- settingsMenu: css`
5468
+ settingsMenu: u`
6630
5469
  position: absolute;
6631
5470
  top: calc(100% + ${tokens.size[2]});
6632
5471
  border-radius: ${tokens.border.radius.lg};
@@ -6638,12 +5477,12 @@ var getStyles2 = () => {
6638
5477
  color: ${colors.gray[500]};
6639
5478
  z-index: 7;
6640
5479
  `,
6641
- settingsMenuHeader: css`
5480
+ settingsMenuHeader: u`
6642
5481
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6643
5482
  color: ${colors.gray[300]};
6644
5483
  font-weight: ${font.weight.medium};
6645
5484
  `,
6646
- settingsMenuSection: css`
5485
+ settingsMenuSection: u`
6647
5486
  border-top: 1px solid ${colors.gray[600]};
6648
5487
  display: flex;
6649
5488
  flex-direction: column;